mikelbeck
07-20-2005, 11:00 AM
I had an issue where I had to disable eAccelerator for a single domain on my VPS.
I've seen instructions that say to put a php_flag in the .htaccess file in the site's root directory, but when I did that trying to access any pages on that site resulted in a 500 error.
I found that the only way to make this work is to locate the VirtualHost section for the domain in question in /etc/httpd/conf/httpd.conf. Within that VirtualHost section, there should be a section that looks similar to this:
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/site-name/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
Add the following lines to this section, before the "</IfModule>"
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0
That'll do it!
I've seen instructions that say to put a php_flag in the .htaccess file in the site's root directory, but when I did that trying to access any pages on that site resulted in a 500 error.
I found that the only way to make this work is to locate the VirtualHost section for the domain in question in /etc/httpd/conf/httpd.conf. Within that VirtualHost section, there should be a section that looks similar to this:
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/site-name/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
Add the following lines to this section, before the "</IfModule>"
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0
That'll do it!