When going to a website, Apache can report an Internal Server Error 500 and the Apache error log contains errors similar to the following.
[Tue Apr 27 00:15:10.724221 2021] [core:alert] [pid 88611:tid 47191295141632] [client 220.127.116.11:45406] /home/cpaneluser/public_html/.htaccess: php_value not allowed here, referer: http://www.domain.tld
[Tue Apr 27 00:15:10.724221 2021] [core:alert] [pid 88611] [client 18.104.22.168:50597] /home/cpaneluser/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
This issue can be caused by an incorrect module specified on the php_value line. It can also be caused when suEXEC is configured on the server and there are php_value lines in .htaccess.
If the module name is incorrect, the module name needs to be corrected. In the following example, the "posts_max_size" module name would have to be corrected to "post_max_size".
php_value posts_max_size 128M
If suEXEC is enabled, php_value lines need to be removed from the .htaccess file and placed in a php.ini file in the same directory.