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

http error 500

This page isn’t workingyour-main-domain.com is currently unable to handle this request.HTTP...

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

What is the path to PERL?

The path to PERL in PERL script is:#!/usr/local/bin/perl

How to add / install Wordpress

Log into your account manager from any page on our website or with the link here: Account...

What are the FFMPEG paths?

FFMPEG Settings can change time to time for new servers and new versions. You can see the recent...