Nginx web server

Published November 1, 2015 08:46:40 AM  |  Last update November 1, 2015 08:50:26 AM

Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. To date, Nginx hosts nearly 12.18% (22.2M) of active sites across all domains. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. Early in 2012, Nginx surpassed Microsoft IIS and has taken the 2nd position of the top web servers. Although Apache still remains the top one. it however is like Microsoft Word, it has a million options but we only need six. Nginx does those six things, and it does five of them 50 times faster than Apache (Chris Lea.). The most advantage of Nginx, compared with other web servers, is that it doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.

Using PHP-FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation with some additional features useful for sites of any size, as a back-end for PHP script, Nginx is able to process PHP scripts differently using different PHP configurations (php.ini files). Installation Nginx+PHP-FPM and MySql on Linux server is kinda easy. Following are the key steps to have these done.

  1. Install Linux OS.
  2. Install Nginx. Note that we need to choose the proper repo so that we can have the latest and stable version of Nginx installed.
  3. Install PHP-FPM, or alternatively any PHP processor back-end such as Apache to support Nginx with running PHP scripts.
  4. Install MySql, if needed.

We made an Nginx install script available at ws.tinyray.com. To install LNPM, simply do the following steps,

  1. Install Linux OS.
  2. Run the command below,
    wget ws.tinyray.com/nginx.sh -O - -o /dev/null|bash [-s mysql]
    Please do not use the option -s mysql if we don't want to have MySql server installed.
  3. Just relax while waiting for the job being done.

Hope this helps! :)

web builder  tnWeb_1.54 – powered and hosted by tinyray