DirectAdmin 安装手册 For CentOS

DirectAdmin 安装手册 For CentOS

Installing DirectAdmin is also an extremely simple process to do.

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

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

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.


yum remove httpd* php* mysql* -y

***Please do not install services such as Apache, PHP, MySQL, Ftp, Sendmail, etc., as we will do this for you.  All we need is a CLEAN install of your operating system.***
We do not recommend installing DirectAdmin on an existing live production server.

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


chmod +x


DirectAdmin’s setup has a few more things you need to fill:

Please enter your Client ID :
Please enter your License ID :
Please enter your hostname \(\)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don’t use Use 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:

Enter your choice (1 or 2):

At the end
Special notice for VPS/VDS installs:
After the install, add:


for example, on many vps systems it will be:

other systems where the IP is not the base IP on the device, you’d need to simply set the correct number:

or other systems with the IP on a different device, it might be:

type: /sbin/ifconfig
to see which device your IP is in.
to /usr/local/directadmin/conf/directadmin.conf.

Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.


您的电子邮箱地址不会被公开。 必填项已用 * 标注