View Single Post
Old 26th April 2010, 21:33
GoremanX GoremanX is offline
Join Date: Apr 2010
Posts: 50
Thanks: 2
Thanked 0 Times in 0 Posts
Default Site Directives and Custom php.ini

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

suPHP_ConfigPath /var/www/
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:

open_basedir /var/www/
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/ 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/ does not appear to get used at all.
Reply With Quote
Sponsored Links