Contact
Site: US UK AU |

How to set up cron jobs (non-Cloud)

How to set up cron jobs (non-Cloud)

Overview
This article shows how Nexcess clients with non-Cloud accounts can configure a cron job from SiteWorx.

What you need

  • Knowledge of the full server filesystem path to the file that you want to change should be ready to run; for example, /home/domain/domainname.com/html/file.ext. If you do not know the path, contact the Nexcess Support Team.
  • A non-Cloud account. If you are a Nexcess Cloud client, instead see How to schedule cron jobs in Nexcess Cloud.

Procedure

Attention: Do not modify the cron variables ShellPath, and Mailto.

As an example, this article shows how to create a cron job for Magento to perform a reindex once per day. The procedure for creating cron jobs will vary according to your preferred frequency and the script.

  1. Log in to your SiteWorx account.
  2. From the main menu, select Hosting Features > Cron Jobs


  3. The System CRON Management page, in the Cron Editor section, click Simple Interface.


  4. In the Add Cronjob panel, designate your preferred time for the cron job to run. For this example, set the Minute to 0, and the Hour to 03:00. Note the times in the hour list are reflective of a 24-hour clock.


  5. In the Script field, designate both the path and the script. For the example, enter the following, but replace angle brackets (<>) and everything between them with your domain name.

    php /home/user/<domain.com>/html/shell/indexer.php --reindexall

  6. Click Add.
  7. After clicking Add, the page redirects to the System CRON Management page, where your new cron job should now appear.


  8. If you need to modify your cron job, click the Edit link under the Action column. For more information about editing or deleting cron jobs, refer to How to manage cron jobs.

 

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal. 

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to schedule cron jobs in Nexcess Cloud
Added on Fri, Jul 6, 2018
How to manage cron jobs
Added on Mon, Aug 5, 2013
How to update Cron variables
Added on Tue, Aug 6, 2013
How to find and remove hanging Magento cron jobs with SSH
Added on Thu, Oct 30, 2014