Nginx web server
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.
- Install Linux OS.
- Install Nginx. Note that we need to choose the proper repo so that we can have the latest and stable version of Nginx installed.
- Install PHP-FPM, or alternatively any PHP processor back-end such as Apache to support Nginx with running PHP scripts.
- Install MySql, if needed.
We made an Nginx install script available at ws.tinyray.com. To install LNPM, simply do the following steps,
- Install Linux OS.
- 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.
- Just relax while waiting for the job being done.
Hope this helps! :)