UBUNTU-APACHE2 – 未找到 MOD_ALIAS 模块

运行命令 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.




运行以下命令安装丢失的文件:

sudo apt-get update
sudo apt-get install --reinstall apache2-bin
(0)

相关推荐