I'm setting up Laravel on a shared hosting server. For debugging purposes, I've created a phpinfo.php file that just contains:
<?php
phpinfo();
?>
When I go to https://example.com/phpinfo.php, I would get a page saying the version is 5.6.something. I then went into the Multi-php tool on cPanel to change the version to php7.2, which added this code to the .htaccess file:
# 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-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
After that happened, going to https://example.com/phpinfo.php gives a 500 error, saying that it also wasn't able to use an ErrorDocument to handle the request. I've looked at the logs on cPanel, but they didn't have anything since I changed the version.
Any help is much appreciated!