highshooter
Goto Top

Apache2 service startet nicht mehr

wenn ich "/etc/init.d/apache2 start" eingebe kommt eine Fehler Meldung ...


root@mail:~# /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.


root@mail:~# /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Fri 2015-09-18 09:52:20 EDT; 16s ago
Process: 8310 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Sep 18 09:52:20 mail systemd[1]: Starting LSB: Apache2 web server...
Sep 18 09:52:20 mail apache2[8310]: Starting web server: apache2 failed!
Sep 18 09:52:20 mail apache2[8310]: The apache2 configtest failed. ... (warning).
Sep 18 09:52:20 mail apache2[8310]: Output of config test was:
Sep 18 09:52:20 mail apache2[8310]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apach... directory
Sep 18 09:52:20 mail apache2[8310]: Action 'configtest' failed.
Sep 18 09:52:20 mail apache2[8310]: The Apache error log may have more information.
Sep 18 09:52:20 mail systemd[1]: apache2.service: control process exited, code=exited status=1
Sep 18 09:52:20 mail systemd[1]: Failed to start LSB: Apache2 web server.
Sep 18 09:52:20 mail systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.


Ich bin da einwenig überfragt....


Bitte hilft mir ....

lg

Content-Key: 283289

Url: https://administrator.de/contentid/283289

Printed on: April 23, 2024 at 16:04 o'clock

Mitglied: 114757
114757 Sep 18, 2015 updated at 14:08:12 (UTC)
Goto Top
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apach... directory

Und was steht in Zeile 219 deiner Config ??
Die Fehlermeldung ist ja eindeutig , das der Apache nicht startet weil es dort einen Syntaxfehler oder eine Datei- bzw. eine Pfadangabe gibt die nicht existiert ...

Gruß jodel32
Member: falscher-sperrstatus
falscher-sperrstatus Sep 18, 2015 at 14:12:19 (UTC)
Goto Top
Hallo,

1. Hallo (siehe Forenhilfe)
2. bitte helft mir (siehe Forenhilfe)
3. siehe Zeile 219, sonst gerne per Hands-On (extern, Dienstleistung).

