Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

where is PHP CLI ?

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

where is PHP CLI ?
  • Quote

Post by baijianpeng » Sun Dec 27, 2015 2:47 am

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:

Code: Select all

/path/to/php      /web/j.com/public_html/cli/akeeba-backup.php
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.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: where is PHP CLI ?
  • Quote

Post by baijianpeng » Sun Dec 27, 2015 3:11 am

OK, after some search I got the trick:

Just run following command on SSH termianal :

Code: Select all

which php
Then I will get the real path to PHP CLI:
/usr/bin/php
Thank you.

This issue solved.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: where is PHP CLI ?
  • Quote

Post by baijianpeng » Mon Dec 28, 2015 11:46 am

It seems that this is NOT the PHP CLI. It is fastcgi binary.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: where is PHP CLI ?
  • Quote

Post by skurudo » Mon Dec 28, 2015 1:39 pm

Code: Select all

rpm -q php-cli
php-cli installed?
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: where is PHP CLI ?
  • Quote

Post by baijianpeng » Mon Dec 28, 2015 2:04 pm

Code: Select all

# rpm -q php-cli
php-cli-5.5.30-1.el7.remi.x86_64
Well, it IS the PHP CLI I was looking for. After some search, now I am sure I had found it. My former post was wrong.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password