/.info page showing downloadable file than php page

March 29, 2015 718 views
LEMP Nginx PHP CentOS

Hi,
I just followed this article: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6
and when i tried testing php page at: http://ip-address/info.php, it is showing a downloadable php file that the actual php file like this:

http://oi59.tinypic.com/111o5kn.jpg

Someone help me here, what i did wrong?

2 comments
  • Hey! One common mistake is forgetting to restart Nginx and/or FPM after making configuration changes.

    sudo service php-fpm restart
    sudo service nginx restart
    

    If that's not the case, could you look for any error messages in your Nginx error logs: tail /var/log/nginx/error.log

  • Paste you nginx conf at least, we cannot guess what you did wrong, without more information is really difficult to help you.

Be the first one to answer this question.