SOLVED Website move to new server 404 error "script not found or unable to stat: /usr/local/cpanel/cgi-sys/ea-php56"

jndawson

Well-Known Member
Aug 27, 2014
350
39
78
Western US
cPanel Access Level
DataCenter Provider
We've moved a non-wordpress website running on ea-php56 to a new server with ea-php56 installed with several sites happily using it (contrary to our suggestions). The site throws a 404 error and the logs have these entries:
Code:
[Wed Apr 13 08:02:39.904671 2022] [cgid:error] [pid 944046:tid 47178747885312] [client 123.456.789:59048] AH01264: script not found or unable to stat: /usr/local/cpanel/cgi-sys/ea-php56, referer: http://www.domain.tld/
Sure enough:
Code:
[ root@cp2 ipns># ls -l /usr/local/cpanel/cgi-sys/
total 22692
-rwxr-xr-x  2 root wheel 3213640 Feb 21 23:25 autoconfig.cgi
-rwxr-xr-x  2 root wheel 3213640 Feb 21 23:25 autodiscover.cgi
-rwxr-xr-x  1 root wheel 5236360 Feb 21 23:25 bxd.cgi
-rwxr-xr-x  1 root wheel 1882728 Feb 21 23:25 contact_details.cgi
-rwxr-xr-x  1 root wheel 2268272 Feb 21 23:25 defaultwebpage.cgi
-rwxr-xr-x  1 root wheel  410456 Feb 21 23:25 domainredirect.cgi
-rwxr-xr-x  1 root wheel   10168 Feb 10  2020 ea-php71
-rw-r--r--. 1 root wheel       0 Jan 21  2020 index.html
-rwxr-xr-x  1 root wheel 2134136 Feb 21 23:25 movingpage.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 redirect.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 sredirect.cgi
-rwxr-xr-x  1 root wheel 2267632 Feb 21 23:25 suspendedpage.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 swhmredirect.cgi
-rwxr-xr-x  1 root wheel 2555216 Feb 21 23:25 templatepreview.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 universal-redirect.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 whmredirect.cgi
-rwxr-xr-x  6 root wheel     662 Jan 20 23:46 wredirect.cgi
Customer is in the process of updating but would really like his website to work.

What, where, how?
 
Last edited:

jndawson

Well-Known Member
Aug 27, 2014
350
39
78
Western US
cPanel Access Level
DataCenter Provider
Update. We had a similar situation covered that I actually posted that I forgot about and couldn;t find right away:
Same fix fixed it.