将 Ubuntu 16.04 升级到 18.04,然后升级到 20.04,最后升级到版本 22.04 后,我收到此错误:
\n我该如何解决它?
\nroot@vmi155065:/etc/apache2/mods-enabled# sudo service apache2 status\n\xc3\x97 apache2.service - The Apache HTTP Server\n Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)\n Active: failed (Result: exit-code) since Sun 2022-05-01 17:27:12 CEST; 1 day 20h ago\n Docs: https://httpd.apache.org/docs/2.4/\n Process: 621 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)\n CPU: 31ms\n\nMay 01 17:27:12 vmi155065.contaboserver.net systemd[1]: Starting The Apache HTTP Server...\nMay 01 17:27:12 vmi155065.contaboserver.net apachectl[636]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: …Run Code Online (Sandbox Code Playgroud)