500 Internal Server Error when using .htaccess for PHP Settings -


when using .htaccess following php settings, getting 500 internal server error while accessing website.

the code in .htaccess file:

php_flag display_errors off php_flag log_errors on 

the file permission .htaccess file 644

i know code above correct. when showed me 500 internal server error, tried different code (most wrong) too, nothing worked. different code tried are:

php_value display_errors off php_value log_errors on 

and

php_value display_errors 0 php_value log_errors 1 

what can cause of 500 internal server error?

after learning comments on question, found php settings on .htaccess not work fastcgi. so, change php settings, need modify php.ini or need in php code. there alternate way, when don't have access modify php.ini file , don't want individually modify php files?

like comments above said: need run php module dynamic shared object make work, described in apache php request hanlding documentation

dso considerations:

libphp provides apache directives such php_$value , php_admin_$value. dso option these directives valid inside .htaccess files or httpd.conf. when these directives compiled concurrent dso patch, should named php4_$value , php5_$value instead.

cgi, fcgi, suphp not work.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -