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
docker_notes:docker-nextcloud [2026-03-28 Sat wk13 08:45] – [Nextcloud with supervisord] baumkpdocker_notes:docker-nextcloud [2026-08-23 Sun wk34 19:32] (current) – [Nextcloud Container] baumkp
Line 9: Line 9:
   * ''%%docker exec -u www-data nextcloud-app-1 php /var/www/html/cron.php%%'' runs the cron.php   * ''%%docker exec -u www-data nextcloud-app-1 php /var/www/html/cron.php%%'' runs the cron.php
   * ''%%docker exec -u www-data nextcloud-app-1 php occ maintenance:mode --off|on%%'' to turn maintenance mode off or on from the containers host shell   * ''%%docker exec -u www-data nextcloud-app-1 php occ maintenance:mode --off|on%%'' to turn maintenance mode off or on from the containers host shell
 +
 +I have been using Nextcloud and before that Owncloud since circa 2014.  Originally I self hosted in a virtual machine (VM) on my server, circa 2022 I moved to installing on Docker containers that were installed on a VM.  I am not sure if Nextcloud is the best solution any more, it is starting to feel a bit clunky, too many error warning messages related to corporate software installation, it is annoying.  Inertia is keeping me with Nextcloud at this time.  Some other solutions include: [[https://www.seafile.com/en/home/|Seafile]] for file sync including webDav, [[https://immich.app/|Immich]] for photos and [[https://radicale.org/master.html|Radicle]] for calendar and contacts with a tiny Dav server.
  
 =====Nextcloud with supervisord===== =====Nextcloud with supervisord=====
Line 132: Line 134:
 ++++ ++++
  
 +====php/php-fpm setting====
 ++++php.ini configuration files| ++++php.ini configuration files|
 The files are added to  ''/usr/local/etc/php/conf.d/''. The files are added to  ''/usr/local/etc/php/conf.d/''.
 +
 To check actual php setting from cli: ''php -i''. To check actual php setting from cli: ''php -i''.
  
Line 152: Line 156:
 </code> </code>
 ++++ ++++
 +
 ++++php-fmp configuration files| ++++php-fmp configuration files|
 The files are added to  ''/usr/local/etc/php-fpm.d/''. The files are added to  ''/usr/local/etc/php-fpm.d/''.
-To check actua lphp-fpm setting from cli ''php-fpm -tt''+ 
 +To check actual lphp-fpm setting from cli ''php-fpm -tt'' 
 **www.conf**: **www.conf**:
 <code>; Start a new pool named 'www'. <code>; Start a new pool named 'www'.
Line 649: Line 656:
 ++++ ++++
  
 +I noticed that these changes I made improved the performance of the Nextcloud.  Some of the intermittent errors stop and the page response improved significantly.
 ====RedirectRegex==== ====RedirectRegex====
 I get a redirect error in Nextcloud that I have not been able to track down to date.  Does not seem much info in this on the net, and the little there is also indicates a problem without and easy solution.  Nextcloud main support looks Apache web server based with little Nginx support and even less Traefik support. I get a redirect error in Nextcloud that I have not been able to track down to date.  Does not seem much info in this on the net, and the little there is also indicates a problem without and easy solution.  Nextcloud main support looks Apache web server based with little Nginx support and even less Traefik support.
Line 732: Line 740:
 =====CLI Use of Nextcloud===== =====CLI Use of Nextcloud=====
 Sometime it is necessary to get direct CLI (command line interface) access to Nextcloud for updating, turning of maintenance mode and similar. Sometime it is necessary to get direct CLI (command line interface) access to Nextcloud for updating, turning of maintenance mode and similar.
 +  * Access tips:
 +    * Use www-data when working with php occ
 +    * Use root when working with php or php-fpm directly
 +    * The nextcloud image is based upon Alpine Linux, so shell type is ash (not BASH).
   * ''%%docker exec -it --user www-data nextcloud-app-1 ash%%''  gain terminal access to Nextcloud   * ''%%docker exec -it --user www-data nextcloud-app-1 ash%%''  gain terminal access to Nextcloud
   * Nextcloud is running in the nextcloud-fpm Docker container, to access the cli in Portainer need to select ''/bin/sh'' shell and user ''www-data'' The working directory is ''/var/www/html''   * Nextcloud is running in the nextcloud-fpm Docker container, to access the cli in Portainer need to select ''/bin/sh'' shell and user ''www-data'' The working directory is ''/var/www/html''