[Solved] Upgrade debian 10 to 11 - Apache fails to start

Discussion in 'Installation/Configuration' started by anark10n, Aug 18, 2022.

  1. anark10n

    anark10n Member

    So, I followed this guide on upgrading debian 10 first, then this guide on upgrading ISPConfig.
    But when i try starting the apache service i get the following error.
    Code:
    ● apache2.service - The Apache HTTP Server
         Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Wed 2022-08-17 21:48:04 UTC; 33s ago
           Docs: https://httpd.apache.org/docs/2.4/
        Process: 11682 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
            CPU: 42ms
    
    Aug 17 21:48:04 opensrvr01 systemd[1]: Starting The Apache HTTP Server...
    Aug 17 21:48:04 opensrvr01 apachectl[11685]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.3.load: Cannot load /usr/lib/apache2/modules/libphp7.3.so into server: >
    Aug 17 21:48:04 opensrvr01 apachectl[11682]: Action 'start' failed.
    Aug 17 21:48:04 opensrvr01 apachectl[11682]: The Apache error log may have more information.
    Aug 17 21:48:04 opensrvr01 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
    Aug 17 21:48:04 opensrvr01 systemd[1]: apache2.service: Failed with result 'exit-code'.
    Aug 17 21:48:04 opensrvr01 systemd[1]: Failed to start The Apache HTTP Server.
    
    What am I supposed to do with that php7.3 file that's not loading? Am I supposed to remove it, because the line in the apache2.conf just seems grab any file with that *.load. There's also a php7.3.conf file in the mods-enabled folder, should i remove that as well?

    Edit: Just so a possible solution elsewhere is to disable php.7.3 module with a2dismod and enable the current version of php instead. Is this the way to do it instead of deleting the php7.3 files?
     
    Last edited: Aug 18, 2022
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you can not just delete mod_php for PHP 7.3 without disabling it.
     
  3. anark10n

    anark10n Member

    Much appreciated. Just wanted to make sure about the solution I found as I didn't want to do anything that could potentially result in more downtime for my server.
     

Share This Page