VPS侦探论坛

 找回密码
 注册
查看: 9074|回复: 1

CentOS上安装DirectAdmin

[复制链接]
发表于 2010-8-14 09:55:59 | 显示全部楼层 |阅读模式

DirectAdmin是一款付费的虚拟主机管理软件,个人认为是除Cpanel外比较易用的一款。vps是通过虚拟技术将一个独立服务器分割成N份进行出售,介于虚拟主机与独立服务器之间。数据库,FTP这些信息相对于虚拟主机而言是完全独立的。最主要的是拥有相对独立的内存和CPU这些指标,不会被别人拖累。一般xen下是不能超售的,而openVZ则是可以over selling.

引言:几天前,买一个vps,附带了一个directadmin的序列号。在安装过程中深感中文资料的稀缺,在征得老外同意后将,将http://sysadminblog.net/?p=162给小翻成中文,另外加了很多自己的料……

热身:

1:安装相关的组件,或者你可以选择面对装了一半之后跳出来这样一个提示:
cd /usr/local/directadmin/custombuild
./build all d


安装CentOS的相关组件的命令如下:
yum update -y
yum install gcc-c++ gcc automake -y
yum install make
yum  install flex

2:CentOS是附带了httpd的unix版本,但是因为directadmin的安装需要干净的系统,所以在装之前要反安装httpd,php,mysql这些web组件。
yum remove httpd* php* mysql* -y

安装:

做完了热身运动,现在可以放心地参照官网的步骤进行DirectAdmin的安装了。

运行命令:
wget http://directadmin.com/setup.sh

获取安装文件
chmod +x setup.sh
更改文件权限+x是一种方式,也可以用控制面板里面用的比较多的755。
./setup.sh

运行安装文件,然后在下面填入相关的信息。其中hostname最好和vps里面的名字一样,我开始就用了vps.810081.com和host.810081.com两个名字,结果收到了提示邮件。

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 \(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):

针对vps的特殊设置:

经过这些步骤,directAdmin的安装已经完成了,对还差最后一个步骤。在vps上面还要将Ip,硬盘这些进行一个定位,用vi进入/usr/local/directadmin/conf/directadmin.conf这个文件,将其中的ethernet_dev的值改成
ethernet_dev=venet0:0
可以通过/sbin/ifconfig这个命令来查看自己的硬盘。

善后:

如果忘了DirectAdmin的密码用
locate mysql.ini
来定位并翻看这个文件里面存在着DirectAdmin的密码,据说另外一种方式也可以,不过我试了没有成功了,还是照单列出来了,有兴趣的童鞋自己去试
cd /usr/local/directadmin
./directadmin i
./directadmin p

参照资料:http://sysadminblog.net/?p=162
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-5-8 18:54:53 | 显示全部楼层


军哥您好,请问DA装好后,这个PHP版本怎么升级呢?我装的最新的DA版本,但PHP版本为5.2.17,想升级到5.2.5以上
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-10-18 13:08 , Processed in 0.025538 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表