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 Delete the handler ‘php74’
- 2.3. ‘php74’ code in the .htaccess file will be deleted automatically.
