Page 1 of 1

Puzzling index.php problem

Posted: Fri Nov 06, 2009 7:57 am
by garikr
I've installed Fedora a couple of days ago and so far, for a Windows user like me, it proved to be a hustle. Just got done slapping together httpd/php/mysql installation and here's the problem:
when i put "http://localhost" into Firefox, index.php comes up as it should, but if i put in "http://localhost/index.php" it comes up like an HTML( all the php code is not executed, you can see it on the page as text ), all other php files work fine.
Please point me to the right direction. I really don't want to reinstall anything, I compiled the code and tracking it all down and removing all the php/httpd files would be a major pain in the neck for me. Thank you.

Re: Puzzling index.php problem

Posted: Fri Nov 06, 2009 11:44 pm
by Doug G
Unless you have some feature you absolutely, positively need that forces you to compile php, my recommendation is to use yum to install php and necessary php add-ons like php-mysql, etc. I've set up many lamp servers on Fedora using yum and have never found any need to compile from sources.

But to your question, if you are getting different results like you say, then your default document must not be index.php, and some other file is acting as the default page when you don't specify a filename in the url.