I am using Ispconfig 2 on a VM of OpenSuse 11.4 x64 setup using the "Perfect Server" setup on HowtoForge.
I am on my 3rd attempt to install so I am taking it slow one step at a time to try and figure out what is going wrong.
After installing the OS and going through the perfect server setup and installing Ispconfig 2 all seems to OK. I rebooted the server and again everthing seems to be working.
Now here is where my problem is.
I create a client (me) and then add a web site with an admin user, then upload my web files.
Open a browser goto my site and there it is my site displays no problem.
Now I reboot the server, login to the Ispconfig console (from another comp) and the "Web Server" is offline everything else is online. On the server I tried restarting ispconfig manualy with no joy. When I try and restart apache2 I get this error
Code:
server1:~ # /etc/init.d/apache2 start
Starting httpd2 (prefork) [Wed Apr 27 13:24:14 2011] [warn] NameVirtualHost 173.185.183.158:80 has no VirtualHosts
failed
Here is the Vhosts_ispconfig.conf
Code:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 127.0.0.2:80
<VirtualHost 127.0.0.2:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
NameVirtualHost 173.185.183.158:80
<VirtualHost 173.185.183.158:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
NameVirtualHost 173.185.183.158:80
<VirtualHost 173.185.183.158:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.cyber-medic.net:80
######################################
#
#
<VirtualHost 173.185.183.158:80>
ServerName www.cyber-medic.net:80
ServerAdmin webmaster@cyber-medic.net
DocumentRoot /srv/www/web1/web
ServerAlias cyber-medic.net
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
Alias /cgi-bin/ /srv/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web1/log/error.log
AddHandler application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /srv/www/web1/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
<IfModule mod_python.c>
<Directory /srv/www/web1/web>
#Options +Indexes +FollowSymLinks +MultiViews
#AllowOverride Indexes AuthConfig Limit FileInfo
#Order allow,deny
#allow from all
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /stats "/srv/www/web1/web/webalizer"
Alias /error/ "/srv/www/web1/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 ^/~([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
<IfModule mod_dav.c>
Alias /webdav /srv/www/web1/web
<Location /webdav>
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /srv/www/web1/passwd.dav
Require valid-user
</Location>
</IfModule>
</VirtualHost>
#
#
#
So everthing works till I do a reboot then the Apache2 web server refuses to start because of a bad virtualhost file how can I fix this.
Recent comments
3 hours 23 min ago
8 hours 15 min ago
17 hours 8 min ago
18 hours 7 min ago
21 hours 54 min ago
23 hours 8 min ago
1 day 2 hours ago
1 day 10 hours ago
1 day 18 hours ago
1 day 20 hours ago