Symptoms
After an account transfer from one cPanel server to another, on rare occasions, the account's site doesn't load. Checking the Apache error_log reveals the following error, where the XX in ea-phpXX is the PHP version:
script not found or unable to stat: /usr/local/cpanel/cgi-sys/ea-phpXX
Description
This may occur if the version of PHP specified in WHM does not match the version specified within the local htaccess files in AddHandler directives. We can use tools in WHM to verify and reset the PHP version used for the account.
Workaround
- Access WHM as the root user and navigate to "Home / Software / MultiPHP Manager."
- Select User Domain Settings, and find the problem domain in the list. The PHP Version column will confirm the version that the domain is intended to use.
- Access the cPanel account and navigate to "Files / File Manager"
- Review any htaccess files in the account root or public_html folders. If there are any "AddHandler" lines, they should match the configured version in WHM. The following example is for PHP 7.3:
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
- If the AddHandler version does not match the version in WHM, it should be removed from the file entirely.
- Reset the PHP version in WHM to ensure all settings are properly applied. From the MultiPHP Manager, under User Domain Settings for the affected domain, select a version of PHP different to what is intended.
- The setting will automatically apply. When it is successful, choose again the version that you intend to use going forward to reset the PHP version.
Additional Information
Comments
0 comments
Article is closed for comments.