Cant access Control Pannel after Upgrade to 3.2

Discussion in 'Installation/Configuration' started by Nomis, Oct 27, 2020.

  1. Nomis

    Nomis Member

    Hi All

    I cant access the control panel landing page after I upgraded to 3.2.
    I am getting mails can send mail. Can log into web mail, all websites are working.
    I am running Debian 9.13 all packages have been updated.
    I have tried https://**.****.co.za:8080 and https://888.888.888.888:8080 and either work

    I get the following error:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log

    I only got 2 errors during the update:
    ● amavis.service loaded failed failed LSB: Starts amavisd-new m
    amavisd-snmp-subagent.service loaded active exited LSB: Startup script for a
    apache2.service loaded active running The Apache HTTP Server
    atd.service loaded active running Deferred execution schedu
    bind9.service loaded active running BIND Domain Name Server
    ● certbot.service loaded failed failed
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    What errors do you find in the web server logs?
     
  3. Nomis

    Nomis Member

    Thank you for the reply. I have copied some lines from the var/log/apache2/error.log and var/log/apache2/error.log.1

    If you require more please let me know. Also if you could give me a better way to copy it all in one go or export it to a file would be better
     

    Attached Files:

  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Lines are cut short in the attached ispconf_apache.txt. Instead of painting the text on screen. press Control-A to select it all and then copy to clipboard.
     
  5. Nomis

    Nomis Member

    Hi Taleman

    Hope this one is better its the error.log but only from the 27th as that is the date i did the upgrade
     

    Attached Files:

  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  7. Nomis

    Nomis Member

    Hi Taleman
    I have run the ISPConfig test script as per the link. The results are in the attached file.

    Email problems - None can send and receive
    Problems with Websites or PHP - All Sites appear to be working - Running apache
    DNS Problems - Cant see any issues

    Apache Log Errors : I found
    [Tue Oct 27 12:35:53.210364 2020] [ssl:warn] [pid 1230] AH01906: ns.wherever.co.za:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Tue Oct 27 12:35:53.210583 2020] [ssl:error] [pid 1230] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / issuer: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / serial: DF48EC5DD8239879 / notbefore: May 3 21:23:17 2020 GMT / notafter: May 1 21:23:17 2030 GMT]
    [Tue Oct 27 12:35:53.210598 2020] [ssl:error] [pid 1230] AH02604: Unable to configure certificate ns.wherever.co.za:8080:0 for stapling
    [Tue Oct 27 12:35:53.210874 2020] [mpm_prefork:notice] [pid 1230] AH00163: Apache/2.4.25 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.0.2u configured -- resuming normal operations
    [Tue Oct 27 12:35:53.210893 2020] [core:notice] [pid 1230] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Oct 27 12:35:53.210937 2020] [mpm_prefork:warn] [pid 1230] AH00167: long lost child came home! (pid 1231)
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:36:20.073646 2020] [fcgid:warn] [pid 21236] (104)Connection reset by peer: [client 105.229.52.239:57725] mod_fcgid: error reading data from FastCGI server
    [Tue Oct 27 12:36:20.073702 2020] [core:error] [pid 21236] [client 105.229.52.239:57725] End of script output before headers: index.php
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:37:09.831001 2020] [fcgid:warn] [pid 21564] (104)Connection reset by peer: [client 105.229.52.239:57751] mod_fcgid: error reading data from FastCGI server, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 12:37:09.831054 2020] [core:error] [pid 21564] [client 105.229.52.239:57751] End of script output before headers: index.php, referer: https://www.globalsa.co.za/admin.php
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:53:47.800415 2020] [fcgid:warn] [pid 21564] (104)Connection reset by peer: [client 105.229.52.239:52348] mod_fcgid: error reading data from FastCGI server, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 12:53:47.800450 2020] [core:error] [pid 21564] [client 105.229.52.239:52348] End of script output before headers: index.php, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 13:00:30.658168 2020] [fcgid:warn] [pid 21165] mod_fcgid: process 24534 graceful kill fail, sending SIGKILL
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory

    [Wed Oct 28 03:00:56.282589 2020] [ssl:warn] [pid 1230] AH01906: ns.wherever.co.za:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Oct 28 03:00:56.303081 2020] [ssl:error] [pid 1230] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / issuer: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / serial: DF48EC5DD8239879 / notbefore: May 3 21:23:17 2020 GMT / notafter: May 1 21:23:17 2030 GMT]
    [Wed Oct 28 03:00:56.303116 2020] [ssl:error] [pid 1230] AH02604: Unable to configure certificate ns.wherever.co.za:8080:0 for stapling
    [Wed Oct 28 03:00:56.303362 2020] [mpm_prefork:notice] [pid 1230] AH00163: Apache/2.4.25 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.0.2u configured -- resuming normal operations
    [Wed Oct 28 03:00:56.303380 2020] [core:notice] [pid 1230] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Oct 28 03:00:56.313225 2020] [mpm_prefork:warn] [pid 1230] AH00167: long lost child came home! (pid 21163)
    [Wed Oct 28 06:25:11.604863 2020] [mpm_prefork:notice] [pid 1230] AH00171: Graceful restart requested, doing restart


     

    Attached Files:

  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Please don't style all your text as bold, and put logs within [ code ] tags (in the editor: insert -> code). If you could put the attached txt in a pair of those tags aswell, members don't have to download a unknown file to their computer.
     
  9. Nomis

    Nomis Member

    Hi Th0m

    I have rebooted a few times
     
  10. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    That's just a slogan in my signature ;) Please see my reply and edit your comment.
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    This probably is your problem:
    Code:
    [INFO] php (cli) version is 7.0.33-0+deb9u10
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.6.40-0+deb8u10
    ISPConfig on Debian 9 needs PHP version 7.0, it does now work with 5.6 on that configuration.
    I don't know how php is version 5.6, maybe you have additional php versions and have not set the default back to OS system original? Or you have upgraded from older debian and the PHP upgrade has not completed properly?
     
  12. Nomis

    Nomis Member

    I have run the ISPConfig test script as per the link. The results are in the attached file.

    Email problems - None can send and receive
    Problems with Websites or PHP - All Sites appear to be working - Running apache
    DNS Problems - Cant see any issues
    Apache Log Errors : I found
    Code:
    [Tue Oct 27 12:35:53.210364 2020] [ssl:warn] [pid 1230] AH01906: ns.wherever.co.za:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Tue Oct 27 12:35:53.210583 2020] [ssl:error] [pid 1230] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / issuer: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / serial: DF48EC5DD8239879 / notbefore: May 3 21:23:17 2020 GMT / notafter: May 1 21:23:17 2030 GMT]
    [Tue Oct 27 12:35:53.210598 2020] [ssl:error] [pid 1230] AH02604: Unable to configure certificate ns.wherever.co.za:8080:0 for stapling
    [Tue Oct 27 12:35:53.210874 2020] [mpm_prefork:notice] [pid 1230] AH00163: Apache/2.4.25 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.0.2u configured -- resuming normal operations
    [Tue Oct 27 12:35:53.210893 2020] [core:notice] [pid 1230] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Oct 27 12:35:53.210937 2020] [mpm_prefork:warn] [pid 1230] AH00167: long lost child came home! (pid 1231)
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:36:20.073646 2020] [fcgid:warn] [pid 21236] (104)Connection reset by peer: [client 105.229.52.239:57725] mod_fcgid: error reading data from FastCGI server
    [Tue Oct 27 12:36:20.073702 2020] [core:error] [pid 21236] [client 105.229.52.239:57725] End of script output before headers: index.php
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:37:09.831001 2020] [fcgid:warn] [pid 21564] (104)Connection reset by peer: [client 105.229.52.239:57751] mod_fcgid: error reading data from FastCGI server, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 12:37:09.831054 2020] [core:error] [pid 21564] [client 105.229.52.239:57751] End of script output before headers: index.php, referer: https://www.globalsa.co.za/admin.php
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    [Tue Oct 27 12:53:47.800415 2020] [fcgid:warn] [pid 21564] (104)Connection reset by peer: [client 105.229.52.239:52348] mod_fcgid: error reading data from FastCGI server, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 12:53:47.800450 2020] [core:error] [pid 21564] [client 105.229.52.239:52348] End of script output before headers: index.php, referer: https://www.globalsa.co.za/admin.php
    [Tue Oct 27 13:00:30.658168 2020] [fcgid:warn] [pid 21165] mod_fcgid: process 24534 graceful kill fail, sending SIGKILL
    .php-fcgi-starter: line 6: /usr/bin/php-cgi7.0: No such file or directory
    
    [Wed Oct 28 03:00:56.282589 2020] [ssl:warn] [pid 1230] AH01906: ns.wherever.co.za:8080:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Wed Oct 28 03:00:56.303081 2020] [ssl:error] [pid 1230] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / issuer: [email protected],CN=ns.wherever.co.za,OU=IT,O=GlobalSA,L=Pretoria,ST=Gauteng,C=SA / serial: DF48EC5DD8239879 / notbefore: May 3 21:23:17 2020 GMT / notafter: May 1 21:23:17 2030 GMT]
    [Wed Oct 28 03:00:56.303116 2020] [ssl:error] [pid 1230] AH02604: Unable to configure certificate ns.wherever.co.za:8080:0 for stapling
    [Wed Oct 28 03:00:56.303362 2020] [mpm_prefork:notice] [pid 1230] AH00163: Apache/2.4.25 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.0.2u configured -- resuming normal operations
    [Wed Oct 28 03:00:56.303380 2020] [core:notice] [pid 1230] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Oct 28 03:00:56.313225 2020] [mpm_prefork:warn] [pid 1230] AH00167: long lost child came home! (pid 21163)
    [Wed Oct 28 06:25:11.604863 2020] [mpm_prefork:notice] [pid 1230] AH00171: Graceful restart requested, doing restart
    
     

    Attached Files:

  13. Nomis

    Nomis Member

    I did do an upgrade, would it be safe to uninstall PHP5 and upgrade to 7.4
     
  14. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What is safe is using the PHP version that comes as default with the operating system.
    Also, if some of your websites needs PHP 5.6 since it does not work with later versions, you can not uninstall it.
    Have you set up additional PHP versions on ISPConfig?
     
    Jesse Norell likes this.
  15. Nomis

    Nomis Member

     
  16. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It requires default php that come with your OS version. Any upgrade to higher version or downgrade to lower version of php, might cause ISPConfig failure both in GUI and CLI.
     
  17. Nomis

    Nomis Member

    Hi

    So I have now upgrade to Debian 10 all packages are up to date PHP is now ver7 as can be seen below

    Code:
    PHP 7.0.33-34+0~20201018.42+debian9~1.gbp80c9be (cli) (built: Oct 18 2020 21:35:49) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.0.33-34+0~20201018.42+debian9~1.gbp80c9be, Copyright (c) 1999-2017, by Zend Technologies
    
    But the following still shows up. I know it can be changed in the control panel but i cant access it.
    Is there any way to change it manually by editing a config file.?
    Code:
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.0.33-34+0~20201018.42+debian9~1.gbp80c9be
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.6.40-0+deb8u10
    
     
  18. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    I believe Debian 10 ships with php 7.3 as the default version, you should change to that as your default version.

    Also ensure you go through the Perfect Server guide for debian 10 and install all the requisite packages, then run the IPSConfig updater and allow it to reconfigure services and see where things are at.

    Once you get the ISPConfig interface back up you'll want to go and update the php paths for your default php version (in php settings under the server config).
     
  19. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The OS and ISPConfig may be much messed up now, but it might work better if you change default PHP version to what it was originally in Debian 10. Do this
    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
    and choose 7.3, since that is PHP version in Debian 10. If you do not believe me and @Jesse Norell see here:
    https://packages.debian.org/search?keywords=php7&searchon=names&suite=stable&section=all
    If you updated the OS from Debian 9 to Debian 10, follow the ISPConfig Perfect Server Guide for Debian 10 to get all necessary packages installed and configurations done. Then force reconfigure services in ISPConfig so configuration files get written.
     
  20. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I am not sure about Debian but Sury php repo sometimes did change my php version to the latest instead of keeping the default that come with my Ubuntu OS so I scripted a cronjob to ensure default php is always the one shipped with the OS in the second part of the post in the following link:
    https://www.howtoforge.com/community/threads/monitor-default-php.83288/

    You may or may not need it though.
     

Share This Page