Page 1 of 1

phpinfo.php doesn't work

Posted: Sun Nov 28, 2010 3:03 pm
by cloksin
I have a server running CentOS that I just installed MySQL, Apache, and PHP on. Its a remote server and I connect through an SSH client. Apache has been succesfully installed, and I've created a phpinfo.php file and placed it in the correct directory. I can navigate to my website using a browser and my URL, but when I try to navigate to the phpinfo.php file all I get is the code in the file, it displays, but doesn't execute. Please help, I have been ripping my hair out trying to get this to work.

Re: phpinfo.php doesn't work

Posted: Mon Nov 29, 2010 9:52 am
by pickle
Do other php files work? If not, then Apache/PHP aren't configured properly. If Apache doesn't know what to do with PHP files, it'll just display them as regular text files.

Re: phpinfo.php doesn't work

Posted: Mon Nov 29, 2010 3:06 pm
by cloksin
No, no other PHP pages work. What do I need to do in order to properly configure PHP and Apache to render PHP pages?

Re: phpinfo.php doesn't work

Posted: Mon Nov 29, 2010 3:15 pm
by mikosiko