.htaccess错误,修改php配置时

时间:2010-06-07 11:18:47

标签: php .htaccess

如果未在正确的位置发布,请将其迁移

我在根目录下的public_html文件夹中保留了一个.htaccess文件。当我查看网站时,它会给出服务器配置错误。

我的.htaccess文件仅包含此内容

php_value upload_max_filesize 100M
php_value post_max_size 100M

我想知道可能出错了什么。任何想法

MY ERROR LOG

[Mon Jun 07 17:06:23 2010] [alert] [client 113.199.221.198] /home/wwwcomr/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
[Mon Jun 07 17:04:46 2010] [alert] [client 113.199.221.198] /home/wwwcomr/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

2 个答案:

答案 0 :(得分:4)

什么Col.Srapnel说:错误日志是获取可靠信息的唯一地方。

重新更新:

PHP需要作为Apache php_value模块运行才能运行。 Source

答案 1 :(得分:1)

有关详细信息,请参阅web-server的error_log。