How to use PHP-CLI

You would call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you need the CGI variant. 

If you call 'php' only via the CRON, you're going to end up using the CGI binary, since '/usr/bin' comes first in the CRON $PATH.

To use use php-cli you need to use the path /usr/local/bin/php

Was this answer helpful?

Also Read

What are the E-mail secure and non secure ports?

If you are having issues sending E-mail try to change your outgoing port to 587. If you prefer to...

How to access remote MySQL?

Unfortunately we do not have remote access for MySQL. The security and load risk is too much for...

What type of IP number resource organization do you use?

We ARIN for our IP number resource organization.

Is your Web Hosting compatible with IPhone and Android devices?

Yes, all of our hosting, reseller, and dedicated plans will work with all devices including...

Do you troubleshoot scripts and apps?

Hello,Sorry, but troubleshooting sripts and apps needs to be done by the scipt maker or a...