Puzzling index.php problem

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
garikr
Forum Newbie
Posts: 1
Joined: Fri Nov 06, 2009 7:35 am

Puzzling index.php problem

Post 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.
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Puzzling index.php problem

Post 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.
Post Reply