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 126.96.36.199 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:
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:
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.