最新消息:

全民IDC系列之:安装DirectAdmin篇

DirectAdmin 疯子 2724浏览 0评论

上一篇介绍了怎么安装WHMCS,这一篇就介绍一下怎么安装“DirectAdmin”面板,DirectAdmin面板应该不用多介绍了,虽然没有cPanel强大,但是基本上的功能都能满足需求了。

为了避免版权纠纷,这次演示同样使用正版授权来安装,关于DirectAdmin正版的价格比cPanel便宜多了,多人团购的话永久只需要300元。

安装DirectAdmin:

准备工作:

我这边使用的是 Cent OS 6.4 32位的系统,其他系统未测试。

yum –y update  #升级

yum install -y wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl patch quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed  #安装必要的组件

yum install –y screen;screen –S directadmin #必须

1,下载DirectAdmin正版安装脚本并设置权限。

wget http://www.directadmin.com/setup.sh     #下载

chmod 755 setup.sh    #设置脚本权限

./setup.sh     #运行安装脚本

2,设置一下许可证和主机名,主机名最好不要使用需要用来建站的域名。

DirectAdmin Set Up

3,设置网卡和IP,如果没问题的话,输入y就可以了。

DirectAdmin Set Up 2

4,这边一共有四个选项,我是第三个,也就是推荐的,不贴图了,直接贴上文字。以下的的配置,是我个人使用的配置,你自己的话,可以看个人需求。

Enter your choice (1, 2, 3 or 4): 3

Would you like the default settings of apache 2.2 and php 5.3 cli? (y/n): n

Would you like to backup the current options.conf? (yes/no): yes

Would you like to have PHP5 or PHP6 as default? (5/6): 5

Would you like to have PHP5? (yes/no): yes

Would you like to have PHP5 as CLI or CGI? (cli/cgi): cgi

Would you like to have PHP6? (yes/no): no

Would you like to have ionCube? (yes/no): yes

Would you like to have Zend Optimizer? (yes/no): yes

Would you like to have an ability to update/instal MySQL using CustomBuild? (yes/no): yes

Which version of MySQL you would like to have? (5.0/5.1/5.5/5.6): 5.5

Which version of Apache you would like to have? (1.3/2.0/2.2): 2.2

Would you like to prevent htaccess files from using Options FollowSymLinks?

More secure, but may break scripts. (yes/no): yes

Would you like to have an ability to update/instal Exim using CustomBuild? (yes/no): yes

Would you like to have an ability to install Dovecot? (yes/no): yes

Would you like to have an ability to install/update phpMyAdmin using CustomBuild? (yes/no): yes

Would you like to have an ability to install/update SquirrelMail webmail using CustomBuild? (yes/no): no

Would you like to have an ability to install/update RoundCube webmail using CustomBuild? (yes/no): yes

Would you like to have an ability to install/update UebiMiau webmail using CustomBuild? (yes/no): no

Would you like to have an ability to install/update Atmail Open webmail using CustomBuild? (yes/no): no

Would you like to search for the fastest download mirror? (y/n): y

5,安装完成之后,在命令输入台可以看到后台的登录信息。

DirectAdmin Set Up 3

6,如果安装完成之后,把密码忘记了,只要输入以下一行命令就可以重新设置密码。

passwd admin

安装就这边了,这篇是临时写的,有些地方不是很清楚,也就这样了。

转载请注明:分享吧 » 全民IDC系列之:安装DirectAdmin篇

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址