LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Apache not parsing php pages! (https://www.linuxquestions.org/questions/fedora-35/apache-not-parsing-php-pages-790148/)

bagfull 02-19-2010 04:45 AM

Apache not parsing php pages!
 
Hi,

I have a Cent OS 5.4 32 bit final installed in my dedicated server.

I used to run lighttpd with php in my server until now and all was fine.
But yesterday I changed my website which needs apache to run. So installed apache using yum install httpd command.

Then I added the virtual host name of my domain in webmin panel but when i try to run my php script in browser then its not opening php pages.

Instead it downloads php files like index.php when i open in browser.
So I guess apache is not able to compile and run php pages. Only html pages are opening right now.. :(

Can anyone help me with this issue ?

I can pay for this service if its resolved. Its very small problem but i don't know how to resolve it. :(

Waiting for urgent replies.. If possible pm me if anyone can help me!

carltm 02-19-2010 05:33 AM

Make sure you have httpd and php installed by running "yum install httpd php".
Next verify that you have the file /etc/httpd/conf.d/php.conf and run
"service httpd restart". That should make it work.

kirukan 02-19-2010 06:05 AM

1.Makesure httpd service
ps aux | grep http

2. save the following as index.php at your doumentroot directory and check the output(http://localhost/index.php)
Quote:

<HTML>
<BODY>
<? phpinfo(); ?>
</BODY>
</HTML>
3. check whether the php module loaded in apache


All times are GMT -5. The time now is 12:54 PM.