Need to install "Nginx Web Server" instead of "Apache Web Server" to increase number of concurrent users.

Hi,

As i am using Virtualmin from a long time, Apache server is by default installed with the script. As Apache Web Server is slow then Ngnix. I want to modify my web server to "Nginx". Kindly help me with the step by step process to install my apache web server with nginx.

Step 1 : Step2 : . . . . . Step :

Let me know the solution earliest.

Regards, Krinz

Status: 
Active

Comments

Title: Need "Nginx Web Server" instead of "Apache Web Server" to increase number of concurrent users. » Need to install "Nginx Web Server" instead of "Apache Web Server" to increase number of concurrent users.

 All other features are awesome with Virtualmin, Once Web Server get updated to Nginx then it will be awesome.

Howdy -- thanks for contacting us!

There are instructions for setting up Nginx on a new server here:

https://www.virtualmin.com/documentation/web/nginx

There unfortunately aren't instructions for doing that on an existing server, but if you're setting up a new server the above should work great.

Joe's picture
Submitted by Joe on Mon, 05/29/2017 - 20:11 Pro Licensee

Note also that switching to nginx alone is unlikely to significantly alter the performance or load capacity of your system. Your application plays a much larger role in how much load the system can handle.

Using mod_fcgid or php-fpm execution modes can help. Making sure you don't have any extraneous Apache modules loaded (mod_php in particular should be disabled, if you're using fcgid or php-fpm, since it is quite large) can help. Tuning your database configuration appropriately for the load and size of your system can help.

Merely switching web servers will likely cause a very small difference. It can help with memory usage on memory-bound systems, but performance isn't really going to be fixed by running it under nginx if your app is too slow under Apache.