How to install DirectAdmin


SSH into the System as root and run the following commands:

  • yum update -y 
  • yum upgrade -y
  • yum install -y wget perl screen
  • wget -N http://http://www.directadmin.com/setup.sh
  • bash setup.sh

During the install, you will be asked several questions. Here is an example session using a default configuration:

Please enter your Client ID : 6714
Please enter your License ID : Your DirectAdmin license key you got from Support. 
Please enter your hostname (server.domain.com)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don't use domain.com. Use server.domain.com instead.
Do not enter http:// or www

Enter your hostname (FQDN) : test.domain.com
Client ID:  6714
License ID: Your DirectAdmin license key you got from Support.
Hostname: test.domain.com
Is this correct? (y,n) : y
Is eth0 your network adaptor with the license IP (YOUR.VPS.IP.HERE)? (y,n) : y
Is YOUR.VPS.IP.HERE the IP in your license? (y,n) : y

DirectAdmin will now be installed on: Enterprise 5.8
Is this correct? (must match license) (y,n) : y

You now have 4 options for your apache/php setup.

1: customapache:         end-of-life software.  Apache 1.3, php 4, frontpage.  Do not use.  No support.
2: custombuild 1.1:      older software.  Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2
3: custombuild 1.2:      * Recommended. simlar to 1.1, newer default versions. Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3
4: custombuild 2.0 BETA: Not yet recommended, still in testing. Apache 2.4, mod_ruid2, php 5.4. Can be set to use php-FPM. Experts only.

      Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61

Enter your choice (1, 2, 3 or 4): 3
You have chosen custombuild 1.2.
--2013-01-15 15:36:14--  http://files.directadmin.com/services/custombuild/1.2/custombuild/build
Resolving files.directadmin.com...,
Connecting to files.directadmin.com||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 306514 (299K) [text/plain]
Saving to: `/usr/local/directadmin/custombuild/build'

100%[======================================>] 306,514     1.29M/s   in 0.2s

2013-01-15 15:36:14 (1.29 MB/s) - `/usr/local/directadmin/custombuild/build' saved [306514/306514]

Would you like the default settings of apache 2.2 and php 5.3 cli? (y/n): y

You should now be able to answer the rest of the questions with ease.