Knowledge Base » Hosting Licenses

How do I automate the DirectAdmin license update process?

Art. Nr: 903  |  Rating: 4/5 from 801 votes  |  Last Updated: Mon, Mar 5, 2012
starstarstarstarstar

The process for updating your DirectAdmin license is pretty straightforward. In the step-by-step guides outlined below, we’ve provided you with several ways to update your DirectAdmin license. Please see below for more details.

Updating your license manually:

In case your DirectAdmin license is currently offline, please follow the step-by-step directions outlined below, on how to get your DirectAdmin license reactivated:

  • Login to your DirectAdmin VPS/Dedicated Server via SSH
  • Type the following command within SSH:

    # /etc/init.d/directadmin stop

  • Next, please run the following command:

    # /usr/local/directadmin/scripts/getLicense.sh 24580 <LICENSE-ID>

  • Then, the key will be downloaded from DirectAdmin’s site
  • Upon completion, run the following command:

    # /etc/init.d/directadmin start

Once you’ve completed the above-mentioned steps, your DirectAdmin license should be fully validated and ready to be used once again!

Automating your license updates:

Within this section, we’ll provide you with a way to automate your license updates, so you no longer have to do the above-mentioned steps, please see below:

  • Login to your DirectAdmin VPS/Dedicated Server via SSH
  • Edit the following cron job with your favorite editor:

    # /etc/cron.d/directadmin_cron

  • At the bottom of the aforementioned file, add the following line:

    0 6 15 * * root /usr/local/directadmin/scripts/getLicense.sh 24580 <LICENSE-ID>

  • Once completed, write and save the changes to the cron file
  • Next, simply run the following command to restart the cron demon:

    # /etc/init.d/crond restart

Should you have any further questions pertaining to your DirectAdmin license, please feel free to get in contact with our hosting licenses team for further assistance.

Post your Comments

Popular Tutorials

RSS Feed
Please see below, some related knowledge base tutorials, which are related to your search query. Please feel free to contact us if you are not able to find what you are looking for.