运行命令sudo service apache2 restart
出现此错误。如何解决?
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
答案1
运行以下命令来安装缺少的文件:
sudo apt-get update
sudo apt-get install --reinstall apache2-bin