I want to turn off all the php errors from .htaccess file. I tried with following stackoverflow question.
Enabling error display in php via htaccess only
.htaccess file:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_value error_log /home/petstail/public_html/PHP_errors.log
And in my httpd.conf file, in virtualhost I put directory like,
<Directory "/home/website/public_html">
Options All MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ERROR LOG:
Invalid command 'php_flag', perhaps misspelled or defined by a module not
included in the server configuration
But, still I am getting internal server error (500). What should I do? What configurations am I missing?
Thanks.