Creating a Cron Job in Hostinger for Every 5 Minutes

To set up a cron job in Hostinger

Step 1: Edit the dbname, password, username and host in the cronjob.php files

  • Access the file from file manager from hostinger dashboard
  • Then open cronjob.php and edit the config details of the database
Alt text

Step 1: Access Cron Jobs

  • Search cronjob in the search bar in hostinger dashboard
Alt text

Step 2: Create a New Cron Job

  • Click on Add New Cron Job.
  • In the Cron Job Command field, enter the command you want to run.
  • In the Minute field, select */5 to specify every 5 minutes.
  • Set the other fields (hour, day, month, and weekday) as needed.
  • Click Save to create your cron job.
Alt text

Hence you have successsfully completed the cronjob setup