To speed up nextcloud you should enable PHP OPcache The OPcache improves the performance of PHP applications by caching precompiled bytecode. We recommend at least following settings: Put this in this insert in /etc/php5/apache2/php.ini opcache.enable=On opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1