LNMPA 500 错误的解决方法

1、开启 mod_rewrite 模块:
如果出现
internal server error 500
搜索并打开如下行的注释:
LoadModule rewrite_module modules/mod_rewrite.so

.htaccess 文件首先需要开启 mod_rewrite 模块才能使用

2、开启 mod_filter 模块
如果出现Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration
则注释:
LoadModule filter_module modules/mod_deflate.so

3、开启 mod_deflate 模块:
如果出现如下错误:
.htaccess: Unknown filter provider DEFLATE

搜索并打开如下行的注释:
LoadModule filter_module modules/mod_deflate.so

4、开启 mod_headers 模块:
如果出现如下错误:
.htaccess: Invalid command 'Header'

搜索并打开如下行的注释:
LoadModule headers_module modules/mod_headers.so