We are aware of a potentially service impacting issue. Learn more

Direct path for different php versions Print

  • php, cpanel
  • 0

Here are the direct paths for binaries to be used in crontab or any application requesting the full path to your version of php


/usr/local/bin/ea-php70

/usr/local/bin/ea-php71

/usr/local/bin/ea-php72

The system default is generally the first supported version; in this example, it would be /usr/local/bin/ea-php70
It's also possible to use /usr/bin/php but that is the default cPanel system version.

Keep the above in consideration when on a multiple php supported server ( in general all our servers are multi php )

You can also check by adding -v to the path to get information about the version.

===
/usr/local/bin/ea-php70 -v

PHP 7.0.27 (cli) (built: Jan  8 2018 21:54:49) ( 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.27, Copyright (c) 1999-2017, by Zend Technologies
===

===

/usr/bin/php -v

ea-php-cli Copyright 2017 cPanel, Inc.

PHP 7.0.27 (cgi-fcgi) (built: Jan  8 2018 21:55:13)

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.27, Copyright (c) 1999-2017, by Zend Technologies
===

January 10th 2018


Was this answer helpful?

« Back