> For the complete documentation index, see [llms.txt](https://docs.hamz.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hamz.dev/hamz-staff-elite-panel/web-cronjob.md).

# Web Cronjob

## Setting up Cronjob

Firstly, head into **cPanel**, and under **Advanced**, look for **Cron Jobs**.

<figure><img src="/files/RRGHGXPCn1LLlgFOA0kW" alt=""><figcaption></figcaption></figure>

You'll need to setup 2 cronjobs, one for the playtime hourly, and one per minute.

{% hint style="info" %}
Make sure to replace **YOUR\_DOMAIN** and **YOUR\_SECRET** with the information you've set in the in-game configuration file.
{% endhint %}

### Per Minute

Under **-- Common Settings --**, select **Once Per Minute (\* \* \* \* \*)**

Command:

{% code overflow="wrap" %}

```php
/usr/bin/wget -O /dev/null "https://YOUR_DOMAIN/actions/cron-playtime.php?secret=YOUR_SECRET" > /dev/null 2>&1
```

{% endcode %}

Then click **Add New Cron Job**

### Per Hour

Under **-- Common Settings --**, select **Once Per Hour (0 \* \* \* \*)**

Command:

{% code overflow="wrap" %}

```php
/usr/bin/wget -O /dev/null "https://YOUR_DOMAIN/actions/cron-hourly.php?secret=YOUR_SECRET" > /dev/null 2>&1
```

{% endcode %}

Then click **Add New Cron Job**
