LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hi..,
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.

<?php
phpinfo();
?>

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

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
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
From http://www.lamphowto.com/

Restart httpd
 
Old 12-20-2010, 12:51 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,668

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
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 . ---
Code:
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
tab4trouble
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank You.
 
  


Reply


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


All times are GMT -5. The time now is 06:32 PM.

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