欢迎访问好IT,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站.

利用CustomBuild 2.0给DirectAdmin升级php版本升级php版本 增加php版本切换

教程 admin 8年前 (2016-07-24) 1150次浏览 0个评论 扫描二维码

嗯,继前几天折腾CustomBuild 2.0
(详见DirectAdmin官方支持nginx前端了! http://www.hostloc.com/thread-251827-1-1.html ),
发现CB2.0很好用,唯一的缺点可能就是对于某些人来说使用起来相当不太方便。
这几天天天逛着directadmin的官方论坛,看到这样的一个插件,使用了几天相当不错,发出来给大家看看。
插件原帖地址:http://forum..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
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_da
复制代码

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

Apache: 2.4.3
Dovecot: 2.1.10
MySQL: 5.5.27
PHP (default): 5.4.7 as mod_php
Run “clean” every time: yes
复制代码
确认没错,然后执行。

./build apache
./build php n
./build rewrite_confs
复制代码

当然你也可以全部重建,
./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


好IT, 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明利用CustomBuild 2.0给DirectAdmin升级php版本升级php版本 增加php版本切换
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

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

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