Direct path for different php versions

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

  • php, cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Hosting Account Usage Statistics

Statistics in your control panel reflex bandwidth used and data stored. These statistics are...

Automated Backup System

We do our best to backup users data, and it is your responsibility to ensure you have a local...

Pipe eMail to Application

Are you looking to pipe emails to your application? aka: helpdesk, ticketing system or any other...

Remote SpamAssassin Configuration

Configure Spam Assassin with a remote (dedicated) server.Assuming you have setup SpamAssassin on...

Filezilla Secure FTP Access to PureFTP

This guide will help you connect to your secure FTP account on our system.We recommend FileZilla...