Page 1 of 1
Cronjob configuration path
Posted: Tue Dec 16, 2014 9:55 pm
by tiagopmartins
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.
Re: Cronjob configuration path
Posted: Wed Dec 17, 2014 5:10 am
by joem
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
Re: Cronjob configuration path
Posted: Thu Dec 18, 2014 9:50 pm
by tiagopmartins
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
Re: Cronjob configuration path
Posted: Thu Dec 18, 2014 10:07 pm
by imperio
PHP interpreter
For example
Code: Select all
/usr/bin/php /home/admin/web/my_domain.com/public_html/test/scrypt.php
Re: Cronjob configuration path
Posted: Fri Dec 19, 2014 1:15 am
by tiagopmartins
Thanks for your help.
Re: Cronjob configuration path
Posted: Fri Jun 12, 2015 6:47 am
by Peggy
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.