PDA

View Full Version : Disable eAccelerator for one domain


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!

BornOnline
07-20-2005, 11:23 AM
Cool.. thanks for that info in case I ever need it!

ozgreg
08-12-2005, 12:50 AM
you can also switch it off via the .htaccess by adding the following two lines..

php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0

eAccelerator & phpbb use to not get along very well. I believe it been fixed in the latest version although.. 0.93

Jad
08-16-2005, 11:36 AM
Good, Thank you, but When we'll need to disable it for single domain ?

mikelbeck
08-16-2005, 11:38 AM
I have one client who's using a very modified version of phpBB. When eAccelerator was enabled for his domain he was getting all sorts of errors. Disabling it corrected those problems.

Jad
08-16-2005, 12:21 PM
This new to me, Thank you