VG
Member: HighShooter
HighShooter Sep 18, 2015 at 14:29:46 (UTC)
Goto Top
Include generic snippets of statements
IncludeOptional conf-enabled/*.conf


das steht da

root@mail:/etc/apache2/conf-enabled# ls
charset.conf javascript-common.conf security.conf
icinga.conf localized-error-pages.conf serve-cgi-bin.conf
icingaweb2.conf other-vhosts-access-log.conf

lg
Member: falscher-sperrstatus
falscher-sperrstatus Sep 18, 2015 at 14:32:49 (UTC)
Goto Top
Dann hast du in einer der Dateien einen Fehler:

apachectl configtest
Mitglied: 114757
114757 Sep 18, 2015 at 14:34:30 (UTC)
Goto Top
Oder einen Berechtigungsfehler und der Apache kann auf das Verzeichnis nicht mehr zugreifen.
Member: HighShooter
HighShooter Sep 18, 2015 at 14:46:32 (UTC)
Goto Top
root@mail:~# apachectl configtest
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/icinga.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.

root@mail:~# cat /var/log/apache2/error.log.1
[Wed Sep 02 05:03:02.200790 2015] [mpm_prefork:notice] [pid 1821] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
[Wed Sep 02 05:03:02.200829 2015] [core:notice] [pid 1821] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 02 09:51:20.851466 2015] [mpm_prefork:notice] [pid 1821] AH00171: Graceful restart requested, doing restart
[Wed Sep 02 09:51:20.956382 2015] [mpm_prefork:notice] [pid 1821] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
[Wed Sep 02 09:51:20.956418 2015] [core:notice] [pid 1821] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 02 10:24:04.596482 2015] [authn_file:error] [pid 8329] (2)No such file or directory: [client 80.153.219.120:48981] AH01620: Could not open password file: /etc/icinga/htpasswd.users
[Wed Sep 02 10:24:09.885536 2015] [authn_file:error] [pid 11609] (2)No such file or directory: [client 80.153.219.120:48982] AH01620: Could not open password file: /etc/icinga/htpasswd.users
[Wed Sep 02 10:24:12.872423 2015] [authn_file:error] [pid 8332] (2)No such file or directory: [client 80.153.219.120:48983] AH01620: Could not open password file: /etc/icinga/htpasswd.users
[Wed Sep 02 10:51:54.127248 2015] [cgi:error] [pid 12183] [client 69.64.46.86:65535] script not found or unable to stat: /usr/lib/cgi-bin/rtpd.cgi
[Thu Sep 03 06:53:13.425766 2015] [cgi:error] [pid 12167] [client 37.9.62.41:28729] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Thu Sep 03 13:38:12.922254 2015] [:error] [pid 12140] [client 192.187.110.98:59236] script '/var/www/froxlor/testproxy.php' not found or unable to stat
[Fri Sep 04 05:53:14.042245 2015] [:error] [pid 12167] [client 91.196.50.33:36637] script '/var/www/froxlor/testproxy.php' not found or unable to stat
[Fri Sep 04 22:59:28.579138 2015] [:error] [pid 12140] [client 91.196.50.33:43675] script '/var/www/froxlor/testproxy.php' not found or unable to stat
[Fri Sep 04 22:59:31.678783 2015] [:error] [pid 12230] [client 185.25.151.159:54057] script '/var/www/froxlor/testproxy.php' not found or unable to stat
[Sat Sep 05 05:41:07.447742 2015] [:error] [pid 12143] [client 37.9.62.41:36475] script '/var/www/froxlor/azz.php' not found or unable to stat
[Sat Sep 05 05:41:43.976595 2015] [cgi:error] [pid 12183] [client 37.9.62.41:53136] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:41:50.540875 2015] [cgi:error] [pid 12167] [client 37.9.62.41:3985] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:42:00.606120 2015] [cgi:error] [pid 8332] [client 37.9.62.41:25731] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:42:02.666685 2015] [cgi:error] [pid 8331] [client 37.9.62.41:30877] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:42:03.046959 2015] [cgi:error] [pid 12161] [client 37.9.62.41:31796] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:42:04.868304 2015] [cgi:error] [pid 12140] [client 37.9.62.41:36619] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:53:41.419043 2015] [cgi:error] [pid 12143] [client 37.9.62.41:63625] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:53:42.157052 2015] [cgi:error] [pid 8330] [client 37.9.62.41:2205] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:53:42.589753 2015] [cgi:error] [pid 12183] [client 37.9.62.41:3987] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:53:43.182412 2015] [cgi:error] [pid 12167] [client 37.9.62.41:6283] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:54:10.170033 2015] [cgi:error] [pid 8332] [client 37.9.62.41:24464] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 05:54:17.635050 2015] [cgi:error] [pid 8331] [client 37.9.62.41:53428] script not found or unable to stat: /usr/lib/cgi-bin/env.pl
[Sat Sep 05 15:52:44.374266 2015] [:error] [pid 23355] [client 192.187.110.98:37711] script '/var/www/froxlor/testproxy.php' not found or unable to stat
[Sun Sep 06 08:19:48.046039 2015] [:error] [pid 12161] [client 192.187.110.98:57494] script '/var/www/froxlor/testproxy.php' not found or unable to stat
Member: HighShooter
HighShooter Sep 18, 2015 at 14:47:12 (UTC)
Goto Top
root@mail:/etc/apache2/conf-enabled# ls -la
total 8
drwxr-xr-x 2 root root 4096 Sep 2 10:01 .
drwxr-xr-x 9 root root 4096 Sep 18 10:29 ..
lrwxrwxrwx 1 root root 30 Jul 5 08:16 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root 29 Aug 28 10:23 icinga.conf -> ../conf-available/icinga.conf
lrwxrwxrwx 1 root root 33 Sep 2 10:01 icingaweb2.conf -> ../conf-available/icingaweb2.conf
lrwxrwxrwx 1 root root 40 Aug 4 07:59 javascript-common.conf -> ../conf-available/javascript-common.conf
lrwxrwxrwx 1 root root 44 Jul 5 08:16 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root 46 Jul 5 08:16 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root 31 Jul 5 08:16 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root 36 Jul 5 08:16 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
Member: HighShooter
HighShooter Sep 18, 2015 at 14:50:39 (UTC)
Goto Top
Fehler behoben Config file icinga weist auf nichts da ich diesen dienst nicht mehr verwende DANKE! :D
Mitglied: 114757
114757 Sep 18, 2015 updated at 14:54:16 (UTC)
Goto Top
Zitat von @HighShooter:
Fehler behoben Config file icinga weist auf nichts da ich diesen dienst nicht mehr verwende DANKE! :D
Ah ja, hätte ich jetzt bei der Latte an "nicht gefunden" Fehlern auch vermutet face-wink

Wenns das dann war, den Beitrag bitte noch auf gelöst setzen nicht vergessen.
Mitglied: 119944
119944 Sep 18, 2015 updated at 14:55:36 (UTC)
Goto Top
Moin,

lief das schonmal?
Wenn ja, was hast du geändert?

Could not open configuration file /etc/apach... directory
Sieht nach einem Zugriffsfehler aus. Schau mit "ls -l" nach wie die rechte gesetzt sind. (www)

Deine apache2 Config testest du wie schon gesagt mit:
apachectl configtest

Deine Kiste ist ein Debian 8 oder? Dann solltest du dir die neuen systemd commandos (systemctl) mal genau anschauen. face-wink

Edit: Da war ich wohl zu langsam :D

VG
Val
Member: HighShooter
HighShooter Sep 18, 2015 updated at 15:03:25 (UTC)
Goto Top
root@mail:/etc/apache2/sites-enabled# apachectl restart
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/05_ssgs_panel_vhost.conf:1


in dieser datei ist aber :

NameVirtualHost localhost:80
<VirtualHost IP:80>
DocumentRoot "/var/www/froxlor"
ServerName froxlor.domain.it
</VirtualHost>
<VirtualHost IP:80>
DocumentRoot "/var/www/roundcube"
ServerName webmail.domain.it
</VirtualHost>
<VirtualHost IP:80>
DocumentRoot "/var/www/phpmyadmin"
ServerName phpmyadmin.domain.it
</VirtualHost>
Member: HighShooter
HighShooter Sep 18, 2015 at 14:57:48 (UTC)
Goto Top
Ich habe lediglich nur Icinga installiert um meine dienste drauf überprüfen zu können, dieser hat allerdings nicht meine sachwerten ensprochen und somit removed! Da ich jetzt nicht genau wusste wo es sich alles rein gefressen hat konnte ich nur feststellen das er in apache2 configs hinterlegt hatte ...

normal mache ich's immer über /etc/init.d/apache2 [command]

die Kiste ist debian Jessie richtig face-wink
Member: falscher-sperrstatus
falscher-sperrstatus Sep 18, 2015 at 14:58:21 (UTC)
Goto Top
du hast ganz andere Probleme luduscraft.it/
Mitglied: 119944
119944 Sep 18, 2015 at 14:59:01 (UTC)
Goto Top
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/05_ssgs_panel_vhost.conf:1
Steht doch auch da:
NameVirtualHost localhost:80
Wirf es halt einfach raus face-wink

Pass bitte schnell deine IP Adressen und DNS Namen an, sowas willst du doch hier nicht veröffentlichen!

BTW: Sollen überall PHP Dateien ausgegeben werden?

VG
Val
Mitglied: 114757
114757 Sep 18, 2015 updated at 15:00:52 (UTC)
Goto Top
Ist eine Deprecated Warning
für die erste Zeile:
NameVirtualHost localhost:80

Siehe:
http://httpd.apache.org/docs/2.2/de/mod/core.html#namevirtualhost
Member: HighShooter
HighShooter Sep 18, 2015 at 15:00:35 (UTC)
Goto Top
certifiedit.net:

ich habe den Apache2 jetzt am laufen erkennt aber Froxlor nicht an, weil die virtualhost einstellungen nicht richtig sind, diese sind aber standgemäßt erstellt worden ....
Member: HighShooter
HighShooter Sep 18, 2015 at 15:01:39 (UTC)
Goto Top
Hack angriffe bringen bei mir nichts... da es eh nur ein mc server ist XD

Aber danke für den tipp
Mitglied: 119944
119944 Sep 18, 2015 updated at 15:10:29 (UTC)
Goto Top
Schau mal mit einem auf deine IP was dort alles angeboten wird! So viel willst du doch niemals nach außen hin öffnen!
Mit IP Tables solltest du die Kiste erstmal richtig dicht machen und nur die nötigsten Ports öffnen.

Hack angriffe bringen bei mir nichts... da es eh nur ein mc server ist XD
Wenn deine Maschine übernommen wird und jemand damit Unfug treibt wird es zu deinem Problem. face-wink

VG
Val
Mitglied: 114757
114757 Sep 18, 2015 updated at 15:11:17 (UTC)
Goto Top
Zitat von @HighShooter:

Hack angriffe bringen bei mir nichts... da es eh nur ein mc server ist XD
Dann komm ich dich gleich mal besuchen, und formatier die Kiste für dich :-P, dann haben wir hier Schicht im Schacht.
Member: HighShooter
HighShooter Sep 18, 2015 at 15:17:58 (UTC)
Goto Top
tja ... probier es ...

format command ist disabled...

mit programmieren bin ich gut aber administrieren ist nicht so meine stärke
Member: HighShooter
HighShooter Sep 18, 2015 at 15:21:34 (UTC)
Goto Top
Aber wie komme ich jetzt weiter mit mein problem??

Apache läuft aber sagt, dass virtual host diabled ist also nicht verfügbar ....

wie kann ich das nun beheben??
Mitglied: 114757
114757 Sep 18, 2015 updated at 15:31:25 (UTC)
Goto Top
Zitat von @HighShooter:

Aber wie komme ich jetzt weiter mit mein problem??

Apache läuft aber sagt, dass virtual host diabled ist also nicht verfügbar ....

wie kann ich das nun beheben??
Das hier durchgehen
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-vi ...
Member: HighShooter
HighShooter Sep 18, 2015 at 15:39:39 (UTC)
Goto Top
Jetzt wird schonmal alles okay angegeben

nur ist die frage wieso wird mir froxlor nicht als normale webseite angegeben sondern nur als php schrift

(script wird wiedergegeben)
Member: HighShooter
HighShooter Sep 18, 2015 at 15:40:13 (UTC)
Goto Top
root@mail:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.
Mitglied: 114757
114757 Sep 18, 2015 updated at 15:46:10 (UTC)
Goto Top
Zitat von @HighShooter:
nur ist die frage wieso wird mir froxlor nicht als normale webseite angegeben sondern nur als php schrift
Check die MIME Types in deiner Config:
http://stackoverflow.com/questions/18422140/apache-is-downloading-php-f ...

AddType  application/x-httpd-php         .php

Und ob das PHP-Modul geladen wurde:

LoadModule php5_module        modules/mod_php55.so
Member: HighShooter
HighShooter Sep 18, 2015 at 15:52:44 (UTC)
Goto Top
PHP 5.6.12-0+deb8u1 (cli) (built: Aug 16 2015 12:16:02)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies


p.s. es ist debian kein CentOS