User Tools

Site Tools


computing:nextcloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:nextcloud [2023/12/16 18:57] oemb1905computing:nextcloud [2026/03/02 05:06] (current) oemb1905
Line 138: Line 138:
 To configure cron to refresh php every 5 minutes: To configure cron to refresh php every 5 minutes:
    
-  sudo crontab -e -u www-data+  ''sudo crontab -e -u www-data''
   <MAILTO="email@email.com">   <MAILTO="email@email.com">
   <*/ *  *  *  * php -f /var/www/html/cron.php > /dev/null 2>&1>   <*/ *  *  *  * php -f /var/www/html/cron.php > /dev/null 2>&1>
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, redis is on the same machine as nextcloud. First, install needed packages.+Use redis for everything except local memcache which uses apcu. Also, in this configuration, redis is on the same machine as nextcloud. First, install needed packages. Adjust versions to your needs.
  
-  sudo apt install redis memcached php-apcu php-redis redis-server php-memcache php-memcached+  sudo apt install  php-{apcu,redis,memcache,memcached} redis memcached redis-server 
 +  sudo apt install  php8.3-{apcu,redis,memcache,memcached} redis memcached redis-server 
 +  sudo apt-get install php-{xml,curl,gd,cgi,zip,mysql,mbstring,intl,fpm,apcu,gmp,imagick,bcmath,bz2} 
 +  sudo apt-get install php8.3-{xml,curl,gd,cgi,zip,mysql,mbstring,intl,fpm,apcu,gmp,imagick,bcmath,bz2}
  
 Then, right underneath the '''filelocking.enabled' => true,'' line, enter the following: Then, right underneath the '''filelocking.enabled' => true,'' line, enter the following:
Line 271: Line 274:
 Enable rotation of logs Enable rotation of logs
  
-    'log_rotate_size' => 100 * 1024 * 1024,+  'log_rotate_size' => 100 * 1024 * 1024,
  
-This will put the logs on a schedule and remove old errors in due time.+Delete the log contents (removes errors from admin settings GUI) 
 +   
 +  sudo -u www-data truncate nextcloud.log  --size 0 
 + 
 +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 /var/www/inside.outsidebox.vip/public_html/config/config.php 
 +  'trusted_domains' => 
 +    array ( 
 +      0 => 'inside.outsidebox.vip', 
 +      1 => '10.13.13.33', 
 +    ), 
 +  'overwritehost' => 'inside.outsidebox.vip', 
 +  'overwriteprotocol' => 'https', 
 + 
 +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: 
 + 
 +  'maintenance_window_start' => 1, 
 +   
 +Mimetype migrations 
 + 
 +  sudo -u www-data php occ maintenance:repair --include-expensive 
 +  sudo -u www-data php occ maintenance:repair #for version 33 
 + 
 +On recent versions, you cannot set up smtp on the gui. Use the following adjust as needed: 
 + 
 +  'mail_smtpmode' => 'smtp', 
 +  'mail_sendmailmode' => 'smtp', 
 +  'mail_smtphost' => 'mail.example.com', 
 +  'mail_smtpport' => '465', 
 +  'mail_smtpauth' => 1, 
 +  'mail_smtptimeout' => 30, 
 +  'mail_from_address' => 'noreply', 
 +  'mail_smtpname' => 'noreply', 
 +  'mail_smtppassword' => 'hackmehard123!@', 
 +  'mail_smtpsecure' => 'ssl', 
 + 
 +=== Version 33 Notes === 
 + 
 +The new ''server_id'' parameter in ''config.php'' glitches so enter twice as follows: 
 + 
 +  'server_id' => 'unique-string', 
 +  'serverid' => 'unique-string', 
 + 
 +Yes, the code was bad so passing without the underscore tricks the interpreter into finding the correct JSON afterall. Another bug is that the db --include-expensive flag failed as per this bug report:  
 + 
 +  * [[https://github.com/nextcloud/server/issues/58594|File Sharing] 
 + 
 +There's a solution to revert, but for met that does not work. So, I just enabled File sharing on the instance, then upgraded, then disabled File Sharing again.  
 + 
 +  sudo -u www-data php occ app:enable files_sharing 
 +  sudo -u www-data php occ app:disable files_sharing 
 +   
 +After that, there were no MIME errors remaining in the Administration Settings after the 33 upgrade.
  
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/12/16 18:56//+ --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/03/02 05:00//
computing/nextcloud.1702753041.txt.gz · Last modified: by oemb1905