Apache错误提示:Invalid command ScriptAlias
在apache启动我们会发现错误日志中会有
Syntax error on line 16 of /etc/apache2/sites-enabled/project: Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information. ...fail! 提示了
虽然不懂英文但是大概看会发现是别名的原因了,下面我们只要加载一个模块即可解决了。
解决方法:
在终端里输入如下命令即可:
代码如下 | 复制代码 |
sudo a2enmod authz_host; |
补充:Php教程,apache