How to install Nginx to DirectAdmin

Warning! this is a beta RC1 install so we give you no warranty for working, but we have it running on many servers as well

 
This is no Apache proxy but a real replacement !!!
 
 (we have used Debian 6 x64)
 
For clean installl
 
- Install DirectAdmin and chose Custumbuild 2.0 (option 4)
 
After install go to custumbuild/options.conf 
Change: from "apache" to "nginx"
change: php1_mode=php-fpm
 
Safe changes
rewrite the custumbuild: ./build all -y
 
Then set you`re DirectAdmin licenese to pre-release (log into directadmin.com and update you`re license.
 
Update you`re server DirectAdmin follow this:
cd /usr/local/directadmin
wget -O new.tar.gz http://files1.directadmin.com/9374832/packed_debian60_64.tar.gz
tar xvzf new.tar.gz
./directadmin p
./scripts/update.sh
killall -9 directadmin
./directadmin d
 
Last thing to do, update you`re configs into custumbuild: ./build rewrite_confs 
 
When you get error like: "502 Bad Gateway"  , then check you`re hostname it is not set correct!
When you get error like "503" then use the following cmd:  chown webapps:nginx /var/www
 
For update From Apache to NGINX
 
Installl DirectAdmin in options menu choose option 3 with Php 5.3
After install Directadmin you can Update custumbuild to version 2.0 (BETA)
 
Update DirectAdmin rules to Beta version:
 
Update you`re server DirectAdmin follow this:
cd /usr/local/directadmin
wget -O new.tar.gz http://files1.directadmin.com/9374832/packed_debian60_64.tar.gz
tar xvzf new.tar.gz
./directadmin p
./scripts/update.sh
killall -9 directadmin
./directadmin d
 
Then update Custumbuild to version 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
 
Then edit options.conf
Change: from "apache" to "nginx"
change: php1_mode=php-fpm
 
Safe changes
rewrite the custumbuild: ./build all -y
 
 
Thanks to smtalk
More info: http://forum.directadmin.com/showthread.php?t=43785&page=4&p=234348#post234348


Was this article helpful?

mood_bad Dislike 0
mood Like 2
visibility Views: 23359