Cron Job


#1

Hi I’m new to cron jobs and I need to set one up for jadmin on my joomla site.
The recommended code to run the job is from jadmin documentation.

*/5 * * * * www-data php /var/www/vhosts/yourdomain.com/httpdocs/components/com_jadmin/jadmin.cron.php >/dev/null 2>&1

You will need to replace the path above with your path to the jadmin.cron.php file.
You will also need to replace the www-data user with your webserver user, for example apache.

But this code is not working with the cron job web panel.any help is appreciated.


#2

ssh into your account and type “locate jadmin.cron.php”. It will give you the full path. I think the full path should be something like “/home/yourusername/yourdomain/components/com_jadmin/jadmin.cron.php”.

Once you have the full path, you can set up crontab job like the following

*/5 * * * php FULLPATH/jadmin.cron.php >/dev/null 2>&1

You can discard the username when you set up the crontab job because each user has its own contab job settings. By default, it will run the owners jobs only.


#3

Thank you it works like a charm now.
http://www.sdi-graphics.com


#4

I’m glad you have it sorted out :stuck_out_tongue: