where is PHP CLI ?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
where is PHP CLI ?
I am using VestaCP v0.9.8 on CentOS with PHP 5.5.30 . Now I want to add a Cron job which has following command:
Of course I have to replace the "/path/to/php" part with real PHP CLI path on my server. But I have no idea where is the PHP CLI on VestaCP?
Thank you.
Code: Select all
/path/to/php /web/j.com/public_html/cli/akeeba-backup.php
Thank you.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: where is PHP CLI ?
OK, after some search I got the trick:
Just run following command on SSH termianal :
Then I will get the real path to PHP CLI:
This issue solved.
Just run following command on SSH termianal :
Code: Select all
which php
Thank you./usr/bin/php
This issue solved.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: where is PHP CLI ?
It seems that this is NOT the PHP CLI. It is fastcgi binary.
Re: where is PHP CLI ?
Code: Select all
rpm -q php-cli
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: where is PHP CLI ?
Code: Select all
# rpm -q php-cli
php-cli-5.5.30-1.el7.remi.x86_64