If you receive “500 Internal Server Error” messages after changing the PHP version on your web site, check the .htaccess file in your public_html directory. At the end of the .htaccess file you should see text similar to the following:
# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit
or
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
The value determines the PHP version for your site. Make sure that the correct version is specified, and that the line formatting is correct.
Depending on how the .htaccess file was previously configured, you may find that lines of text have been merged, which could cause problems.