Enable the HTTP/2 module
- sudo a2enmod http2
- sudo systemctl restart apache2
Enable your sites
The configuration for this will be found in /etc/apache2/sites-enabled/000-default-le-ssl.conf.
Note: All sites in which you’ve enabled HTTPS, via Let’s Encrypt, will end with le-ssl.conf.
- sudo nano /etc/apache2/sites-enabled/000-default-le-ssl.conf
and add the following tag after the <VirtualHost *.443> directive tag:
Protocols h2 http:/1.1
Save and close that file. Restart Apache2 with the command
- sudo systemctl restart apache2.
Background jobs
# crontab -u www-data -e
And append this line:
*/5 * * * * php -f /var/www/nextcloud/cron.php
You can verify if the cron job has been added and scheduled by executing:
# crontab -u www-data -l
Which returns:
[snip]
*/5 * * * * php -f /var/www/nextcloud/cron.php
