Page 1 of 1
Apache2 Startet nicht
Posted: 2008-05-11 16:45
by adioz
Hallo,
ich habe hier auf einem Testsystem ein Problem, der Apache will irgendwie nicht mehr starten
In den Logs wird keinerlei Hinweis auf den Fehler vermerkt, in der Shell ist nur
Starting web server (apache2)... failed!
zu sehen - nicht mehr und nicht weniger.
Hat jemand eine Idee wo ich einen Hinweis finden könnte?
sonnige Grüße
Andy
Re: Apache2 Startet nicht
Posted: 2008-05-11 17:12
by Joe User
Re: Apache2 Startet nicht
Posted: 2008-05-11 17:13
by adioz
Hallo,
das hatte ich schon Probiert es kommt kein Ergebnis sprich der Apache läuft nicht.
Grüße
Andy
Re: Apache2 Startet nicht
Posted: 2008-05-11 17:39
by Joe User
Dann lösche das alte Pidfile und starte den Apache nochmal.
Re: Apache2 Startet nicht
Posted: 2008-05-11 17:56
by adioz
es gibt kein apache2.pid (var/run/)
Re: Apache2 Startet nicht
Posted: 2008-05-11 18:00
by Joe User
In dem Fall starte Apache manuell im Debugmodus (siehe [httpd|apache] -h)
Re: Apache2 Startet nicht
Posted: 2008-05-11 18:18
by adioz
Hallo,
ich habe apache2 mit dem Zusatz -E starten lassen und mir die Ausgabe in eine Datei schreiben lassen.
Ein Fehler wurder gefunden
[Sun May 11 18:16:46 2008] [warn] NameVirtualHost 85.***.***.4:443 has no VirtualHosts
ich denke jedoch nicht das der Apache deswegen nicht starten möchte.
edit:// habe den Fehler mit dem VirtualHost behoben jedoch Startet der Apache immer noch nicht das log bleibt nun leer.
Grüße
Andy
Re: Apache2 Startet nicht
Posted: 2008-05-11 18:51
by Joe User
Code: Select all
apache2 -f /etc/apache2/httpd.conf -t
apache2 -f /etc/apache2/httpd.conf -e debug
Re: Apache2 Startet nicht
Posted: 2008-05-11 20:29
by adioz
Hallo,
das ist mysteriös.
es wird gesagt
no listening sockets available, shutting down
jedoch sagt ein lsof -i:80 das nichts läuft?
Re: Apache2 Startet nicht
Posted: 2008-05-12 00:26
by daemotron
Hast Du den Apachen irgendwie chrootet oder gejailed? Setzt Du irgendwelche härtenden Kernel-Patches (grsecurity, RSBAC, SELinux) ein? Mit welchem User versuchst Du, den Apache zu starten?
Re: Apache2 Startet nicht
Posted: 2008-05-12 19:22
by adioz
Hallo,
ich konnte den Fehler nun eingrenzen :-) es liegt nur an einem web deaktiviere ich diese vhost gehen alle anderen.
Vielleicht seht ihr ja einen Fehler ich leider nicht :-(
Code: Select all
################### CONFIXX APACHE VHOSTS FILE ##########################
# created at Mon May 12 14:19:17 2008
#
# !!! Do not make any changes in this file !!!
#
# 1. We cannot guarantee that the software will work properly, if
# the contents of this file are modified.
# 2. This file would be rewritten each time the Confixx software requires
# to update Apache configuration to bring user/domain settings in effect.
#
# If you need to have some custom content in this file, you can use
# "httpd special" function in the Confixx Control Panel or create
# an empty webX.lock file and edit webX.conf by the way you want in this
# case Confixx will not touch the configuration file.
#
##########################################################################
<Directory "/var/www/web60/html">
Options -FollowSymLinks -SymLinksIfOwnerMatch
Options +ExecCGI +Indexes
AddHandler cgi-script .cgi .pl
<IfModule mod_access.c>
Allow from all
</IfModule>
<IfModule mod_authz_host.c>
Allow from all
</IfModule>
suPHP_engine on
</Directory>
NameVirtualHost IP-ADRESSE:80
NameVirtualHost IP-ADRESSE:443
<VirtualHost IP-ADRESSE:80>
ServerName www.domain-shop.de
ServerAlias domain-shop.de
DocumentRoot /var/www/web60/html
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/1
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:443>
ServerName www.domain-shop.de
DocumentRoot /var/www/web60/html
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/2
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/web60.key
SSLCertificateFile /etc/apache2/ssl.crt/web60.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:443>
ServerName domain-shop-ssl.de
ServerAlias www.domain-shop-ssl.de
DocumentRoot /var/www/web60/html/html/firma-name
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/3
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/web60.key
SSLCertificateFile /etc/apache2/ssl.crt/web60.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:443>
ServerName domain-germany.de
ServerAlias www.domain-germany.de
DocumentRoot /var/www/web60/html/html/name/ctu
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/4
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/web60.key
SSLCertificateFile /etc/apache2/ssl.crt/web60.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName domain-germany.de
ServerAlias www.domain-germany.de
DocumentRoot /var/www/web60/html/html/name/ctu
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/5
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost 123.145186.6:443>
ServerName web60.firma.de
DocumentRoot /var/www/web60/html
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/6
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/admin.key
SSLCertificateFile /etc/apache2/ssl.crt/admin.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost 123.145186.6:80>
ServerName web60.firma.de
DocumentRoot /var/www/web60/html
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/7
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:443>
ServerName support.domain-shop-ssl.de
DocumentRoot /var/www/web60/html/html/support/ticket/upload
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/8
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/web60.key
SSLCertificateFile /etc/apache2/ssl.crt/web60.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:443>
ServerName shop.domain-shop-ssl.de
DocumentRoot /var/www/web60/html/html/shopsystem/Shop/shop
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/9
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/web60.key
SSLCertificateFile /etc/apache2/ssl.crt/web60.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web60/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName shop.domain-shop-ssl.de
DocumentRoot /var/www/web60/html/html/shopsystem/Shop/shop
SuexecUserGroup web60 web60
ScriptAlias /cgi-bin/ /var/www/web60/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web60/10
<IfModule mod_rewrite.c>
RewriteLog "/var/www/web60/log/rewrite.log"
RewriteLogLevel 1
</IfModule>
ErrorLog /var/www/web60/log/error_log
<Directory "/var/www/web60/html">
AllowOverride FileInfo
Options +FollowSymlinks
</Directory>
<Directory "/var/www/web60/html">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName domain-shop-ssl.de
Redirect / https://domain-shop-ssl.de/
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName www.domain-shop-ssl.de
Redirect / https://www.domain-shop-ssl.de/
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName support.domain-shop-ssl.de
Redirect / https://support.domain-shop-ssl.de/
</VirtualHost>
<VirtualHost IP-ADRESSE:80>
ServerName admin.domain-shop-ssl.de
Redirect / https://shop.domain-shop-ssl.de/configmain/main_bigware_80.php
</VirtualHost>
Re: Apache2 Startet nicht
Posted: 2008-05-12 20:25
by Joe User
Deine VHosts zeigen (fast) alle auf den gleichen Docroot, was mit einem passenden ServerAlias zu vermeiden ist. Desweiteren hast Du mehreren SSL-VHosts die gleiche IP-Adresse zugeordnet, was falsch ist und nicht funktioniert. Als letztes ist mir ein Fipptehler bei der IP-Adresse 123.145186.6 aufgefallen.
Kurz: Deine Config ist unnötig aufgeblasen und (dadurch) fehlerhaft.