Use apache or nginx web server for better performance


#1

Hi everyone,I’m new guy here…
Which of web server could I use for my nextcloud? apache or nginx for better performance ?
What should I configure for my nextcloud server running faster?
Thank you.


#2

I don’t know about the web servers, if you already know one of them stick to it. I prefer apache because I have set up a lot of portals, nextcloud, wordpress and other.

What definitely makes a performance difference, is to enable php-fpm. This is possible with both web servers. For apache, I followed these guides:

http://blog.koenreiniers.nl/guide-to-combining-apache-virtual-hosts-and-php7-fpm/
https://misterunknown.de/de/apache-2-4-mit-php5-fpm-via-sockets

What also improves performance, is to enable http/2 on the web server.
https://localhorst.org/http2-0-debian-9-mit-apache-2-4/