I'm trying to transition from PHP 7.4 to 8.1 and I've installed both versions via WHM. But when I switch any of my sites to use 8.1 they just display an Apache 500 error.
Not even a simple <?php echo('Hello World'); ?> will load, so it's not a PHP code issue.
The 500 error doesn't even appear in the domain's error log for some reason.
I notice that WHM changes my .htaccess file and adds "AddHandler application/x-httpd-ea-php81 .php .php8 .phtml"
If I remove this the site works again, but phpinfo reports that it's version 7.4
So it's as if the 8.1 installation didn't actually work.
Does anyone have any tips on where to begin trying to work out whats going on without any error messages or logs?
Not even a simple <?php echo('Hello World'); ?> will load, so it's not a PHP code issue.
The 500 error doesn't even appear in the domain's error log for some reason.
I notice that WHM changes my .htaccess file and adds "AddHandler application/x-httpd-ea-php81 .php .php8 .phtml"
If I remove this the site works again, but phpinfo reports that it's version 7.4
So it's as if the 8.1 installation didn't actually work.
Does anyone have any tips on where to begin trying to work out whats going on without any error messages or logs?