commit ea64051 code中文原文

Installing the DirectAdmin Panel on a CentOS VPS

Author
Yujia Lin
Date
Reading time
3 min read

Translated from Chinese by Claude. Read the original

I finally bought a VPS, and only got it set up today… I bought a license for the DirectAdmin panel and installed it. I spent two hours wrestling with it before it finally worked, and then the Chinese localization ran into problems. Thankfully the expert Chuanzhang fixed it for me~~ hehe~~ Now let me explain how to install the DirectAdmin panel on CentOS 5.5. First you need a clean CentOS system. I chose

CentOS

Step 1: install the CentOS packages you need. First run

yum update –y

Then run

yum -y  install gcc gcc-c++ flex make perl quota automaker

PS: Depending on the system, some VPSes are missing a lot of packages, so install whatever the prompts tell you to. Step 2: CentOS comes with the Unix version of httpd, but DirectAdmin needs a clean system to install, so before installing you have to uninstall web components like httpd, php and mysql

yum remove httpd* php* mysql* -y

Step 3: the actual installation. Run this command to get the install script

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

Make the script executable

chmod +x setup.sh

Run the script

./setup.sh

Once it’s running it asks you for your license details and so on, for example: Please enter your Client ID : Please enter your License ID : Please enter your hostname (server.domain.com) as well as the licensed IP address and so on! When it got to “Enter your choice (1 or 2):” I chose 2. After that it should be just typing y and pressing Enter. There’s a step mentioned online here that I never ran into, so I’ll skip it…… /* On a dedicated server you’re done at this point, but on a VPS the panel won’t open yet. There’s one more step: configure the network device. Run the ifconfig command to see your VPS’s IP address. The device that IP address is bound to is what we need to note down, for example venet0:0 (OpenVZ VPSes need this change, Xen doesn’t). The IP device I found during my install was also venet0:0, so it’s probably the same for most VPSes! Open the DirectAdmin config file /usr/local/directadmin/conf/directadmin.conf with vi

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

Find something like ethernet_dev=***, change the value after the equals sign to the venet0:0 we just looked up, then save and exit vi. */ Then reboot Linux so the changes take effect. After the reboot, enter http://ip:2222 in your browser. If you see a login box, DirectAdmin has been installed successfully. (Make sure you reboot! Unlucky me didn’t, and so the control panel wouldn’t open.) Next up is the Chinese localization for the DirectAdmin panel. First download a tool, fzftp.rar , and use it to connect to the VPS. Then download the language pack lang.zip and copy the files in the language pack over the ones in

1
/usr/local/directadmin/data/skins/enhanced/lang

and that’s it. Edit user.conf

1
vi /usr/local/directadmin/data/users/admin/user.conf

and that’s it. All done~ Ta-da…… the brand-new DirectAdmin panel appears before your eyes!

DirectAdmin

One last plug: I’m still sharing this VPS with others. I’ll post the specific resource plans in a few days. PS: Could everyone please ping godvps.net to test the speed~ and let me know how it is. My little blog will move to the VPS in a few days, so please bear with me

Esc

Keyboard shortcuts

Ctrl K /
Search and commands
j k
Next or previous post in a list
Enter
Open the selected post
h l
Older or newer post (on a post)
g h
Go to the log
g a
Go to the archive
g t
Go to tags
g s
Go to stats
t
Switch light or dark theme
r
Random post
?
Show this help