CentOS上安装DirectAdmin

[不指定 2010/05/05 08:49 | by Totti ]
| |
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://blog.dengruo.com/200909/572
个人 | 评论(0) | 引用(0) | 阅读(2025)
发表评论
昵称

网址

电邮
打开HTML 打开UBB 表情 打开表情 隐藏 记住我 [注册]