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! |
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. |
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:
|
All times are GMT -5. The time now is 12:54 PM. |