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

Can I change my web hosting main domain name?

Yes, and it's very easy.Just add a support ticket like this:  old: olddomain.comnew:...

How to access remote MySQL?

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

How much disk space do I need?

Disk Space is similar to your hard drive space on your home computer. Your disk space limit...

How do I get my free $5 at Fiverr?

Just simply use this link before you sign up and they will add $5 to your new...

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