Site won't render after transfer

jndawson

Well-Known Member
Aug 27, 2014
276
29
28
Western US
cPanel Access Level
DataCenter Provider
We are transferring accounts off of a Centos6 server w/ WHM v.86.0.11 to CloudLinux7 w/ WHM v.88.0.11. We've transferred several with no issues. We have one account with two websites. One renders, the other doesn't. The one that does not render shows errors:

Code:
script not found or unable to stat: /usr/local/cpanel/cgi-sys/ea-php73, referer: https://domain.tld/
The file doesn't exist on any of our systems, and we can't find what's calling it other than the website.

Can somebody point us in the right direction?
 

andrew.n

Well-Known Member
Jun 9, 2020
50
9
8
EU
cPanel Access Level
Root Administrator
Does this account has a script with static reference to the PHP version?
Which PHP version do you use on this account? Is it alt-php73 (cloudlinux) or ea-php73?
Is the account in CageFS?
 

jndawson

Well-Known Member
Aug 27, 2014
276
29
28
Western US
cPanel Access Level
DataCenter Provider
We opened a ticket. Issue was account was using a subdirectory for document root. Excerpts from the support tech:

cPanel MultiPHP Manager is managing the PHP versions that domains are using via the .htaccess file. In this instance, the domain is being rewritten to use a different directory which isn't a document root.

So the issue here is that a non-document root is specifying a PHP version and handler not configured in MultiPHP Manager settings.

It is best to manage your websites using the document root configured in cPanel or these kinds of issues can occur where the PHP version is not in sync because the path being used for the website is not a document root in cPanel.

The tech edited the subdirectory/.htaccess from:
Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the âea-php73âPHPâ
                        <IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
to:
Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the âea-php73âPHPâ
                        <IfModule mime_module>
  AddHandler application/x-httpd-ea-php73___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
The site is rendering again.
 
  • Like
Reactions: andrew.n