I have a CentOS 6 system that has been running well on virtualmin for three years. All but one vhosts are configured to run in FCGI mode, but in recent months I am finding that some process is adding the php5_module configuration to the configuration in addition to the FCGI configuration; see the vhost1 configuration below. One vhost, vhost2 below, is configured for CGI operation, as FCGI does not work for some reason, and it has the php5_module configuration as well. The virtualmin panel shows the sites as configured for FCGI (or CGI) under Website Options, but with the php5_module AddType directive, apache runs php in apache module mode. That is causing permissions errors that are occasionally disrupting site operation.
As can be seen both php 5.3 and 5.4 are installed; the 5.4 package is part of the SCLo releases maintained by RHEL/CentOS. I don't know if that has anything to do with it.
Yesterday I commented the AddType directives in httpd.conf, and today the AddType was in the file again, along with the FCGI configuration. This seems to have started a few months ago, but I don't have a correlation with other events to know if it was a virtualmin update or if it is related to the multiple php installations.
Any ideas why the apache php module directives are being added to the configuration?
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AddType application/x-httpd-php .php <=== ADDED AddHandler fcgid-script .php AddHandler fcgid-script .php5 AddHandler fcgid-script .php5.4 FCGIWrapper /home/vhost1/fcgi-bin/php5.4.fcgi .php FCGIWrapper /home/vhost1/fcgi-bin/php5.fcgi .php5 FCGIWrapper /home/vhost1/fcgi-bin/php5.4.fcgi .php5.4
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Action application/x-httpd-php5 /cgi-bin/php5.cgi AddType application/x-httpd-php5 .php5 <=== ADDED AddType application/x-httpd-php5 .php <=== ADDED