Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-19-2010, 11:55 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
PHP Does not work properly in fedora 14

I'm using fedora 14. And I have installed apache, PHP and MySQL. I tried testing PHP with phpinfo(). But when I view it view my browser (localhost/test.php) it just shows the code itself insted of displaying the phpinfo page.

This is the content of my test.php page.


Please help.
Old 12-20-2010, 12:26 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Edit the Apache Configuration File (httpd.conf)

Now open /etc/httpd.conf in your favorite text editor, and set all the basic Apache options in accordance with the official Apache instructions (beyond the scope of this HOWTO).

Also recommended is the article on securing Apache.

To ensure your PHP files are properly interpreted, and not just downloaded as text files, remove the # at the beginning of the lines which read:
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

Restart httpd
Old 12-20-2010, 12:51 AM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,169

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
just HOW did you install lamp ??
all the software is in the default repo AND on the install dvd

did you use the recommended( by fedora and not me ) way with yum
--- please check "yum grouplist" to check the spelling . ---
yum groupinstall "Web Server"
and as above have you set up the httpd.conf & my.ini, and php.ini ????
also fedora is not a good choice for a server
in 12 to 13 months there will NEVER be any more support for fedora 14 and fedora 16( the current at that time) will need to be installed .

Last edited by John VV; 12-20-2010 at 12:53 AM.
Old 12-22-2010, 05:19 AM   #4
LQ Newbie
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank You.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual keyboards no longer work properly in Fedora 11 dnwake Linux - Hardware 0 09-15-2009 06:36 PM
Realtek 8187b wireless card does not work properly under fedora 10 flauser Linux - Networking 10 12-28-2008 10:48 AM
Linux ISOs will not work properly after burning with Fedora Core's .iso writer MarvinMan Linux - Newbie 2 01-14-2005 12:03 PM
Iptables in fedora wont work properly nightmare6667 Linux - Networking 2 02-22-2004 12:06 PM
apache or php doesn't work properly on RH8.0 abd_bela Linux - Networking 6 03-18-2003 05:20 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration