WHM series: Nginx Admin [Nginx plug-in] « Zhaorong Tribe

WHM series: Nginx Admin [Nginx plug-in]

Time: January 14, 2013 Column: VPS Tutorial Author: Zhao Rong Click: 12783 times

 Proprietary computer room/advanced anti DDoS server/advanced anti DDoS VPS/American advanced anti DDoS/Los Angeles VPS/Los Angeles advanced anti DDoS server

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.

 nginx admin

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.

 Advanced Defense VPS/Los Angeles Advanced Defense/Advanced Defense Server/20 year old computer room

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

WHM series: Nginx Admin [Nginx plug-in]: There are currently 7 messages

  1. 4th floor
    chinapao :

    After testing.... Running for a long time may cause database errors....

    2014-09-20 23:25 [Reply]
  2. floor
    chinapao :

    Nginx+varnish is the best way to optimize cpanel...

    2014-05-12 15:34 [Reply]
  3. Bench
    onepeople :

    Sister Rong, I had a hard time tonight. I started to have problems with the installation. I watched the forum later http://nginxcp.com/ , the installation was successful, but after restarting nginx, the website could not be opened... Have you ever met..

    2013-04-19 23:56 [Reply]
    • Zhao Rong :

      Unable to open the wrong message.
      However, WHM is safe to install these things

      2013-04-19 23:58 [Reply]
      • If there is no error, the connection cannot be made directly

        The installation has been successful, and it has been a long time. According to the installation method you provided, there will be errors. The official solution is available. The installation is complete

        Depressed

        2013-04-20 08:17 [Reply]
  4. sofa
    Ah Fu :

    This thing is good.

    2013-01-14 13:36 [Reply]
    • Zhao Rong :

      Yes, nginx looks good.

      2013-01-14 23:19 [Reply]

Comment


 hostyun  locvps

Advertise