Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

[Resolved]cron cli command Topic is solved

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
khampol
Posts: 31
Joined: Sat Jul 30, 2016 7:57 am

[Resolved]cron cli command
  • Quote

Post by khampol » Sat May 26, 2018 6:15 am

I need cron for backup stuff, as command i use something like this :

Code: Select all

/usr/local/vesta/bin /home/admin/web/mydomain.com/public_html/akeeba_backup/cli/backup.php --profile=2
but looks its not good as backup are not done.

Code: Select all

/usr/local/vesta/bin
Is this ok?...
Last edited by khampol on Sat May 26, 2018 3:55 pm, edited 1 time in total.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: cron cli command
  • Quote

Post by mehargags » Sat May 26, 2018 7:45 am

you should NOT use /usr/local/vesta/bin, it is VestaCP's internal PHP.
You should use Server-wide PHP installed in /usr/bin/php

run this command in your terminal

Code: Select all

/usr/bin/php /home/admin/web/mydomain.com/public_html/akeeba_backup/cli/backup.php --profile=2
and see if it runs correctly and completes with the result
Top

khampol
Posts: 31
Joined: Sat Jul 30, 2016 7:57 am

Re: cron cli command
  • Quote

Post by khampol » Sat May 26, 2018 3:53 pm

I run the command and that works! I correct in all my cron.
Thanks a lot :D
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • 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