-   Linux - Software (
-   -   PHP Does not work properly in fedora 14 (

tab4trouble 12-20-2010 12:55 AM

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.

smoker 12-20-2010 01:26 AM


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

John VV 12-20-2010 01: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 . ---

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 06:19 AM

Thank You.

All times are GMT -5. The time now is 08:35 AM.