Configured PHP version ea-php70 does not have a CGI binary installed

Milance

Member
Apr 6, 2013
16
1
53
cPanel Access Level
Root Administrator
Configured PHP version ea-php70 does not have a CGI binary installed, using default PHP version
Default PHP version ea-php56 does not have a CGI binary installed, exiting
php_cli unable to execute php :-1: (2) :No such file or directory:
when attempting to run ()

I receive this message every 5 minutes on email.

Please help
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
938
21
168
This started happening today. We haven't made any changes. User's cron jobs now fail with the following error....

Default PHP version ea-php56 does not have a CGI binary installed, exiting
php_cli unable to execute php :-1: (2) :No such file or directory:
when attempting to run ()

Everything was fine until today.

Edit, or maybe 2 days ago...

php -v
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.6.31 (cli) (built: Jul 11 2017 16:59:27)
Copyright (c) 1997-2016 The PHP Group

I presume this was updated automatically.
 

deddy

Well-Known Member
Oct 13, 2003
147
1
168
Same problem since last night:

Output from command /usr/bin/php -q /home/wom/public_html/google_sitemap_xml.php
Configured PHP version php does not have a CGI binary installed, using default PHP version
 

deddy

Well-Known Member
Oct 13, 2003
147
1
168
Same problem since last night:

Output from command /usr/bin/php -q /home/wom/public_html/google_sitemap_xml.php
Configured PHP version php does not have a CGI binary installed, using default PHP version
and here:
Output from command /usr/local/bin/php -q /home/wom/public_html/google_sitemap_xml.php
Configured PHP version php does not have a CLI binary installed, using default PHP Version

# php -v
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.6.31 (cli) (built: Jul 11 2017 17:00:57)
Copyright (c) 1997-2016 The PHP Group
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
938
21
168
I noticed this in another thread...

We made this change in EA-4900. This was to update the EA4 php-wrapper to point to php-cgi instead of php-cli so that cron PHP applications will behave properly with respects to relative config include paths.
Should I find php-cli and php-cgi symlinks in /usr/bin because they are not there.

On our EA3 based servers in /usr/bin I can see php-cli and php-cgi symlinks. php-cli points to /usr/local/bin/php and php-cgi points to /usr/bin/php.

On the EA4 server there are none. I presume it's more complicated due to the different versions? I've not used EA4 much yet. I don't have any knowledge on the way this is set up

All the binaries are present in /opt/cpanel/ea-php56/root/usr/bin

Different results here...

# php -v
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.6.31 (cli) (built: Jul 11 2017 16:59:27)

# /usr/bin/php -v
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 5.6.31 (cgi-fcgi) (built: Jul 11 2017 16:59:31)
 

Douglas Soares

Registered
Jul 14, 2017
4
0
1
Brazil
cPanel Access Level
Website Owner
I'm getting something similar, this started today after I updated WHM.

Code:
Configured PHP version php does not have a CGI binary installed, using default PHP version
This is the command used:

Code:
php -q /home/soaresen/public_html/integra/avisoCobranca.php sn
 
Nov 17, 2007
6
1
53
cPanel Access Level
DataCenter Provider
I am receiving this as well

"Configured PHP version php does not have a CGI binary installed, using default PHP version"

This is the only result that comes up in Google when you search for it.

This is fairly annoying as I have a cron that runs every 5 mins so I am constantly reminded of this issue...

Anyone have any input on how to resolve this?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello Everyone!

It looks this error message could stem from a few separate issues. Please review the following potential issues and their solutions:

1. Internal case EA-6542 is open to address an issue where commented PHP MIME types in .htaccess files can cause PHP version detection to break. Here's an example of such an entry in a .htaccess file:

Code:
#AddType application/x-httpd-phpXX .php
I'll monitor this case and update this thread with more information on it's status as it becomes available. In the meantime, the workaround is to manually remove the commented entry from the .htaccess file.

2. Internal case EA-6543 is open to address an issue where the PHP-CLI logic that checks the .htaccess file in the current working directory for PHP version declarations will attempt use MIME types that are unrelated to PHP, causing it to revert to the default PHP version after returning an error. Here's an example of such an entry in a .htaccess file:

Code:
AddType application/x-httpd-somethingelse .none
AddType application/x-httpd-ea-php56 .php
I'll monitor this case and update this thread with the outcome. The workaround for this case is to ensure a cPanel-recogized PHP MIME type is first MIME entry in the .htaccess file.

3. If this is a CloudLinux system, check to ensure you are not using cPanel EA4 RPMs instead of the CloudLinux EA4 RPMs. Here's a command you can use to check this:

Code:
rpm -qa|grep ea-|grep cpanel
If the YUM repos are properly configured on the CloudLinux server, then the output should resemble this:

Code:
# rpm -qa|grep ea-|grep cpanel
ea-cpanel-tools-1.0-15.el6.cloudlinux.x86_64
ea-profiles-cpanel-1.0-28.el6.cloudlinux.x86_64
ea-libcurl-7.53.1-2.2.2.cpanel.x86_64
If you see numerous EA4 RPMS ending with ".cpanel" instead of ".cloudlinux", then you will need to rerun the CloudLinux EA4 conversion script documented at the following URL:

CloudLinux Documentation

Thank you.
 

Douglas Soares

Registered
Jul 14, 2017
4
0
1
Brazil
cPanel Access Level
Website Owner
My htaccess file content:

Code:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-php .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
My htaccess file content:
Did you check to confirm no other .htaccess files exist in the account's public_html directory, or the subdirectory where the PHP file is located? Also, could you confirm if you are using CloudLinux, and if so, if you reviewed the third potential issue in my last response?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
I can confirm there is no other .htaccess file and I'm not using CloudLinux, I'm using CENTOS 6.9 x86_64.
Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

Ram Freedman

Member
Jul 18, 2017
19
0
1
Israel
cPanel Access Level
Website Owner
Hi - same problem here... All of my cron commands are not working.
I'm getting this error in the email:

Configured PHP version ea-php70 does not have a CGI binary installed, using default PHP version
Default PHP version ea-php56 does not have a CGI binary installed, exiting
php_cli unable to execute php :-1: (2) :No such file or directory:
when attempting to run ()

Can you please help?
 

QuentinC

Member
Jan 10, 2013
10
1
3
cPanel Access Level
DataCenter Provider
Hello,

Please perform the following command:

yum update cagefs

CageFS updated

This should help.
=========
Code:
Updated:
cagefs.x86_64 0:6.0-50.el7.cloudlinux

Dependency Updated:
cagefs-safebin.x86_64 0:6.0-50.el7.cloudlinux

Complete!
[[email protected] ~]# su cPuser
[[email protected] root]$ php -v
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 7.0.21 (cli) (built: Jul 11 2017 12:45:23) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.1.0 (), Copyright (c) 2002-2017, by ionCube Ltd.
with Zend OPcache v7.0.21, Copyright (c) 1999-2017, by Zend Technologies
===> It's Works !
 
  • Like
Reactions: cPanelMichael