[英]php_value in .htaccess show Internal Server Error
I add This line for handeling error into txt
files in .htaccess
: 我将这一行用于将错误处理到.htaccess
txt
文件中:
php_value log_errors on
php_value error_log /hermes/bosoraweb114/b2947/arcom/cms/cache/logs/errorser.txt
But in action my page I see : Internal Server Error
但是在我的页面上,我看到: Internal Server Error
When i remove this two lines my page worked. 当我删除这两行时,我的页面正常工作。 How do can i fix this problem? 我该如何解决这个问题?
You need to determine if PHP is setup in CGI mode. 您需要确定是否以CGI模式设置了PHP。 If it is you cannot add those lines to your .htaccess file. 如果是这样,则不能将这些行添加到.htaccess文件中。 You will need to make your changes via php.ini 您将需要通过php.ini进行更改
Check this link for how to check if PHP is CGI or APACHE: https://www.opensource-excellence.com/blog/item/416-how-to-determine-php-is-running-as-php-cgi-or-apache-module?.html 检查此链接以了解如何检查PHP是CGI还是APACHE: https : //www.opensource-excellence.com/blog/item/416-how-to-determine-php-is-running-as-php-cgi-或的Apache模块?的.html
correct your code 更正您的代码
php_value log_errors on
php_value error_log /hermes/bosoraweb114/b2947/arcom/cms/cache/logs/errorser\.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.