Mouton
5th March 2009, 14:57
Hello,
I changed the default configuration for documentroot folder from /var/www/... to /home/www/... but not all the paths in the vhost files are changed. Could this be a bug ? Am I doing something wrong ?
Config: Debian Lenny / Ispconfig 3.0.0.9 RC2
Here is the vhost file:
<VirtualHost *:80>
DocumentRoot /var/www/domain.tld/web
ServerName domain.tld
ServerAlias www.domain.tld
ServerAdmin webmaster@domain.tld
ErrorLog /var/log/ispconfig/httpd/domain.tld/error.log
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
<Directory /var/www/domain.tld/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@domain.tld"
php_admin_value upload_tmp_dir /home/www/web2/tmp
php_admin_value session.save_path /home/www/web2/tmp
#php_admin_value open_basedir /home/www/web2:/usr/share/php5
</VirtualHost>
And of course, restarting apache leads to
/home/www# /etc/init.d/apache2 restart
Restarting web server: apache2Warning: DocumentRoot [/var/www/domain.tld/web] does not exist
... waiting Warning: DocumentRoot [/var/www/domain.tld/web] does not exist
.
I changed the default configuration for documentroot folder from /var/www/... to /home/www/... but not all the paths in the vhost files are changed. Could this be a bug ? Am I doing something wrong ?
Config: Debian Lenny / Ispconfig 3.0.0.9 RC2
Here is the vhost file:
<VirtualHost *:80>
DocumentRoot /var/www/domain.tld/web
ServerName domain.tld
ServerAlias www.domain.tld
ServerAdmin webmaster@domain.tld
ErrorLog /var/log/ispconfig/httpd/domain.tld/error.log
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
<Directory /var/www/domain.tld/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@domain.tld"
php_admin_value upload_tmp_dir /home/www/web2/tmp
php_admin_value session.save_path /home/www/web2/tmp
#php_admin_value open_basedir /home/www/web2:/usr/share/php5
</VirtualHost>
And of course, restarting apache leads to
/home/www# /etc/init.d/apache2 restart
Restarting web server: apache2Warning: DocumentRoot [/var/www/domain.tld/web] does not exist
... waiting Warning: DocumentRoot [/var/www/domain.tld/web] does not exist
.