PDA

View Full Version : mysql.allow_persistent


atoulis
28th September 2006, 02:56
mysql.allow_persistent = off in php.ini but I want to set it "on" only for specific sites. Does anyone know how this can be done through Apache Directives? I tried the following without success. The local value always remains off.

php_admin_value mysql.allow_persistent = on
php_admin_value allow_persistent = on

Thanks very much.
Alex

sjau
28th September 2006, 09:43
Try this:


php_admin_value mysql.allow_persistent On


That should work. If not, then you need to check whether allow overwrite for this site is activated. (I normally check that by putting in a .htaccess that pops up a user/pwd box).

atoulis
28th September 2006, 15:36
I tried the above but still no success. Other overrides such upload_max_filesize in Apache Directives are working fine. Its just the mysql.allow_persistent value that doesn't seem to work. Thanks.

sjau
28th September 2006, 17:32
Strange, I think that should work... dunno what's wrong there...

falko
28th September 2006, 23:08
php_admin_value mysql.allow_persistent = on
php_admin_value allow_persistent = on

Try
php_admin_flag mysql.allow_persistent = on
php_admin_flag allow_persistent = on
instead.

atoulis
4th October 2006, 04:31
Falko,
I tried the two lines of code you suggested but received "# NOT SUPPORTED!" messages beside all Apache directives. I tried each line of code seperately and still got the same messages.

sjau
4th October 2006, 10:13
Well, you could enable this in the php.ini if everything else fails :(

atoulis
4th October 2006, 18:46
Thanks. I decided to set mysql.allow_persistent = off in php.ini. Setting it to 'on' might allow some sites to use too many connection resources. Not good in a shared environment.