How to setup CRON job in cPanel to execute a URL (For Joomla)

In this article, we will learn: How to setup CRON job in cPanel to execute a URL (For Joomla). That will update records into database.

So we will follow these 3 screen shots. Easy !

1. Login to your Cpanel and search for 'cron'

how cron job 1
 

 

2. Select common settings, for me I did once a day.(Execute that url once a day in 24 hours).

 

how cron job 2

 

3.  And in this step I have added commmand (wget -q -O /dev/null "https://yourwebsite.com/index.php?option=com_bt_property&task=property.up_expired" > /dev/null 2>&1) to execute a controller task of my custom component.

 

how cron job 3
And this will start executing, that specific url once a day. Now you can perform any action inside your custom component controller file.
Quiet Easy !

 

Still need help! no problem, feel free to contact us Today


 Abdul Waheed : (Hire Joomla & PHP Pakistani Freelancer)