phpinfo.php doesn't work
Moderator: General Moderators
phpinfo.php doesn't work
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
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: phpinfo.php doesn't work
No, no other PHP pages work. What do I need to do in order to properly configure PHP and Apache to render PHP pages?