View Single Post
Old 3rd July 2007, 10:35
penabur penabur is offline
Junior Member
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Vhost and open_basedir

Originally Posted by Gimly
Hi All,

I use open_basedir for block my customers on their dir with this on vhost :

<Directory /var/www/web*/>
  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/

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

Reply With Quote