DirectAdmin is a paid virtual host management software, usually referred to as DA. DA is simpler in function than Cpanel, but takes up less memory, and more importantly, the price is cheaper. Generally, DA is suitable for self-use or shared rental. of.
Before installation, first make sure you have purchased a DirectAdmin license. After purchasing the license, there will be a Client ID and License ID. You also need to submit your VPS or server IP and system information on the DA official website or DA seller.
1. The commands to install CentOS related components are as follows:
yum update -y
yum install gcc-c++ gcc make automake wget flex -y
2. Installing DirectAdmin requires a clean system, so httpd, php, and MySQL must be uninstalled before installation.
yum remove httpd* php* mysql* -y
3. Download the DirectAdmin installation script file and execute the command:
wget http://directadmin.com/setup.sh
4. Add execution permissions to the DirectAdmin installation script file and execute the command:
chmod +x setup.sh
5. Execute the DirectAdmin installation script file:
./setup.sh
Run the DirectAdmin installation file and fill in the relevant information below. Among them, it is best to use a second-level domain name such as linode.vpser.net for hostname instead of a top-level domain name.
DirectAdmin's setup has a few more things you need to fill:
Please enter your Client ID: //Enter your Client ID
Please enter your License ID: //Enter your License ID
Please enter your hostname (server.domain.com) //Enter a hostname, such as: linode.vpser.net
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): //Prompt if the above is correct, please enter y if it is correct
Is eth0 your network adapter with the license IP? (y,n) : //Enter y
Is xx.xx.xx.xx the IP in your license? (y,n): //Confirm whether the IP is the IP registered on the license
DirectAdmin will now be installed on: EnterPRise 5
Is this correct? (must match license) (y,n) : //Enter y
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): //Generally choose 2, use php5
After these steps, the installation of DirectAdmin has been completed.
After the installation is complete, you will be prompted:
DirectAdmin username and password and DirectAdmin management background address, etc.
Generally, VPS based on OpenVZ needs to open the /usr/local/directadmin/conf/directadmin.conf file before use, and confirm that the value of ethernet_dev is changed to: venet0:0. The details are subject to ifconfig.
Execute: service directadmin restart Restart DirectAdmin and log in to the DirectAdmin background using http://IP:2222 .
Article source: VPS Detective
Original address: http://www.vpser.net/manage/centos-directadmin-install-guide.html