Frequently Asked Questions

FAQ / DirectAdmin

How to create cron job using DirectAdmin?

To create a cron job using the DirectAdmin panel, you can follow these steps:

Step 1: Log in to your DirectAdmin panel using your username and password.

Step 2: Once logged in, navigate to the Advanced Features section. The location may vary depending on your DirectAdmin panel version and theme. Look for options like Cron Jobs, Advanced Tools, or Advanced Settings.

Step 3: Click on the Cron Jobs or similar option. This will take you to the Cron Jobs management page.

Step 4: On the Cron Jobs page, you will see a list of existing cron jobs if any. To create a new one, click on the Create a New Cron Job button or a similar option.

Step 5: In the cron job creation form, you'll need to fill in the following details:

Command: Enter the command you want the cron job to execute. This can be a script file, a PHP file, or any other executable command.

Minute, Hour, Day, Month, and Weekday: Specify the timing for the cron job to run. You can use the dropdown menus or manually enter the values. Use asterisks (*) to represent any value.

User: Select the user account under which the cron job should run. Usually, you'll select your own account unless you have specific requirements.

Email: Enter the email address where you want to receive the cron job's output or error messages. This is optional but can be useful for troubleshooting.

Step 6: Once you have filled in the details, click on the Add or Create button to save the cron job.

Step 7: The DirectAdmin panel should confirm the successful creation of the cron job and display it in the list of existing cron jobs.

That's it! You have now created a cron job using the DirectAdmin panel. The cron job will run based on the specified timing and execute the command you provided. Make sure to test and verify the cron job to ensure it functions as expected.