This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:nextcloud [2023/12/16 17:47] – oemb1905 | computing:nextcloud [2024/07/13 04:12] (current) – oemb1905 | ||
---|---|---|---|
Line 13: | Line 13: | ||
This tutorial is for a Nextcloud instance on Debian GNU/ | This tutorial is for a Nextcloud instance on Debian GNU/ | ||
- | sudo apt install apache2-utils php-xml php-curl php-gd php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-apcu php-gmp php-imagick php-bcmath wget unzip | + | sudo apt install apache2-utils php-xml php-curl php-gd php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-apcu php-gmp php-imagick php-bcmath |
| | ||
Or ... | Or ... | ||
| | ||
- | sudo apt-get install php-{xml, | + | sudo apt-get install php-{xml, |
| | ||
Once these are installed, make sure you can enable them and that you have no errors in your configurations: | Once these are installed, make sure you can enable them and that you have no errors in your configurations: | ||
Line 244: | Line 244: | ||
sudo -u www-data php updater.phar | sudo -u www-data php updater.phar | ||
| | ||
- | Use redis for everything except local memcache which uses apcu. Also, in this configuration, | + | Use redis for everything except local memcache which uses apcu. Also, in this configuration, |
- | sudo apt install | + | sudo apt install |
+ | sudo apt install | ||
+ | sudo apt-get install | ||
+ | sudo apt-get install | ||
Then, right underneath the ''' | Then, right underneath the ''' | ||
Line 268: | Line 271: | ||
RewriteRule ^\.well-known/ | RewriteRule ^\.well-known/ | ||
RewriteRule ^\.well-known/ | RewriteRule ^\.well-known/ | ||
+ | | ||
+ | Enable rotation of logs | ||
+ | |||
+ | ' | ||
+ | |||
+ | Delete the log contents (removes errors from admin settings GUI) | ||
+ | | ||
+ | sudo -u www-data truncate nextcloud.log | ||
+ | |||
+ | This will put the logs on a schedule and remove old errors in due time. When I put Nextcloud behind a reverse proxy, I had to change the following in the primary config: | ||
+ | |||
+ | sudo nano / | ||
+ | ' | ||
+ | array ( | ||
+ | 0 => ' | ||
+ | 1 => ' | ||
+ | ), | ||
+ | ' | ||
+ | ' | ||
+ | |||
+ | This ensures that the upstream subnet and node is trusted and that external url requests don't try to access the subnet directly. There are other notes in the proxmox tutorial since that is when I set up the reverse proxy setup. There is now a recommended maintenance window setting: | ||
+ | |||
+ | ' | ||
+ | | ||
+ | Mimetype migrations | ||
+ | |||
+ | sudo -u www-data php occ maintenance: | ||
- | --- //[[jonathan@haacksnetworking.org|oemb1905]] | + | --- //[[webmaster@haacksnetworking.org|oemb1905]] |