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

How do I add/create a MySQL database?

It is easy once you get used to it. Here is flash step by step on how to do it: MySQL Tutorial...

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...

How is your web hosting so fast?

To be honest it's not one big thing although there is a couple more expensive things we do to be...

How to access remote MySQL?

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

My PHP files are not working. What is wrong?

There are a number of reasons that your PHP files may not be working properly.Check that you have...