Submitted by krinz on Mon, 05/29/2017 - 04:57
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
Submitted by krinz on Mon, 05/29/2017 - 05:07 Comment #1
All other features are awesome with Virtualmin, Once Web Server get updated to Nginx then it will be awesome.
Submitted by andreychek on Mon, 05/29/2017 - 09:38 Comment #2
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.
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.