Apache startet nicht, bad user name

  • Nachdem heute Nacht der Server neu gstartet wurde, startet der apache nicht mehr.


    Ich bekomme folgende Fehlermeldung wenn ich versuche apache zu starten:

    Code
    /etc/init.d/apache2 start
    apache2: bad user name XXX



    Ich hab manuell nscd gestartet, und mysql neugestartet.
    Hat jedoch trotzdem nicht funktioniert.


    Hat jemand noch eine idee?
    Alle Forenposts und froxlor posts haben nichts ergeben.


    Viele Grüße

  • Now i added all users manually, and the apache is running again, but i get a 403 error forbidden when i try to access a vhost.


    Also, when i open froxlor i get

    Code
    A database error occuredSQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)



    Any ideas?

  • Hallo, nachdem ich nach meinem MYSQL-Update endlich meinen Mailserver wieder am laufen habe, habe ich jetzt das Problem mit Apache restart.


    Ich bekomme auch Die Fehlermeldung: AH00543: apache2: bad user name XXX


    Wenn ich journalctl -xn ausführe bekomme ich folgendes:

    -- Logs begin at Mo 2016-03-21 15:42:03 CET, end at Mo 2016-03-21 16:40:01 CET. --


    Mär 21 16:38:17 v22016023327031594 apache2[2595]: The Apache error log may have more information.


    Mär 21 16:38:17 v22016023327031594 systemd[1]: apache2.service: control process exited, code=exited status=1


    Mär 21 16:38:17 v22016023327031594 systemd[1]: Failed to start LSB: Apache2 web server.


    -- Subject: Unit apache2.service has failed


    -- Defined-By: systemd


    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel


    --


    -- Unit apache2.service has failed.


    --


    -- The result is failed.


    Mär 21 16:38:17 v22016023327031594 systemd[1]: Unit apache2.service entered failed state.


    Mär 21 16:39:01 v22016023327031594 CRON[2609]: pam_unix(cron:session): session opened for user root by (uid=0)


    Mär 21 16:39:01 v22016023327031594 CRON[2610]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)


    Mär 21 16:39:01 v22016023327031594 CRON[2609]: pam_unix(cron:session): session closed for user root


    Mär 21 16:40:01 v22016023327031594 CRON[2640]: pam_unix(cron:session): session opened for user root by (uid=0)


    Mär 21 16:40:01 v22016023327031594 CRON[2641]: (root) CMD (/usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php --tasks 1> /dev/null)


    Mär 21 16:40:01 v22016023327031594 CRON[2640]: pam_unix(cron:session): session closed for user root




    Wenn ich im Verzeichnis /etc/apache2/sites-enabled/ die vhosts-Einträge von meinen angelegten User entferne, dann kann ich Apache wieder starten. Einen Config Fehler kann ich in der .conf aber nicht erkennen.

    <VirtualHost 5.45.105.213:80>


    ServerName domain.de


    ServerAlias http://www.domain.de


    ServerAdmin user@domain.de


    DocumentRoot "/var/customers/webs/user/"


    FcgidIdleTimeout 30


    SuexecUserGroup "user" "user"


    <Directory "/var/customers/webs/user/">


    <FilesMatch "\.(php)$">


    SetHandler fcgid-script


    FcgidWrapper /var/www/php-fcgi-scripts/user/domain.de/php-fcgi-starter .php


    Options +ExecCGI


    </FilesMatch>


    Require all granted


    </Directory>


    ErrorLog "/var/customers/logs/user-error.log"


    CustomLog "/var/customers/logs/user-access.log" combined


    </VirtualHost>


    Eigentlich ein ganz normaler Vhosts-Eintrag. Ich sehe hier keinen Konfigurationsfehler.



    An diesem Problem bin ich schon öfters gehangen und musste immer wieder neu installieren um das Problem zu beseitigen.
    Liegt das an FCGI? Soll ich FPM verwenden, läuft das dann besser?



    Grüße

  • An der geposteten Datei kann es nicht liegen, dort kommt die Zeichenkette XXX nicht vor.


    Was steht den im Apache Error Log? Was steht dort bzgl. des Fehlers, wenn Du das LogLevel erhöhst?

  • In der error.log steht folgendes:
    [Mon Mar 21 18:14:27.639976 2016] [mpm_prefork:notice] [pid 5157] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
    [Mon Mar 21 18:14:27.640051 2016] [core:notice] [pid 5157] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Mar 21 18:16:37.989376 2016] [mpm_prefork:notice] [pid 5157] AH00169: caught SIGTERM, shutting down
    [Mon Mar 21 18:17:56.253073 2016] [suexec:notice] [pid 5458] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Mon Mar 21 18:17:56.264186 2016] [mpm_prefork:notice] [pid 5459] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
    [Mon Mar 21 18:17:56.264240 2016] [core:notice] [pid 5459] AH00094: Command line: '/usr/sbin/apache2'


    Habe Loglevel auf debug gestellt, dann kam folgendes:


    [Mon Mar 21 21:40:08.974567 2016] [mpm_prefork:notice] [pid 5459] AH00169: caught SIGTERM, shutting down
    [Mon Mar 21 21:40:10.016385 2016] [suexec:notice] [pid 6566] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Mon Mar 21 21:40:10.027774 2016] [mpm_prefork:notice] [pid 6567] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 configured -- resuming normal operations
    [Mon Mar 21 21:40:10.027808 2016] [mpm_prefork:info] [pid 6567] AH00164: Server built: Nov 28 2015 14:05:48
    [Mon Mar 21 21:40:10.027826 2016] [core:notice] [pid 6567] AH00094: Command line: '/usr/sbin/apache2'
    [Mon Mar 21 21:40:10.027862 2016] [mpm_prefork:debug] [pid 6567] prefork.c(995): AH00165: Accept mutex: fcntl (default: sysvsem)
    [Mon Mar 21 21:40:10.029994 2016] [fcgid:info] [pid 6570] mod_fcgid: Process manager 6570 started



    Habe soeben den cronjob ausgeführt, da ich den vhost-Eintrag gelöscht hatte um Apache starten zu können und bekomme jetzt folgende Fehlermeldung (/usr/bin/php5 /var/www/froxlor/scripts/froxlor_master_cronjob.php --force):



    [Mon Mar 21 21:46:43.330004 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330022 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.330029 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330047 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.330054 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330071 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.330078 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330110 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.330123 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330264 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.330281 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.330603 2016] [deflate:debug] [pid 6699] mod_deflate.c(855): [client 66.249.93.24:42405] AH01384: Zlib: Compressed 1564 to 483 : URL /
    [Mon Mar 21 21:46:43.375373 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of Require all granted: granted
    [Mon Mar 21 21:46:43.375429 2016] [authz_core:debug] [pid 6699] mod_authz_core.c(809): [client 66.249.93.24:42405] AH01626: authorization result of <RequireAny>: granted
    [Mon Mar 21 21:46:43.375491 2016] [core:info] [pid 6699] [client 66.249.93.24:42405] AH00128: File does not exist: /var/www/favicon.ico
    [Mon Mar 21 21:48:02.791608 2016] [core:info] [pid 6691] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=6691)
    [Mon Mar 21 21:48:02.791684 2016] [mpm_prefork:notice] [pid 6691] AH00169: caught SIGTERM, shutting down
    [Mon Mar 21 21:48:02.819446 2016] [fcgid:info] [pid 6694] mod_fcgid: process /var/www/php-fcgi-scripts/froxlor.panel/v22016023327031594.nicesrv.de/php-fcgi-starter(6707) exit(shutting down), terminated by calling exit(), return code: 0
    [Mon Mar 21 21:48:02.820045 2016] [fcgid:info] [pid 6694] mod_fcgid: Process manager 6694 stopped



    Manchmal sieht man vor lauter Wald die Bäume nicht :)
    Da ich ein MySQL Update durchgeführt hatte, musste ich noch mal libnss-mysql installieren, da dieser beim update deinstalliert wurde.
    Das wars auch schon.... ganz einfach *lol*


    Aber vielen Dank für die Mühe

    2 Mal editiert, zuletzt von re-medien () aus folgendem Grund: Fehler gefunden