Last October, Zhao Rong shared a WHM/cPanel Lower Nginx plug-in Today, I will share another free Nginx plug-in: Nginx Admin 。
The WHM/cPanel is installed as the Apache Web server environment by default. Nginx is a free and open high-performance HTTP and proxy server environment. After WHM installs the Nginx Admin plug-in, we will use Nginx as the reverse proxy of Apache, and it will process static content (such as text, images, CSS, etc.), while Apache is only responsible for processing dynamic pages, which can improve the website loading speed and consume less system resources.
Nginx Admin Installation
The installation of Nginx Admin is very simple. At present, the latest version is 1.2.6, and the existing site access will not be affected. Log in to the server as root and execute the following code.
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install
If the official direct installation fed back by enthusiastic readers is unsuccessful, the following installation process can be used:
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix
mv “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg” “/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg.bak”
./nginxinstaller install
Nginx Admin uses
After installation, Nginx Admin, as a WHM plug-in, can log in to the WHM background, select Plugins, and Nginx Admin will arrive at the graphical interface.
As shown in the figure above, if you need to clean the cache regularly, you can add the automatic tasks it provides to cron (crontab - e).
The background can restart nginx, view logs, and rebuild vhosts.
Nginx Admin Uninstall
If you are not used to it or do not like it, you can uninstall it at any time. Just run the following code.
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall
In general, Nginx performs better than Apache under high load, and it is lighter than Apache and more efficient in handling static content. Friends who use the WHM/cPanel can still try it.
Statement: Blogs are only for sharing information and are not recommendations. Websites do not participate in transactions and are not intermediaries. The content only represents personal views and is not authoritative. Readers should consider it and take their own risks! Every penny and every commodity is still the eternal truth. Juvenile readers (including physical and psychological) should visit this website with their guardians! This article is written by( Zhao Rong )Original compilation, reprint, please keep the link: WHM series: Nginx Admin [Nginx plug-in] The code is not easy, please do not copy or paste! About using: This website mainly shares server and VPS information, and does not provide any product sales or purchase. All visitors please purchase and use products within the scope of national laws and regulations. QQ group discussion: 683851361 About safety: Any IDC has the possibility of going bankrupt and running away. The host line is even more uncontrollable. Monthly payment and backup are your best choices. Please keep good and regular backup habits