DirectAdmin 破解版安装教程

准备工作

首先当然是下载安装文件上传到服务器上啦~~  下载地址:传送门
然后运行下面命令。升级系统、安装依赖包、卸载mysql、php、apache,升级系统是为了以免有什么BUG造成安装失败。

yum -y update && yum -y remove php* mysql* apache* && yum -y install dos2unix patch screen unzip lftp tar quota wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed libstdc++.so.6 libnspr4.so libssl.so.6

CentOS 5系统需要注意执行以下操作,不然PHP会编译失败。
32位系统执行以下命令:

ln -s /usr/lib/libssl.so /usr/lib/libssl.so.10 ln -s /usr/lib/libcrypto.so /usr/lib/libcrypto.so.10

64位系统执行以下命令:

ln -s /usr/lib64/libssl.so /usr/lib64/libssl.so.10 ln -s /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.10

开始安装

解压缩上传的压缩文件:

unzip DirectAdmin.zip

创建一个文件夹来放置DirectAdmin,执行以下命令:

mkdir -p /usr/local/directadmin

将update2.tar.gz压缩包内的文件解压到刚创建的目录:

tar xvf update2.tar.gz -C /usr/local/directadmin

给setup赋予权限:

chmod -R 755 setup.sh

开始安装,一开始会让等待10秒。

./setup.sh
##这里等待10秒,Ctrl+C 可以取消安装 *** DirectAdmin already exists *** Press Ctrl-C within the next 10 seconds to cancel the install Else, wait, and the install will continue, but will destroy existing data *** Unable to determine which services pack to use *** Please type in the file name closest to your system from the following list: Redhat: services72.tar.gz
  services73.tar.gz
  services80.tar.gz
  services90.tar.gz Fedora: services_fedora1.tar.gz
  services_fedora2.tar.gz
  services_fedora3.tar.gz
  services_fedora4.tar.gz
  services_fedora5.tar.gz
  services_fedora6.tar.gz
  services_fedora7.tar.gz
  services_fedora9.tar.gz Enterprise/Whitebox/CentOS: ##这里以Centos为例,其他系统也是这样子 services_es30.tar.gz ## Centos3.0 32位 services_es40.tar.gz ## Centos4.0 32位 services_es50.tar.gz ## Centos5.0 32位 services_es60.tar.gz ## Centos6.0 32位 services_es41_64.tar.gz ## Centos4.1 64位 services_es50_64.tar.gz ## Centos5.0 64位 services_es60_64.tar.gz ## Centos6.0 64位 FreeBSD: services_freebsd48.tar.gz
  services_freebsd49.tar.gz
  services_freebsd51.tar.gz
  services_freebsd60.tar.gz
  services_freebsd70.tar.gz
  services_freebsd71_64.tar.gz
  services_freebsd80_64.tar.gz
  services_freebsd90_64.tar.gz Debian: services_debian30.tar.gz
  services_debian31.tar.gz
  services_debian50.tar.gz
  services_debian50_64.tar.gz
  services_debian60.tar.gz
  services_debian60_64.tar.gz Type the filename: services_es60.tar.gz Value entered: services_es60.tar.gz Is this correct? (y,n) : y ***************************************************** * * Have you run the pre-install commands? CTRL-C if not. * http://help.directadmin.com/item.php?id=354 * ***************************************************** Please enter your Client ID : 123456789 #随便填写比如123456789 Please enter your License ID : 123456789 #随便填写比如123456789 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) : 123456789.com #面板要绑定的域名,如果没有随便输入要需要注意格式xxx.xxx
