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,050
Thanks: 4
Thanked 37 Times in 35 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
17 hours 2 min ago
18 hours 2 min ago
21 hours 48 min ago
23 hours 3 min ago
1 day 2 hours ago
1 day 9 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 11 hours ago
2 days 13 hours ago