DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

A simple script to update Directadmin from beta/stable channel per your needs

| 11:34:50 03.10.2017

We've prepared a simple script which makes updating Directadmin version from beta / stable channel easier. Upload it to your server and use it per your needs.

Stable vs Beta?

The "stable" version of DirectAdmin differs from "beta" in a number of included features, which have been added into the control panel since the last "stable" release. It's not that "beta" is less stable or less secure. It's only about features newly added. DirectAdmin developers might update "beta" version every day and even several times in a day.

1. Install it:

cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod 755 updateda.sh

2. Run to install a pre-release version:

./updateda.sh beta

3. Run to install a stable version:

./updateda.sh stable

The script will try and auto-detect UID and LID. If it fails then you will need to run the script with options --lid=1234 and --uid=567

./updateda.sh beta --lid=1234 --uid=567

or

./updateda.sh stable --lid=1234 --uid=567

where you will need to use

  • a real License ID instead of 1234
  • a real Client ID instead of 567

You can find License ID and Client ID on a page "Licensing/Updates" in Directadmin at admin level.


Save OS version in DirectAdmin conf

As of the version: 0.5-beta (Thu Jun 27 10:19:12 +07 2019) a new action save_os has been added. It will add os_override in directadmin.conf. Please note, a version of DirectAdmin v.1.57.2+ is required to support save_os action.

Use cases:

  • CentOS 7 server is running with a License of Directadmin for CentOS 6 which is given by a server provider
  • Debian 9 server is running with a License of Directadmin for Debian 8 which is given by a server provider

and so on.

In order to fix possible issues with MySQL/MariaDB packages you should install DirectAdmin compiled for CentOS 7. By default a version which matches a DirectAdmin license will be installed, i.e. CentOS 6.

Example of usage:

cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod 755 updateda.sh

List supported OS:

./updateda.sh list_os

CentOS 7 can be found in a line with ES_7.0_64 with a code c9.

So we install DirectAdmin stable compiled for CentOS 7.x

./updateda.sh stable --os=c9

Add os_override into directadmin.conf with the following command:

./updateda.sh save_os --os=c9

The os_override option will tell DirectAdmin to download/install a selected version of the panel, ignoring OS version written in a license.


Install DirectAdmin compiled for CentOS 7:

if a license is issued for another OS version

cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh -O updateda.sh
chmod 755 updateda.sh
./updateda.sh save_os --os=c9
./updateda.sh stable --os=c9


Install DirectAdmin compiled for Debian 9:

if a license is issued for another OS version

cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh -O updateda.sh
chmod 755 updateda.sh
./updateda.sh save_os --os=e9
./updateda.sh stable --os=e9

Good luck ;)

Related links:

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition