directadmin安装nginx

da-nginx

directamin面板,安装完毕后,默认是lamp环境,也就是linux+apache+mysql+php环境,有的网友喜欢用nginx,其实DA官方很早都出教程支持这个Nginx了。看官方教程的请看http://help.directadmin.com/item.php?id=556

DA安装nginx,需要安装CustomBuild 2.0这个版本的,不要安装1.x版本。老易今天测试选择的是安装选项4,也就是CustomBuild 2.0 Beta版本,是支持安装nginx的。当然如果你之前安装的是1.x版本,也是可以先升级到CustomBuild 2.0然后再编译安装Nginx【老易升级安装了一下,失败了】.

假如你安装的是1.x版本DA build,升级教程参考:

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

1、如何查询你安装的DA版本呢?

[root@li399-186 ~]# cd /usr/local/directadmin/custombuild
[root@li399-186 custombuild]# ./build version
2.0.0 (rev: 1528)/

2、编译安装Nginx

nginx-da3

cd /usr/local/directadmin/custombuild

./build set webserver nginx
./build set php1_mode php-fpm
./build update
./build all d
./build rewrite_confs

例如:

[root@li399-186 custombuild]# ./build set webserver nginx
Changed webserver option from apache to nginx
[root@li399-186 custombuild]# ./build set php1_mode php-fpm
Changed php1_mode option from php-fpm to php-fpm

3、进DA面板查看一下

nginx-da2

Leave a Reply

Your email address will not be published. Required fields are marked *