Originally Posted by Gimly
I use open_basedir for block my customers on their dir with this on vhost :
php_admin_value open_basedir /var/www/web*/:/tmp:/usr/share/pear/:/var/lib/php5/
Actually I add it manually in /etc/apache2/vhosts/Vhosts_ispconfig.conf, but where can I found the ispconfig file base who contain the original vhost for automatic add this in vhost ?
Thanks for your answers
Check inside file /root/ispconfig/scripts/lib/config.inc.php
See line with:
php_admin_value open_basedir ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/
Add or substract any directory you like, besides the default vhost document root.
BTW, it is part of the code right above it, therefore it is only a PHP string concatenation.
Hope it helps