DirectAdmin is what we call the DA panel for short. Many foreign hosts used by my friends use this panel. The DA panel uses apache by default. Apache is the world's number one WEB server and has excellent ability to process dynamic pages, but it is a bit weak in processing static pages. Therefore, many friends install nginx front-end for the DA panel and let nginx run in front. Static, while apache handles dynamic, which has good results.
Good VPS also tried to install the nginx front-end for DA. I used the automatic installation scripts of two heroes respectively. They are both very good and I specially share them.
1. iCodex’s Blog script
First, let’s take a look at the script from iCodex’s Blog, which is limited to CentOS system installation and use, and has been tested to be normal. Installation process:
wget http://icodex.org/dl/directadmin/install.sh
chmod 755 install.sh
./install.sh
You can also use a good VPS to modify the script installation of nginx version 1.3:
wget https://www.vpsok.net/download/sh/da/nginxinstall.sh
chmod 755 nginxinstall.sh
./nginxinstall.sh
To uninstall:
wget http://icodex.org/dl/directadmin/uninstall.sh
chmod 755 uninstall.sh
./uninstall.sh
Original author's address: http://icodex.org/2010/05/directadmin-nginx-automated-installer/
The author stated that it can only be used for new DA installations. Good VPS has also tried to install it on existing hosts and websites. No abnormalities have been found during use, but friends still need to pay attention when using it.
2. SHY9000 script
SHY9000 script Here we share its one-click package. This one-click package includes nginx front-end installation, one-click website upload installation, Capri skin, etc., which is very convenient. The script is also only applicable to CentOS systems, and the installation method is also very simple.
wget http://easyinstall.googlecode.com/files/onekey.sh
sh onekey.sh
At the same time, this script also automatically updates DA's PHP to 5.3, MYSQL to 5.5, and automatically installs ZEND Guard, which is very convenient.
Original author's blog: http://loger.me/
Personally, I think there are certain benefits to installing nginx front-end for DA. It can process static pages more efficiently, apache Stress will also be reduced. Of course, in addition to the automatic scripts of the two heroes I shared here, there may be other scripts or methods, and friends are welcome to enlighten me.