The website hosting uses PHP version 8.4, but the WordPress admin panel says it uses PHP 7.4.
WordPress Problem:
In cPanel, the PHP version has been upgraded to 8.4, but the WordPress admin panel still displays the message: “Current PHP version is 7.4.” Checking the .htaccess file reveals a command line: ‘application/x-httpd-ea-php74___lsphp’. Deleting it causes the system to automatically re-add it.
1. Cause of the problem:
The command line ‘application/x-httpd-ea-php74___lsphp’ exists in cPanel’s Apache Handlers.
2. How to modify the Handler in cPanel:
- 2.1 cPanel >>> Advanced >>> Apache Handlers
- 2.2 Create an Apache Handler: ‘application/x-httpd-ea-php84___lsphp’
- 2.3 Create an Extension(s): .php .php84 .phtml
- 2.4 Delete the old handler ‘php74’
