LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP Does not work properly in fedora 14 (http://www.linuxquestions.org/questions/linux-software-2/php-does-not-work-properly-in-fedora-14-a-851297/)

tab4trouble 12-19-2010 11:55 PM

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.

smoker 12-20-2010 12:26 AM

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

John VV 12-20-2010 12:51 AM

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 .

tab4trouble 12-22-2010 05:19 AM

Thank You.


All times are GMT -5. The time now is 09:44 PM.