yasbas
07-19-2004, 10:26 AM
After I've rebuild the apache via cpanel, the php pages fails to load normal and a download dialog appear which offers to download the php file.
I've restart apache, mysql, even the whole server - no result.
Can anybody help on this issue ?
stftk
07-19-2004, 10:34 AM
Look in /usr/local/apache/conf/httpd.conf
Do you see an AddHandler line for the .php extension?
Trigan
07-19-2004, 10:34 AM
Have you edited to the .conf file?
Trigan
07-19-2004, 10:36 AM
Looks like I got beaten to it :)
yasbas
07-19-2004, 02:56 PM
Originally posted by stftk
Look in /usr/local/apache/conf/httpd.conf
Do you see an AddHandler line for the .php extension?
Yes:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
AddHandler cgi-script .cgi .pl
AddType text/html .shtml
AddType application/x-tar .tgz
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
I've heard there is an issue with the latest cpanel upgrade which corrupts apache and mysql, could this be the problem ?
Dan L
07-19-2004, 04:48 PM
Try rebuilding PHP?
Regardless, make sure you're on PHP 4.3.8!
linux-tech
07-19-2004, 07:09 PM
I haven't had any issues with the "latest" cpanel apache builds at all. Make sure the extensions and handlers are in the right places, obviously. Try using the backup configuration (cpanel always creates a backup when apache is rebuilt) in httpd.conf.bak. That should do the trick.