I installed Nextcloud locally to have a test environment for httpd.
During the SQLite setup, I noticed a few missing parts.


- Our default configuration is missing "<?php". I have already received
  an OK for this. I have added the configuration for the data directory
  to alert users that this may be an important part. (The installation
  of occ will overwrite this anyway.)

- Add a note to the readme file that we need to set --data-dir when
  using SQLite.

OK?

Index: 31/Makefile
===================================================================
RCS file: /cvs/ports/www/nextcloud/31/Makefile,v
diff -u -p -r1.10 Makefile
--- 31/Makefile 16 Dec 2025 14:39:17 -0000      1.10
+++ 31/Makefile 6 Jan 2026 07:10:43 -0000
@@ -1,3 +1,4 @@
 NC_VERSION=    31.0.12
+REVISION = 0
 
 .include <bsd.port.mk>
Index: 32/Makefile
===================================================================
RCS file: /cvs/ports/www/nextcloud/32/Makefile,v
diff -u -p -r1.5 Makefile
--- 32/Makefile 16 Dec 2025 14:40:27 -0000      1.5
+++ 32/Makefile 6 Jan 2026 07:10:43 -0000
@@ -1,3 +1,4 @@
 NC_VERSION=    32.0.3
+REVISION = 0
 
 .include <bsd.port.mk>
Index: files/config.php.dist.in
===================================================================
RCS file: /cvs/ports/www/nextcloud/files/config.php.dist.in,v
diff -u -p -r1.1 config.php.dist.in
--- files/config.php.dist.in    9 Dec 2018 11:07:35 -0000       1.1
+++ files/config.php.dist.in    6 Jan 2026 07:10:43 -0000
@@ -1,3 +1,5 @@
+<?php
 $CONFIG = array (
   'integrity.check.disabled' => true,
+  'datadirectory' => '/nextcloud/data',
 );
Index: pkg/README
===================================================================
RCS file: /cvs/ports/www/nextcloud/pkg/README,v
diff -u -p -r1.25 README
--- pkg/README  2 Oct 2025 09:10:43 -0000       1.25
+++ pkg/README  6 Jan 2026 07:10:43 -0000
@@ -28,6 +28,10 @@ Nextcloud which will break background jo
 A symlink can be created to workaround this issue:
     # ln -sf ${TINSTDIR} /nextcloud
 
+This also means that you must specify "--data-dir" during occ installation.
+    # cd /nextcloud
+    # doas -u www php occ maintenance:install --data-dir "/nextcloud/data"
+
 OpenBSD HTTP daemon
 -------------------
 httpd(8) example configuration for Nextcloud:

Reply via email to