PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Oct 20, 2019 1:08 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Nov 06, 2009 8:57 am 
Offline
Forum Newbie

Joined: Fri Nov 06, 2009 8:35 am
Posts: 1
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.


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 12:44 am 
Offline
Forum Contributor

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group