全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 14412|回复: 14
打印 上一主题 下一主题

[经验] DirectAdmin 神插件之CustomBuild 2.0 UI

[复制链接]
跳转到指定楼层
1#
发表于 2014-8-19 09:33:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 alect 于 2014-8-19 10:37 编辑

嗯,继前几天折腾CustomBuild 2.0后
(详见DirectAdmin官方支持nginx前端了! http://www.91ai.net/thread-251827-1-1.html ),
发现CB2.0很好用,唯一的缺点可能就是对于某些人来说使用起来相当不太方便。
这几天天天逛着directadmin的官方论坛,看到这样的一个插件,使用了几天相当不错,发出来给大家看看。
插件原帖地址:http://forum.directadmin.com/showthread.php?t=44743
插件建议要求版本DirectAdmin 1.45.4 以及以上。

CB2.0都有什么内容? (不翻译了,大家能看懂)
Major change: nginx webserver support
Major change: nginx+apache combination support (nginx as a reverse proxy)
Major change: LiteSpeed webserver support (warning: commercial product, so please upload your license key to configure/litespeed before installation) with lsphp support as a PHP mode using LiteSpeed SAPI.
Major change: pigeonhole support
Major change: php-fastcgi support (using mod_fcgid)
Major change: PHP-FPM support was added, new paths to PHP binaries/configs (/usr/local/php53(54))
Major change: mod_ruid2 support was added (you can use it together with suPHP)
Major change: new way of PHP exension installations (using php.conf.d, not the main php.ini), ability to include many new extensions to the future versions of CB
Major change: mysqlnd (MySQL native driver) is used for MySQL, pdo-MySQL and MySQLi in php configuration.
Added htscanner support.
Added suhosin support.
Added zend opcache support.
Added custom_versions.txt support.
Added pigz support (./build pigz).
Added "./build version" to show the CustomBuild version.
Added "./build mysql_backup" to do MySQL backup only (without installation).
Added libxml2, libxslt and clamav files to /configure/ directory, so they are not hardcoded anymore, and there is ability to customize them.
Added automatic upload scans with ClamAV for ProFTPd, Pure-FTPd and PHP (using suhosin).
Dropped mod_perl support.
Added --with-xsl, --enable-soap to PHP configuration files
php1_mode/php2_mode + php1_release/php2_release options.conf settings. php1_release is the main version of PHP, php2 is the additional one.
Major change: if php1/php2_mode is set to suphp, fastcgi or php-fpm, event Apache MPM is used (when no mod_php is selected).
Major change: pureftpd is now the default FTP service. New option: ftpd=pureftpd/proftpd. (replaced old pureftpd=yes/no, proftpd=yes/no)
Added PHP 5.5 support
Added PHP 5.6 support
Using PHP 5.5 as mod_php + mod_ruid2 by default (except FreeBSD systems where PHP 5.5 is installed in suPHP mode without mod_ruid2)
Dropped PHP 4.4, 5.2 support
Dropped Apache 1.3, 2.0, 2.2 support
Dropped MySQL 4.1 support
Dropped UebiMiau and Atmail Open webmail support.
Ability to install PHP 5.3, 5.4 or 5.5 together (2 versions of any combination)
Automatic exim.conf changes after installation/update of ClamAV/SpamAssassin (it uses includes of /etc/exim.spamassassin.conf and /etc/exim.clamav.conf in /etc/exim.conf.



如何升级到CustomBuild 2.0?
1.最好是先执行一些预安装命令,详见官方说明文档:http://help.directadmin.com/item.php?id=354
2.删除原先的版本,升级到2.0
  1. cd /usr/local/directadmin
  2. mv custombuild custombuild_1.x
  3. wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
  4. tar xvzf custombuild.tar.gz
  5. cd custombuild
  6. ./build update_da
复制代码

3.打开 /usr/local/directadmin/custombuild/option.conf  ,检查默认选项,设置为你想要的相应软件版本,
设置完后,SSH里面执行
  1. ./build options
复制代码
,输入类似以下设置结果,看看是不是跟你预想的一样。

  1. Apache: 2.4.3
  2. Dovecot: 2.1.10
  3. MySQL: 5.5.27
  4. PHP (default): 5.4.7 as mod_php
  5. Run "clean" every time: yes
复制代码


确认没错,然后执行。

  1. ./build apache
  2. ./build php n
  3. ./build rewrite_confs
复制代码

当然你也可以全部重建,
  1. ./build all d
复制代码

注意事项:
如果选择安装nginx,php模式选择php-fpm,
不可同时将php1_release和php2_release设置为相同版本。
如果设置了php2_release,不可同时设置php1_mode和php2_mode为mod_php
不可把mod_ruid2和php-fpm或者php-fastcgi同时使用。



到这里只是完成安装CustomBuild 2.0,为了后续操作方便,我们今天要重点介绍插件CustomBuild 2.0 UI,图形化操作界面。
该插件由smtalk 一个活跃在DA官方论坛的技术人员开发,在论坛里面有问必答。(说真的,国外的技术论坛跟国内的差距就是很大啊!)
插件发布页面:CustomBuild 2.0 UI  http://forum.directadmin.com/showthread.php?t=48989

大家可以直接进入DA后台插件目录,直接通过连接安装,或者是下载到本地然后上传到DA插件目录里面。
插件下载地址:http://www.custombuild.eu/plugin/custombuild.tar.gz

如果你执行了我以上说升级CB2.0以及build Apache以及php两个软件,那你安装这个插件后,应该可以看到这个界面。
01.png (101.31 KB, 下载次数: 9)

点击链接后,显示的是这样

02.png (88.73 KB, 下载次数: 3)

在这个界面里面可以完成所有需要通过命令行才能执行的custombuild的相关操作,比如升级版本,选择对应版本等等操作,功能十分强大。
具体还要大家自己去尝试。
03.png (48.88 KB, 下载次数: 3)
04.png (31.82 KB, 下载次数: 3)


执行命令是显示的类似如下图效果,
05.png (37.02 KB, 下载次数: 3)

这下妈妈不用担心我重建系统时SSH卡掉线了!。。

评分

参与人数 1威望 +25 收起 理由
欧阳逍遥 + 25 很给力!

查看全部评分

2#
发表于 2014-8-19 09:38:46 | 只看该作者
好帖学习了咩~
3#
发表于 2014-8-19 10:07:35 | 只看该作者
前排支持                  
4#
发表于 2014-8-19 10:09:51 | 只看该作者
da一下子高了几级。
5#
发表于 2014-8-19 10:12:54 | 只看该作者
很不错,  赞一个...
6#
发表于 2014-8-19 10:57:08 来自手机 | 只看该作者
da突然高级了许多 mark
7#
发表于 2014-8-19 11:08:56 | 只看该作者
提示: 该帖被管理员或版主屏蔽
8#
发表于 2014-8-19 11:18:52 | 只看该作者
感谢楼主分享。
不过,,,,ssh 怎么会卡掉。。。。。。。。你执行个screen 不就可以了。。
9#
 楼主| 发表于 2014-8-19 11:33:20 | 只看该作者
yrdesign 发表于 2014-8-19 11:18
感谢楼主分享。
不过,,,,ssh 怎么会卡掉。。。。。。。。你执行个screen 不就可以了。。 ...

其实是用网页版的更方便,
10#
发表于 2014-8-19 11:50:50 | 只看该作者
继续等cb2.0正式版。估计是等不到了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-29 21:50 , Processed in 0.070061 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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