Hamz Product Support
Web HostingDiscordMain Store
  • Getting Started
  • Common Problems
  • Hamz CAD
    • 🎥 Video Tutorial
    • Installation
    • Configuration
  • HAMZ COMMUNITY SITE
    • 🎥 Video Tutorial
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz Staff Elite Panel
    • Web Installation
    • Web Configuration
    • Web Cronjob
    • In-Game Requirements
    • In-Game Configuration - Report Menu
    • In-Game Configuration - Admin Menu
    • Common Issues
    • [OPTIONAL] Apache Headers
    • FAQ
  • Hamz Panel
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
      • Cron Job
    • Configuration
    • FiveM Resource
  • Hamz Department Panel
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz Forms
    • Requirements
    • Installation
      • Database and SQL
      • SubDomain
      • Uploading Files
      • SSL Certification
    • Configuration
  • Hamz CAD (In-game)
    • Requirements
    • FAQ
    • Installation
      • 1. API File
      • 2. SQL File
      • 3. FiveM Resource (Final Step)
        • More info on the Config.lua
    • [OPTIONAL] Apache Headers
Powered by GitBook
On this page
  • Setting up Cronjob
  • Per Minute
  • Per Hour

Was this helpful?

  1. Hamz Staff Elite Panel

Web Cronjob

This documentation is written using SimplisticNode's cPanel web hosting.

Last updated 1 year ago

Was this helpful?

Setting up Cronjob

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

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

Make sure to replace YOUR_DOMAIN and YOUR_SECRET with the information you've set in the in-game configuration file.

Per Minute

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

Command:

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

Then click Add New Cron Job

Per Hour

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

Command:

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

Then click Add New Cron Job