tvo*_*ooo 10 .htaccess php.ini apache-2.2
我正在使用 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
?
尝试在虚拟主机中添加“ Directory ”指令,而不是在默认的 apache2.conf 中。另外,如果这是在 ubuntu/debian 中,如果您没有使用任何其他虚拟主机,则需要在/etc/apache2/sites-available/default中进行更改。
归档时间: |
|
查看次数: |
30705 次 |
最近记录: |