Skip to main content
All CollectionshPanelCron Jobs
How to set up a cron job at Hostinger
How to set up a cron job at Hostinger

Configuring cron jobs for web and cloud hosting plans at Hostinger

Updated over 4 months ago

A cron job is a powerful tool that automates the execution of simple, repetitive tasks on a set schedule. With cron jobs, you can easily handle various activities such as cache clearing, monitoring, and running custom scripts, among other tasks.

To set up a cron job, open Websites → Dashboard, search for Cron Jobs on the sidebar and click on it:

The Cron Jobs menu option

Before adding a script to a cron job, it's recommended to test it and ensure it works as intended💡

To create a new cron job, enter the following information:

  • Type - select PHP to run a .php file. Otherwise, select Custom if you want to execute scripts with different extensions and commands, as well as to use special characters.

  • Command to Run

    • For PHP cron jobs - the path to the .php file that you want to execute

    • For custom cron jobs - any command or path to the file, usually non .php

  • Schedule - specify when exactly you want your cron job to be executed. You can choose from common options or set a schedule up manually:

Cron jobs tasks schedule is based on Coordinated Universal Time (UTC+0).

Click on Save, and your cron job will be created. It will start executing as scheduled.

You can find all your existing cron jobs on the same page in the List of Cron Jobs section, where you can view their output or delete them.

Additional Resources

Did this answer your question?