Issue starting Apache2

Discussion in 'Installation/Configuration' started by Dave B, Jan 24, 2021.

  1. Dave B

    Dave B Member

    I have just upgraded my PHP version and since restarting the server I am unable to start the apache2 service.

    Looking at the below log this is indicating something in regards to a client I created in ISPCONFIG with some services then later deleted and re-assigned the services to a new client.

    Any ideas on how I can resolve this?

    Code:
    root@server1:/etc/apache2# sudo systemctl status apache2
    ● apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Sun 2021-01-24 21:14:26 UTC; 14s ago
         Docs: https://httpd.apache.org/docs/2.4/
      Process: 2311 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    
    Jan 24 21:14:26 server1 systemd[1]: Starting The Apache HTTP Server...
    Jan 24 21:14:26 server1 apachectl[2311]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7
    Jan 24 21:14:26 server1 apachectl[2311]: AH00544: apache2: bad group name client2
    Jan 24 21:14:26 server1 apachectl[2311]: Action 'start' failed.
    Jan 24 21:14:26 server1 apachectl[2311]: The Apache error log may have more information.
    Jan 24 21:14:26 server1 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
    Jan 24 21:14:26 server1 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Jan 24 21:14:26 server1 systemd[1]: Failed to start The Apache HTTP Server.
    
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Any other clues in your error log of apache?
     
  3. Dave B

    Dave B Member

    The ISPconfig error log just shows.

    Code:
    24.01.2021-21:33 - ERROR - httpd is down! Rescue will not help!
    24.01.2021-21:34 - ERROR - httpd is down! Rescue will not help!
    24.01.2021-21:35 - ERROR - httpd is down! Rescue will not help!
    24.01.2021-21:36 - ERROR - httpd is down! Rescue will not help!
    24.01.2021-21:37 - ERROR - httpd is down! Rescue will not help!
    24.01.2021-21:38 - ERROR - httpd is down! Rescue will not help!
    And the Apache2 error log shows

    Code:
    Sun Jan 24 20:28:22.628327 2021] [php7:error] [pid 22989] [client 45.155.205.108:49562] script '/var/www/html/index.php' not found or unable to stat
    
    [ 2021-01-24 20:58:35.6464 16037/7fb47e183700 age/Cor/CoreMain.cpp:532 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
    [ 2021-01-24 20:58:35.6466 16037/7fb47eabc980 age/Cor/CoreMain.cpp:901 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
    
    [ 2021-01-24 20:58:35.6641 16044/7f4f0ec57700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
    [ 2021-01-24 20:58:35.6644 16044/7f4f0ed56980 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
    [ 2021-01-24 20:58:35.6652 16044/7f4f0ec57700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
    [ 2021-01-24 20:58:35.6654 16044/7f4f0e3d5700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects
    [ 2021-01-24 20:58:35.6655 16044/7f4f0e3d5700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
    [ 2021-01-24 20:58:35.6660 16037/7fb47d901700 Ser/Server.h:817 ]: [ServerThr.2] Freed 128 spare client objects
    [ 2021-01-24 20:58:35.6660 16037/7fb47e183700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects
    [ 2021-01-24 20:58:35.6660 16037/7fb47d901700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished
    [ 2021-01-24 20:58:35.6661 16037/7fb47e183700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
    [ 2021-01-24 20:58:35.6663 16037/7fb47d07f700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects
    [ 2021-01-24 20:58:35.6664 16037/7fb47d07f700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
    [ 2021-01-24 20:58:35.6691 16044/7f4f0ed56980 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
    [ 2021-01-24 20:58:35.7037 16037/7fb47eabc980 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
    [Sun Jan 24 20:58:35.972116 2021] [mpm_prefork:notice] [pid 16027] AH00169: caught SIGTERM, shutting down
    
    And the below

    Code:
    root@server1:~# journalctl -xe
    -- The unit apache2.service has entered the 'failed' state with result 'exit-code'.
    Jan 24 22:36:44 server1 systemd[1]: Failed to start The Apache HTTP Server.
    -- Subject: A start job for unit apache2.service has failed
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- A start job for unit apache2.service has finished with a failure.
    --
    -- The job identifier is 323 and the job result is failed.
    Jan 24 22:37:01 server1 sshd[2961]: Invalid user testing from 45.155.205.86 port 34642
    Jan 24 22:37:01 server1 sshd[2961]: pam_unix(sshd:auth): check pass; user unknown
    Jan 24 22:37:01 server1 sshd[2961]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=45.155.205.86
    Jan 24 22:37:01 server1 CRON[2963]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jan 24 22:37:01 server1 CRON[2965]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/is
    Jan 24 22:37:01 server1 CRON[2964]: pam_unix(cron:session): session opened for user root by (uid=0)
    Jan 24 22:37:01 server1 CRON[2966]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/
    Jan 24 22:37:02 server1 pure-ftpd[2975]: (?@::1) [INFO] New connection from ::1
    Jan 24 22:37:02 server1 pure-ftpd[2975]: (?@::1) [INFO] Logout.
    Jan 24 22:37:02 server1 postfix/smtpd[2789]: connect from localhost[::1]
    Jan 24 22:37:02 server1 postfix/smtpd[2789]: lost connection after CONNECT from localhost[::1]
    Jan 24 22:37:02 server1 postfix/smtpd[2789]: disconnect from localhost[::1] commands=0/0
    Jan 24 22:37:02 server1 dovecot[749]: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<1M9iD6256pMA
    Jan 24 22:37:02 server1 dovecot[749]: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<Pu9iD625guUA
    Jan 24 22:37:02 server1 CRON[2963]: pam_unix(cron:session): session closed for user root
    Jan 24 22:37:02 server1 CRON[2964]: pam_unix(cron:session): session closed for user root
    Jan 24 22:37:02 server1 sshd[2961]: Failed password for invalid user testing from 45.155.205.86 port 34642 ssh2
    Jan 24 22:37:03 server1 sshd[2961]: Received disconnect from 45.155.205.86 port 34642:11: Client disconnecting normally [preauth]
    Jan 24 22:37:03 server1 sshd[2961]: Disconnected from invalid user testing 45.155.205.86 port 34642 [preauth]
    Jan 24 22:37:04 server1 sshd[2990]: Invalid user testuser from 45.155.205.86 port 43618
    Jan 24 22:37:04 server1 sshd[2990]: pam_unix(sshd:auth): check pass; user unknown
    Jan 24 22:37:04 server1 sshd[2990]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=45.155.205.86
    Jan 24 22:37:06 server1 sshd[2990]: Failed password for invalid user testuser from 45.155.205.86 port 43618 ssh2
    Jan 24 22:37:13 server1 sshd[2998]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=182.61.28.204  user=root
    Jan 24 22:37:15 server1 sshd[2998]: Failed password for root from 182.61.28.204 port 49082 ssh2
     
    Last edited: Jan 24, 2021
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Restart apache 2:

    sudo systemctl restart apache2

    and right after that, take a look into the syslog file to see if there are any apache related errors from the restart:

    sudo tail -n 1000 /var/log/syslog

    will give you the last 1000 lines of that file on the console.
     
  5. Dave B

    Dave B Member

    Morning Till

    I have attached the file.

    Cheers
    Dave
     

    Attached Files:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, here we have the issue:

    AH00544: apache2: bad group name client2

    Did you delete client2 or the websites of client2 in ISPConfig? or shall this client still exist?
     
  7. Dave B

    Dave B Member

    Morning Till,
    Yes, the sites under client2 have been moved to client1 and then client2 was deleted.
    Unfortunately with Apache being down i can't get into ISPConfig to re-add it
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Try this commands:

    groupadd client2

    to see if apache starts then.
     
  9. Dave B

    Dave B Member

    Hi Till,
    That worked and apache2 has now started and is running.
    However, when I try and access ISPConfig I'm getting a connection refused error
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  11. Dave B

    Dave B Member

    Morning Taleman,

    I updated from php3 to php4 the last stable versions of each, I uninstalled using the apt-get remove command and installed using apt-get install.

    Attached is the log as referenced on the link.
     

    Attached Files:

  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run the command:

    php --version

    and post the result.
     
  13. Dave B

    Dave B Member

    Hi Till,

    root@server1:~# php --version
    PHP 7.4.14 (cli) (built: Jan 12 2021 13:59:46) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.14, Copyright (c), by Zend Technologies
     
    Last edited: Jan 25, 2021
  14. Dave B

    Dave B Member

    I have rebooted the server and i can now access 2 sites that are currently managed by ISPConfig.
    But im still unable to access ISPConfig and get the below when trying to visit the URL via http or https. (IP hidden)

    This site can’t provide a secure connection
    ***.***.***.*** sent an invalid response.
    • Try running Windows Network Diagnostics.
    ERR_SSL_PROTOCOL_ERROR
     
  15. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Can you make a exception an proceed, for once?
     
  16. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You are running Debian GNU/Linux version 10, and PHP version 7.4. This is not a supported combination. On Debian 10 the supported PHP version is 7.3.
    Additional PHP versions can be installed, but the OS default PHP must be the one ISPConfig works with.
     
  17. Dave B

    Dave B Member

    Thanks, Taleman.

    I have restored the default php version back to 7.3 and restarted the server

    Unfortunately, I am still getting the below error and not able to access ISPConfig panel,

    This site can’t provide a secure connection
    ***.***.***.*** sent an invalid response.
    • Try running Windows Network Diagnostics.
    ERR_SSL_PROTOCOL_ERROR
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try what @Th0m asked you?

    and just for a test, if it does not work with https, does it work with http? The new ssl issue is probably not directly related to the former php issue.
     
  19. Dave B

    Dave B Member

    Hi, Sorry I didn't I'm not quite clear on what Th0m has asked me to do?
    I've tried both https and http

    http shows - Not Found - The requested URL was not found on this server.
    https shows the SSL issue above
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the browser give an option to continue? In some cases, there is an option to get the browser to display the page nonetheless.
     

Share This Page