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 Web Server
  • Search

Cronjob configuration path

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
tiagopmartins
Posts: 7
Joined: Tue Dec 16, 2014 9:49 pm

Cronjob configuration path
  • Quote

Post by tiagopmartins » Tue Dec 16, 2014 9:55 pm

Hi,

I'm configuring a php script to run with a cronjob but I don't know the php location.

Could you help me to write a correct path?

Thanks.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Cronjob configuration path
  • Quote

Post by joem » Wed Dec 17, 2014 5:10 am

tiagopmartins wrote:Hi,

I'm configuring a php script to run with a cronjob but I don't know the php location.

Could you help me to write a correct path?

Thanks.
Base
/home/USERNAME/web/DOMAIN/public_html/

Example
/home/admin/web/domain.com/public_html/wordpress/cron.php

For my example I am using a domain under my vesta cp admin username. The script is located at domain.com/wordpress/cron.php
Top

tiagopmartins
Posts: 7
Joined: Tue Dec 16, 2014 9:49 pm

Re: Cronjob configuration path
  • Quote

Post by tiagopmartins » Thu Dec 18, 2014 9:50 pm

Hi,

Thanks for your help.

My question is about the php path. Something like this - /usr/local/bin/php but I receive an email message with permission denied.

I usualy use this example in a shared server:
/usr/local/bin/php -f /home/username/public_html/cron/cron.php

Thanks

joem wrote:
tiagopmartins wrote:Hi,

I'm configuring a php script to run with a cronjob but I don't know the php location.

Could you help me to write a correct path?

Thanks.
Base
/home/USERNAME/web/DOMAIN/public_html/

Example
/home/admin/web/domain.com/public_html/wordpress/cron.php

For my example I am using a domain under my vesta cp admin username. The script is located at domain.com/wordpress/cron.php
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Cronjob configuration path
  • Quote

Post by imperio » Thu Dec 18, 2014 10:07 pm

PHP interpreter

Code: Select all

/usr/bin/php
For example

Code: Select all

/usr/bin/php /home/admin/web/my_domain.com/public_html/test/scrypt.php
Top

tiagopmartins
Posts: 7
Joined: Tue Dec 16, 2014 9:49 pm

Re: Cronjob configuration path
  • Quote

Post by tiagopmartins » Fri Dec 19, 2014 1:15 am

Thanks for your help.
Top

Peggy
Posts: 4
Joined: Fri Jun 12, 2015 6:43 am

Re: Cronjob configuration path
  • Quote

Post by Peggy » Fri Jun 12, 2015 6:47 am

Hi, i had the same issue with when setting up, you can use an external cronjob service like: https://www.easycron.com to run the cron jobs.
Hope the helps.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • 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
 

 

cron

Login  •  Register

I forgot my password