Kies locatie en taal
  • Österreich German
  • Australia English
  • België Dutch
  • Canada English
  • Schweiz German
  • Deutschland German
  • Eesti English
  • Ελλάδα English
  • España Spanish
  • France French
  • Hrvatska English
  • Italia English
  • Latvija English
  • Lietuva English
  • Nederland Dutch
  • Norge Norwegian
  • Polska Polish
  • Portugal Portuguese
  • Slovensko English
  • Suomi Finnish
  • Sverige Swedish
  • United Kingdom English
  • United States English
  • American Samoa English
  • Andorra English
  • Anguilla English
  • Antarctica English
  • Bermuda English
  • British Indian Ocean Territory English
  • British Virgin Islands English
  • Cayman Islands English
  • Christmas Island English
  • Città del Vaticano English
  • Cocos (Keeling) Islands English
  • Falkland Islands English
  • French Southern Territories English
  • Gibraltar English
  • Guadeloupe French
  • Guam English
  • Guernsey English
  • Guyane française French
  • Heard & McDonald Islands English
  • Ireland English
  • Isle of Man English
  • Jersey English
  • Liechtenstein German
  • Luxembourg French
  • Malta English
  • Martinique French
  • Mayotte English
  • Monaco French
  • Montserrat English
  • New Zealand English
  • Norfolk Island English
  • Northern Mariana Islands English
  • Pitcairn Islands English
  • Puerto Rico Spanish
  • Réunion English
  • San Marino English
  • Slovenija English
  • St. Barthélemy English
  • St. Helena English
  • St. Martin English
  • St. Pierre & Miquelon English
  • Svalbard & Jan Mayen English
  • Turks & Caicos Islands English
  • U.S. Outlying Islands English
  • U.S. Virgin Islands English
  • Åland Islands English
  • Κύπρος English
  • Црна Гора English

Hoe stel ik een cron-taak in DirectAdmin in?

1 min lezen

A cron job runs a command or script automatically on a schedule. It is useful for tasks like sending reports, clearing caches, or triggering WordPress scheduled events reliably. Here is how to create one in DirectAdmin.

Voordat je begint #

  • Know the exact command or script path you want to run.
  • Decide how often it should run.

Step-by-step: create a cron job #

  1. Log in op DirectAdmin (meestal jouwdomein.com:2222).
  2. Ga naar Geavanceerde functies en klik op Cron Jobs.
  3. Set the schedule using the minute, hour, day, month, and weekday fields.
  4. Enter the command to run in the command field.
  5. Klik op Toevoegen.

Uitleg over de velden in het rooster #

  • Notulen: 0 to 59.
  • Uur: 0 to 23.
  • Day of month: 1 to 31.
  • Maand: 1 to 12.
  • Day of week: 0 to 6 (0 is Sunday).
  • An asterisk (*) means “every”.

Voorbeeld: 0 3 * * * runs a task every day at 3:00 AM.

Common WordPress example #

To run WordPress cron reliably, you can call wp-cron on a schedule, for example every 15 minutes, using a command your developer or our support team can provide for your setup.

Tips #

  • Plan zware taken niet te vaak in.
  • Send output to a log file so you can check results.
  • Test the command manually first if possible.

Problemen oplossen #

  • Taak wordt niet uitgevoerd: Controleer het pad naar het commando en het schema nogmaals.
  • Te veel e-mails: redirect output to a log instead of email.
  • Permission errors: confirm the script is executable.

Hulp nodig? #

Cron syntax can be confusing. Contact our support team on live chat and we will help you set the correct schedule.

Wat zijn je gevoelens