本文介绍了.htaccess错误,在修改php配置时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果此发布位置不正确,请进行迁移
If this is not posted in correct place, please migrate it
我将.htaccess文件保存在 public_html 根目录下的文件夹。当我查看该网站时,它给出了服务器配置错误。
I kept a .htaccess file in my public_html folder inside the root. When I view the website it is giving server misconfiguration error.
我的.htaccess文件仅包含此文件
my .htaccess file contains this only
php_value upload_max_filesize 100M php_value post_max_size 100M我想知道是什么可能是错误的。任何想法
I wonder what may be wrong. Any Ideas
我的错误日志
[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推荐答案
Shrapnel上校说:错误日志是
What Col. Shrapnel says: The error log is the only place to get reliable information.
重新更新:
PHP需要以Apache身份运行 php_value 模块工作。 来源
PHP needs to be running as an Apache module for php_value to work. Source
更多推荐
.htaccess错误,在修改php配置时
发布评论