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:
CONFIG_TEXT: script not found or unable to stat: /usr/local/cpanel/cgi-sys/ea-phpXX
Cause
The PHP version and/or PHP handler specified in WHM does not match the version specified within the local htaccess files in the AddHandler directives.
Resolution
- Access WHM as the root user and navigate to Home / Software / MultiPHP Manager
- Select the User Domain Settings tab, 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:
CONFIG_TEXT: 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, in the User Domain Settings tab for the affected domain, select a version of PHP different from 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.
Note: If the issue is with a directory that is not a domain's document root directory, the .htaccess file within that directory needs to be manually modified with your preferred text editor so that the "AddHandler" line is using the correct PHP version and handler, since the MultiPHP Manager does not modify the .htaccess files for directories that are not document root directories.
Additional Information
Comments
0 comments
Article is closed for comments.