我正在使用 PHP5 作为模块运行 Apache Web 服务器(注意:作为 Apache 模块,而不是 CGI!)。
在我的一些 .htaccess 文件(gallery3 软件附带的文件,http: //gallery.menalto.com/ )中,有 php_value 和 php_flag 语句。
当尝试访问该文件夹中的文件时,它们会导致 500 服务器错误。所以我编辑了我的 apache2.conf 并添加了以下几行:
<Directory /my/gallery/folder>
AllowOverride All
</Directory>
Run Code Online (Sandbox Code Playgroud)
我做错了什么吗?我允许覆盖,我将 PHP 作为 Apache 模块运行。为什么要让 error.log 告诉我php_value not allowed here
?