Cronjob configuration path
-
- Posts: 7
- Joined: Tue Dec 16, 2014 9:49 pm
Cronjob configuration path
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.
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
Basetiagopmartins 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.
/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
-
- Posts: 7
- Joined: Tue Dec 16, 2014 9:49 pm
Re: Cronjob configuration path
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
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:Basetiagopmartins 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.
/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
PHP interpreter
For example
Code: Select all
/usr/bin/php
Code: Select all
/usr/bin/php /home/admin/web/my_domain.com/public_html/test/scrypt.php
-
- Posts: 7
- Joined: Tue Dec 16, 2014 9:49 pm
Re: Cronjob configuration path
Thanks for your help.
Re: Cronjob configuration path
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.
Hope the helps.