How to install directadmin on VPS

  
 

Take centos5 as an example.

1.Pre-preparation

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-dev gd

Second, official installation:

wget http://directadmin.com/setup.sh

chmod +x setup.sh

./setup.sh < Br>

Enter the relevant authorization information after running: Please enter your Client ID : Please enter your License ID : Please enter your hostname \\ (server.domain.com\\) and then go all the way down

Install After you finish, you may need to do one more step.

Execute the ifconfig command to view the device bound to the ip corresponding to vps, such as venet0:0

Use vi to open the DirectAdmin configuration file /usr/local/directadmin/conf/directadmin.conf

vi /usr/local/directadmin/conf/directadmin.conf

Find the characters such as <quo;ethernet_dev=***“ and then change the characters after the equal sign to just us View the venet0:0, then save and exit vi, then restart the VPS.

At this time, enter http://ip:2222 in the browser. If you can see a login box, it means that the DirectAdmin installation is successful.

Three, may encounter problems

1. If your vps network device name is just eth0, then you do not need to manually modify the directadmin.conf file later

2. Default password

This installation is said to have a prompt at the end. I didn't see it. I can view the /usr/local/directadmin/scripts/setup.txt file, or manually change it to ssh. User's password can be

Run passwd admin

3. If named does not start properly, try

# rpm -e bind bind-chroot# yum update bind\\*

Copyright © Windows knowledge All Rights Reserved