I've been trying to setup a custom php.ini file for virtual hosts. There's a lot of good info about this on the web, but none of it seems to be working for me using ISPConfig 3.
I'm running ISPConfig 3.0.2.1 on Ubuntu 10.04 (RC1) with PHP 5.3.2 and Apache 2.2.14. The site is set to use suPHP 0.7.1.
First, I tried adding the following to the site directives:
Code:
suPHP_ConfigPath /var/www/fpzhosting.com/etc/
and I have a custom php.ini file in that directory. But none of the settings in that php.ini file are being applied. For example, the file clearly states:
Code:
open_basedir /var/www/fpzhosting.com/web/
But when I look at that site's phpinfo(), open_basedir is set to "none".
So I tried to look at the
/etc/apache2/sites-available/fpzhosting.com.vhost file to make sure the directive I added was in fact present. It was, but it was at the bottom of the file. I don't know if this line needs to be between the same <directory> tags as the other suPHP directives, so I moved it there just to be sure and tried again. Still no joy, the custom php.ini file isn't being used.
So next I tried adding the directive to the site's root .htaccess file. Again, it didn't work. The file at /var/www/fpzhosting.com/etc/php.ini does not appear to get used at all.
Recent comments
13 hours 19 min ago
16 hours 14 min ago
17 hours 28 min ago
18 hours 52 min ago
20 hours 29 min ago
21 hours 58 min ago
23 hours 12 min ago
1 day 15 hours ago
1 day 15 hours ago
1 day 19 hours ago