How to install DirectAdmin

From Ubiquity Server Wiki

Jump to: navigation, search

DirectAdmin can be installed on either a VPS or a Dedicated Server, as long as no other control panel's are installed. A valid license must be purchased and activated prior to install. The licenses are $5 per month for VPS and $15 per month for dedicated servers. You must be logged in as root.

To install DirectAdmin, you need some packages before hand. Run:

   yum update -y
   yum install gcc-c++ gcc automake -y

At this point, it’s time to make sure nothing is preinstalled on your server, and if it is, it’s time to remove it.

Run:

   yum remove httpd* php* mysql* -y 

Your server is now prepared to install DirectAdmin, so let’s begin.

Run:

   wget http://directadmin.com/setup.sh
   chmod +x setup.sh
   sh setup.sh 

DirectAdmin’s setup has a few more things you need to fill in before it actually begins the installation process. When you run the install, this is a sample of what you will see:

   Please enter your Client ID :
   Please enter your License ID :
   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) :
   Is this correct? (y,n) :
   Is eth0 your network adaptor with the license IP? (y,n) :
   Is xx.xx.xx.xx the IP in your license? (y,n) :
   DirectAdmin will now be installed on: Enterprise 5
   Is this correct? (must match license) (y,n) :
   You now have 2 options for your apache/php setup.
   1: customapache: older, more tested. Includes Apache 1.3, php 4 and frontpage.
   2: custombuild 1.1: newer, less tested. Includes any Apache version, php 4, 5, or both in cli and/or suphp. Frontpage not available with Apache 2.x.
   Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61
   Enter your choice (1 or 2): 

You need to enter the client ID and license ID here. The hostname is unimportant, you can set it to whatever you would like. If you are using Virtuozzo, you need to set your network adapter to venet0:0 or the appropriate device with the licensed IP address. We recommend option 1 for customapache. When you finish the interactive part, kick back and relax while it installs. Good luck with your installation!