当我跑步时
service apache2 start
我得到这个错误:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
在浏览答案时,我发现了这个命令:
apache2ctl -M
运行时给了我这个错误:
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: /usr/lib/apache2/modules/libphp7.3.so: cannot open shared object file: No such file or directory
Action '-M' failed.
The Apache error log may have more information.
我在网上找到的一个解决方案是运行
sudo apt install -y libapache2-mod-php7.3
但我得到了这个错误
Package libapache2-mod-php7.3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libapache2-mod-php7.3' has no installation candidate
有人知道如何解决这个问题吗?