
Originally Posted by
cPanelTristan
Are you using suPHP as the handler? If so, what does your /usr/local/apache/conf/php.conf file look like?
Code:
cat /usr/local/apache/conf/php.conf
Next, what are the file extensions for the php pages that aren't loading? Are they ending in .php or something else? If only some of the PHP pages were trying to download and not all of them, then there has to be either a change in the extension being used or something on the account itself.
Tristan,
Thanks for the reply. Yes, we are using suPHP (only with PHP 5, we took out PHP 4). All files have .php as the extension as well. Initially, it started with just one site, (all other sites were working just fine), I recompiled Apache/PHP using EasyApache (like I have done a hundred times in the past) and after that, all PHP sites were affected.
This is what is currently in our php.conf file:
Code:
# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
<Directory />
suPHP_AddHandler application/x-httpd-php5
</Directory>
# End of autogenerated PHP configuration.
We added the
Code:
AddHandler application/x-httpd-php5 .php
To globally fix this issue for all users who were having this issue.
That fixed it again for all users, but why it happened in the first place is the real mystery.
I've compared the php.conf file to other servers that are working fine and they look 100% identical with the exception of that line above that I added.
Thanks,
Peter