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

Where is the servers located?

The main servers are located in Los Angeles. We also have backup servers in Las Vegas and round...

The difference between Addon, Parked, and Sub Domains?

There are three domain types. (Parked, Sub Domains, Add on, )1. Parked domain: A parked domain is...

How to access remote MySQL?

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

Do you troubleshoot scripts and apps?

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

What is the root login for my new VPS server?

The root login is the same password our system sent you in your welcome email. You just change...