PHP files being downloaded and not processed

A

Anonymous

Guest
I have a major problem. I just had a server installed (CentOS, latest stable versions of php,mysql, gd, apache ect) for me and everything works great EXCEPT when I try to access a PHP page the browser tries to download the file instead of process it.

The server cpanels and whm and that work FINE so obviously PHP is being processed under those conditions...But when I add an ordinary hosting account then PHP files don't get processed, the browser wants to download them.

Please assist...Thanks
 
Ok its pretty easy, make sure your apache is configured to load php module as well as you have configured a correct type for prossessing it.


AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

For PHP 4:
LoadModule php4_module modules/libphp4.so

For PHP 5:
LoadModule php5_module modules/libphp5.so
 
Back
Top