#1  
Old 21st February 2006, 10:48
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default php_admin_value open_basedir

Hello,

i have setup the ISPConfig. Then i creat a lot of virtual host (domains) and one ssl-Domain for my Server, this domain called ssl.rr-netz.de. Then I will create subdir in this domain wich shows of other domains on the server, like
ssl.rr-netz.de/user1
ssl.rr-netz.de/user2
ssl.rr-netz.de/user3

so all users on the server can use a ssl domain, without everyone must buy a own ip & zertifikat. This works fine, but i have a problem with php_admin_value open_basedir

#
#
#
######################################
# Vhost: www.ssl.rr-netz.de:80
######################################
#
#
<VirtualHost 192.168.50.100:80>
Alias /shops/carhifi-zentrum/ '/var/www/web5/web/'
<Directory '/var/www/web5/web/'>
Order allow,deny
Allow from all
</Directory>
ServerName www.ssl.rr-netz.de:80
ServerAdmin webmaster@ssl.rr-netz.de
DocumentRoot /var/www/web15/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web15/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web15/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web15/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web15/phptmp/
php_admin_value session.save_path /var/www/web15/phptmp/
Alias /error/ "/var/www/web15/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
</VirtualHost>
#
<IfModule mod_ssl.c>
<VirtualHost 192.168.50.100:443>
Alias /shops/carhifi-zentrum/ '/var/www/web5/web/'
<Directory '/var/www/web5/web/'>
Order allow,deny
Allow from all
</Directory>
ServerName www.ssl.rr-netz.de:443
ServerAdmin webmaster@ssl.rr-netz.de
DocumentRoot /var/www/web15/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web15/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web15/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web15/:/var/www/web5/web/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web15/phptmp/
php_admin_value session.save_path /var/www/web15/phptmp/
SSLEngine on
SSLCertificateFile /var/www/web15/ssl/www.ssl.rr-netz.de.crt
SSLCertificateKeyFile /var/www/web15/ssl/www.ssl.rr-netz.de.key
Alias /error/ "/var/www/web15/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web15/user/$1/web/$3
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>


the Problem is that the ISPConfig always override my /etc/apache2/vhosts/Vhosts_ispconfig.conf and i have no chance to insert this entry into the Vhosts_ispconfig.conf.
Have anyone a idea for this problem?

STEFAN
Reply With Quote
Sponsored Links
  #2  
Old 21st February 2006, 11:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,386 Times in 4,231 Posts
Default

Have you tried to insert this line:

php_admin_value open_basedir /var/www/web15/:/var/www/web5/web/

In the apache directives field of the website. The values of the pacahe directives field is inserted at the end of the vhost, so it might override the previously defined value. But I've not tested it
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st February 2006, 11:56
stefanr stefanr is offline
HowtoForge Supporter
 
Join Date: Dec 2005
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok, i have check this idea, but the problem is that for the domain ssl.rr-netz.de a host with port :80 and port :443 exist. This ok but when i insert
php_admin_value open_basedir /var/www/web15/:/var/www/web5/web/
into the Apache Direktiven (Optional): then in the vhost file the entry in both host replaced (:80 & :443) but only the :443 host must be replaced.
Reply With Quote
  #4  
Old 21st February 2006, 18:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

In this case you must change the code in the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.