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
  • 4 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

Nginx rewrite rules for WordPress

Hoe krijgt u een Wordpress website werkend onder NGINX met DirectAdmin ?   Normaliter...

How to Update an existing DirectAdmin From Apache to Nginx

For update to From Apache to NGINX   Installl DirectAdmin in options menu choose option 3...

Nginx rewrite rules for Magento

Hoe krijgt u een Magento website werkend onder NGINX met DirectAdmin ?   Normaliter...

How to set IPv6 in DirectAdmin NGINX Webserver

Voor Debian Gebruikers:De eerste stappen zijn voor Debian Linux om het IPv6 adres te...