Client ID: 123456789
License ID: 123456789
Hostname: 123456789.com
Is this correct? (y,n) : y #是否确认这些信息
The following ethernet devices/IPs were found. Please enter the name of the device you wish to use: venet0 127.0.0.1 venet0:0 192.243.117.101 Enter the device name: venet0:0 #如果服务器上有多张网卡,程序不能确定哪个IP才是服务器的IP,那么需要你选择,根据提示操作即可,我这里公网192.243.117.101在venet0:0网卡上,就直接输入venet0:0回车即可。 Is 192.243.117.101 the IP in your license? (y,n) :y #由于DirectAdmin的授权ID是绑定IP的。这里在确认授权ID的IP。输入Y确认即可。 DirectAdmin will now be installed on: Enterprise 6.5 #即将安装DirectAdmin 6.5 版本 Is this correct? (must match license) (y,n) : y #是否确认安装
You now have 4 options for your apache/php setup. 1: customapache: end-of-life software. Apache 1.3, php 4, frontpage. Do not use. No support. 2: custombuild 1.1: older software. Apache 2.x, php 4, 5, or both in cli and/or suphp. Defaults to php 5.2 3: custombuild 1.2: * Recommended. simlar to 1.1, newer default versions. Apache 2.x, php 5, 6, or both in cli and/or suphp. Defaults to php 5.3 4: custombuild 2.0 ALPHA: Not yet recommended, still in testing. Apache 2.4, mod_ruid2, php 5.4. Can be set to use php-FPM. Experts only. Requires pre-release binaries. Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61 Enter your choice (1, 2, 3 or 4): 3 ##他提供了4个选项给选择 ##第一个忽略,太老了这些组件; ##第二个,比较旧的版本,Apache2.*,PHP4或者5,默认是PHP5.6,可选CGI或者CLI; ##第三个,是目前推荐的,软件版本都比较新的Apache2.*,PHP加入了5和6的版本选择,默认是PHP5.3,可选CGL或者CLI模式; ##第四项,还在测试阶段,存在稳定以及兼容性问题。
Would you like the default settings of apache 2.2 and php 5.3 cli? (y/n): n #这里询问是否使用默认的apache2.2和php5.3 cli 如果没有特别要求的话可以直接输入y开始安装。这里为了演示我输入n也就是自定义安装版本。
Would you like to backup the current options.conf? (yes/no): yes      #是否备份options.conf
Would you like to have PHP5 as CLI or CGI? (cli/cgi): cgi     #php的运行模式
Would you like to have ionCube? (yes/no): yes       #是否安装ionCube
Would you like to have Zend Optimizer? (yes/no): yes     #是否安装Zend Optimizer
Would you like to have an ability to update/instal MySQL using CustomBuild? (yes/no): yes    #是否安装mysql Which version of MySQL you would like to have? (5.0/5.1/5.5/5.6): Please enter '5.0', '5.1', '5.5' or '5.6': 5.6 #选择mysql版本,建议选择高版本。不是因为性能问题。而是新版本修复了旧版本的一些BUG。
Which version of Apache you would like to have? (1.3/2.0/2.2): 2.2 #选择apache的版本
Would you like to prevent htaccess files from using Options FollowSymLinks? More secure, but may break scripts. (yes/no): no #是否禁用htaccess文件,这个文件一般会在伪静态中用到。不建议禁用。
Would you like to have an ability to update/instal Exim using CustomBuild? (yes/no): no #你想安装Exim吗? Exim是一个MTA,负责邮件的路由,转发和投递。我不需要我选no
Would you like to have an ability to install Dovecot? (yes/no): no #你想安装Dovecot吗? Dovecot是Linux/UNIX类系统平台上的开源IMAP和POP3服务器。我不需要我选no
Would you like to have an ability to install/update phpMyAdmin using CustomBuild? (yes/no): yes #你想自定义安装phpMyAdmin吗?这个必须滴输入yes安装。
Would you like to have an ability to install/update SquirrelMail webmail using CustomBuild? (yes/no): no #你想自定义安装SquirreMail webmail 吗?SquirreMail webmail是一个采用网页为平台邮件(邮箱)管理器。
Would you like to have an ability to install/update RoundCube webmail using CustomBuild? (yes/no): no #你想自定义安装RoundCube webmail吗? 一个采用网页为平台邮件(邮箱)管理器。
Would you like to have an ability to install/update UebiMiau webmail using CustomBuild? (yes/no): no #你想自定义安装UebiMiauwebmail吗? 一个采用网页为平台邮件(邮箱)管理器。
Would you like to have an ability to install/update Atmail Open webmail using CustomBuild? (yes/no): no #你想自定义安装或升级atmail Open webmail吗? 一个采用网页为平台邮件(邮箱)管理器。
Would you like to search for the fastest download mirror? (y/n): y #你想搜索最快的下载节点吗?这个必须滴~ 只有好处没有坏处。加快下载速度。

坐等安装完成

上面完成最后一步之后,就没有什么可以做的了。看着满屏上的代码刷刷刷的。感觉到莫名的高端。这时候就只需要坐等自动安装完成。
出现如下信息既代表安装成功

diretcadmin-success

默认为英文,需要汉化的话。可以访问我的汉化教程:传送门
© 版权声明
THE END
請多多支持
点赞0
评论 抢沙发

    暂无评论内容