Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
-
unix1988
- Beiträge: 693
- Registriert: 27.12.2010 00:09:20
Beitrag
von unix1988 » 04.03.2015 13:32:36
Hallo
Ich kann meine apache2 nicht mer starte bekomme das
/etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
failed!
was heis das was muchste ich den machen das er starte ??
Grus unix1988
Hallo Ich habe eine Rechtschreibschwäche das heis nicht wundern es es manch mal schwer zu schirben ist
-
Luxuslurch
- Moderator
- Beiträge: 2091
- Registriert: 14.09.2008 09:41:54
Beitrag
von Luxuslurch » 04.03.2015 13:42:36
Vielleicht das, um mehr über die Ursache des Problems herauszufinden?
unix1988 hat geschrieben:See 'systemctl status apache2.service' and 'journalctl -xn' for details.
Debian Stable.
Der Mod spricht rot.
-
unix1988
- Beiträge: 693
- Registriert: 27.12.2010 00:09:20
Beitrag
von unix1988 » 04.03.2015 13:50:41
so hete das fur euch
systemctl status apache2.service
* apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Mi 2015-03-04 13:46:44 CET; 1min 14s ago
Process: 1849 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Mär 04 13:46:44 blu systemd[1]: Starting LSB: Apache2 web server...
Mär 04 13:46:44 blu apache2[1849]: Starting web server: apache2 failed!
Mär 04 13:46:44 blu apache2[1849]: The apache2 configtest failed. ... (warning).
Mär 04 13:46:44 blu apache2[1849]: Output of config test was:
Mär 04 13:46:44 blu apache2[1849]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax err...
Mär 04 13:46:44 blu apache2[1849]: Action 'configtest' failed.
Mär 04 13:46:44 blu apache2[1849]: The Apache error log may have more information.
Mär 04 13:46:44 blu systemd[1]: apache2.service: control process exited, code=exited status=1
Mär 04 13:46:44 blu systemd[1]: Failed to start LSB: Apache2 web server.
Mär 04 13:46:44 blu systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
das ist die config
https://debianforum.de/forum/pastebin. ... w&s=38357
ich weis echt net warum
Hallo Ich habe eine Rechtschreibschwäche das heis nicht wundern es es manch mal schwer zu schirben ist
-
4A4B
- Beiträge: 981
- Registriert: 09.11.2011 11:19:55
-
Kontaktdaten:
Beitrag
von 4A4B » 04.03.2015 14:10:34
Mär 04 13:46:44 blu apache2[1849]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax err...
[...]
Hint: Some lines were ellipsized, use -l to show in full.
Mit der Option -l sieht man die ganze Log-Zeile, vielleicht steht nach dem "err..." noch was interessantes
Zeile 140 schaut in meiner apache2.conf genauso aus, auch die vorhergehenden Zeilen
Hattest du die Datei vorher mal bearbeitet, so dass vielleicht Steuerzeichen hineingeraten sind?
Die Option IncludeOptional gibt es seit der Version 2.3.6:
http://httpd.apache.org/docs/trunk/mod/ ... deoptional
Welche Apache-Version läuft bei dir?
-
unix1988
- Beiträge: 693
- Registriert: 27.12.2010 00:09:20
Beitrag
von unix1988 » 04.03.2015 14:14:50
hi
habe an der datei nix tran gemacht
habe die version 2.4.10-9 trauf
systemctl -l status apache2.service
* apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Mi 2015-03-04 14:11:54 CET; 2min 45s ago
Process: 488 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Mär 04 14:11:54 blu apache2[488]: Starting web server: apache2 failed!
Mär 04 14:11:54 blu apache2[488]: The apache2 configtest failed. ... (warning).
Mär 04 14:11:54 blu apache2[488]: Output of config test was:
Mär 04 14:11:54 blu apache2[488]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/authz_default.load: Cannot load /usr/lib/apache2/modules/mod_authz_default.so into server: /usr/lib/apache2/modules/mod_authz_default.so: cannot open shared object file: No such file or directory
Mär 04 14:11:54 blu apache2[488]: Action 'configtest' failed.
Mär 04 14:11:54 blu apache2[488]: The Apache error log may have more information.
Mär 04 14:11:54 blu systemd[1]: apache2.service: control process exited, code=exited status=1
Mär 04 14:11:54 blu systemd[1]: Failed to start LSB: Apache2 web server.
Mär 04 14:11:54 blu systemd[1]: Unit apache2.service entered failed state.
Hallo Ich habe eine Rechtschreibschwäche das heis nicht wundern es es manch mal schwer zu schirben ist
-
eggy
- Beiträge: 3334
- Registriert: 10.05.2008 11:23:50
Beitrag
von eggy » 04.03.2015 14:16:27
Du hast irgendwas an der Config geändert. Und dabei ist Dir ein Fehler unterlaufen.
Das log sagt
Code: Alles auswählen
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax err...
Schaust Du in die Config steht da
also liegt der Fehler wahrscheinlich in einer der .conf Dateien in mods-enabled.
Welche Dateien hast Du da seit dem letzten erfolgreichen Start geändert? Zeig die mal.
-
unix1988
- Beiträge: 693
- Registriert: 27.12.2010 00:09:20
Beitrag
von unix1988 » 04.03.2015 14:22:19
ich habe die bei mit stechen
# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
so und in der anderen habe ich nix tran gemacht
so das ist die list von den date wo du mir gesta hast
ls -l
insgesamt 0
lrwxrwxrwx 1 root root 36 Feb 9 12:37 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Mär 4 13:29 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Mär 4 13:29 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Mär 4 13:29 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Feb 9 12:37 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Mär 4 13:29 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Feb 9 12:37 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 36 Mär 4 13:29 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 Mär 4 13:29 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 Mär 4 13:29 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Mär 4 13:29 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Mär 4 13:29 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Mär 4 13:29 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 Mär 4 13:29 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 30 Mär 4 13:29 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Mär 4 13:29 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Mär 4 13:29 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Mär 4 13:29 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Mär 4 13:29 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 29 Feb 9 12:37 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 27 Mär 4 13:29 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Mär 4 13:29 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 30 Feb 9 12:49 mpm_itk.load -> ../mods-available/mpm_itk.load
lrwxrwxrwx 1 root root 34 Feb 9 12:37 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Feb 9 12:37 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Mär 4 13:29 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Mär 4 13:29 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 Mär 4 13:29 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 Mär 4 13:29 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 33 Mär 4 13:29 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Mär 4 13:29 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Mär 4 13:29 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Mär 4 13:29 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 36 Feb 9 12:37 socache_shmcb.load -> ../mods-available/socache_shmcb.load
lrwxrwxrwx 1 root root 29 Mär 4 13:29 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Mär 4 13:29 status.load -> ../mods-available/status.load
Hallo Ich habe eine Rechtschreibschwäche das heis nicht wundern es es manch mal schwer zu schirben ist
-
rendegast
- Beiträge: 15041
- Registriert: 27.02.2006 16:50:33
- Lizenz eigener Beiträge: MIT Lizenz
Beitrag
von rendegast » 04.03.2015 14:58:20
mod_authz_default.so
ist eine Datei im Paket
apache2.2-bin (version 2.2, wheezy),
im entsprechenden Paket
apache2-bin (version 2.4, jessie) jedoch nicht vorhanden.
Unvollständiges Upgrade?
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-
unix1988
- Beiträge: 693
- Registriert: 27.12.2010 00:09:20
Beitrag
von unix1988 » 04.03.2015 15:06:38
nummer1
dpkg -l | grep apache
ii apache2 2.4.10-9 amd64 Apache HTTP Server
ii apache2-bin 2.4.10-9 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.10-9 all Apache HTTP Server (common files)
ii apache2-mpm-event 2.4.10-9 amd64 transitional event MPM package for apache2
ii apache2-mpm-itk 2.4.10-9 amd64 transitional itk MPM package for apache2
ii apache2-mpm-prefork 2.4.10-9 amd64 transitional prefork MPM package for apache2
ii apache2-mpm-worker 2.4.10-9 amd64 transitional worker MPM package for apache2
ii apache2-suexec 2.4.10-9 amd64 transitional package for apache2-suexec-pristine
ii apache2-suexec-custom 2.4.10-9 amd64 Apache HTTP Server configurable suexec program for mod_suexec
ii apache2-suexec-pristine 2.4.10-9 amd64 Apache HTTP Server standard suexec program for mod_suexec
ii apache2-utils 2.4.10-9 amd64 Apache HTTP Server (utility programs for web servers)
ii apache2.2-bin 2.4.10-9 amd64 Transitional package for apache2-bin
ii apache2.2-common 2.4.10-9 amd64 Transitional package for apache2
ii libapache2-mod-php5 5.6.5+dfsg-2 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mpm-itk 2.4.7-02-1.1 amd64 multiuser module for Apache
dpkg -l | egrep -v "^ii"
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Architektur Beschreibung
+++-==============================-=============================-============-===============================================================================
rc libevent-2.0-5:amd64 2.0.21-stable-2 amd64 Asynchronous event notification library
rc libnfsidmap2:amd64 0.25-5 amd64 NFS idmapping library
rc libtirpc1:amd64 0.2.5-1 amd64 transport-independent RPC library
rc update-inetd 4.43 all inetd configuration file updater
Hallo Ich habe eine Rechtschreibschwäche das heis nicht wundern es es manch mal schwer zu schirben ist
-
rendegast
- Beiträge: 15041
- Registriert: 27.02.2006 16:50:33
- Lizenz eigener Beiträge: MIT Lizenz
Beitrag
von rendegast » 04.03.2015 17:33:30
Dann entferne die obsoleten Links/Dateien in mods-available/mods-enabled.
apache2.2-common (ver 2.4, jessie)
sollte solch obsolete Dateien eigentlich entfernt haben,
Code: Alles auswählen
dpkg-reconfigure apache2.2-common
vielleicht eher/auch
aptitude purge apache2.2-common
aptitude install apache2.2-common
aptitude purge apache2.2-common
Gegebenenfalls muß händisch nachgearbeitet werden, Einstieg
Code: Alles auswählen
Inspirationsquelle
cat /var/lib/dpkg/info/apache2.2-common.preinst # identisch den anderen Paket-Skripten
dpkg-query -S fragliche_Datei
Allgemein,
auch mal nach Dateien *.dpkg-[new|old|dist] auf dem System suchen,
gegebenenfalls sichten/vergleichen und entsprechende Aktionen vornehmen.
Die obigen rc-Pakete würde ich purgen, Ostereier.
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")