nach einem Systemupgrade von Stretch nach Buster habe ich folgende Situation bei einer Apache2-Konfiguration, die so unter Stretch noch gelaufen ist.
Code: Alles auswählen
# systemctl start apache2
Job for apache2.service failed because the control process exited with error code.
Code: Alles auswählen
# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-09-19 14:35:22 CEST; 2s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 1604 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Sep 19 14:35:22 mx systemd[1]: Starting The Apache HTTP Server...
Sep 19 14:35:22 mx apachectl[1604]: AH00526: Syntax error on line 4 of /etc/apache2/sites-enabled/schwaben.conf:
Sep 19 14:35:22 mx apachectl[1604]: Cannot define multiple Listeners on the same IP:port
Sep 19 14:35:22 mx apachectl[1604]: Action 'start' failed.
Code: Alles auswählen
SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot /usr/lib/cgi-bin
<Directory /usr/lib/cgi-bin>
AddHandler cgi-script .cgi .pl
Options +ExecCGI
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerSignature off
TraceEnable off
AddDefaultCharset utf-8
ServerName "autoconfig.germany.com"
DocumentRoot /var/www/mail/autoconfig
<Directory /var/www/mail/autoconfig>
Options -Indexes
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerSignature off
TraceEnable off
AddDefaultCharset utf-8
ServerName "mail.schwaben.de"
DocumentRoot /var/www/mail
RewriteEngine on
RewriteCond %{SERVER_NAME} =mail.schwaben.de
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Code: Alles auswählen
# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-09-19 14:45:11 CEST; 2s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 2163 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Sep 19 14:45:11 mx systemd[1]: Starting The Apache HTTP Server...
Sep 19 14:45:11 mx apachectl[2163]: (98)Address already in use: AH00072: make_sock: could not bind to address 127.0.0.1:80
Sep 19 14:45:11 mx apachectl[2163]: no listening sockets available, shutting down
Sep 19 14:45:11 mx apachectl[2163]: AH00015: Unable to open logs
Sep 19 14:45:11 mx apachectl[2163]: Action 'start' failed.
Sep 19 14:45:11 mx apachectl[2163]: The Apache error log may have more information.
Sep 19 14:45:11 mx systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Sep 19 14:45:11 mx systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 19 14:45:11 mx systemd[1]: Failed to start The Apache HTTP Server.
Vielen Dank
Kaheto