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
Posts: 1,046
Thanks: 4
Thanked 34 Times in 32 Posts
Try this:
Code:
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).
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.
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.
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.
Recent comments
15 hours 19 min ago
1 day 47 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 12 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 4 hours ago