我正在进入我的服务器错误日志。
[Mon Jan 27 08:04:06 2014] [alert] [client xxxx] /home/.../public_html/.htaccess:无效的命令“Header”,可能拼写错误或由未包含在服务器配置中的模块定义
这是我的简单.htaccess
:
<IfModule mod_rewrite.c>
Options -MultiViews
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ silex.php/ [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
可能有什么问题?
输入时出现错误: sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/authz_default.load: Cannot load /usr/lib/apache2/modules/mod_authz_default.so into server: /usr/lib/apache2/modules/mod_authz_default.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
Run Code Online (Sandbox Code Playgroud)
另外,我安装了 php 5.5.9 版,现在网站根本无法加载。我应该降级到 5.4 吗?如果是这样,我该怎么做?
什么都没有了!
配置文件
#
# Based upon the NCSA server configuration files originally …
Run Code Online (Sandbox Code Playgroud)