try to install Nextcloud 31 on opensuse Trumbleweed . Using handout https://en.opensuse.org/SDB:Nextcloud https://en.opensuse.org/SDB:LAMP_setup
Testing → apache2 server works
Install php8 with modules that Nextcloud recommend. (hope so)
Testing php8 → '[10.10.10.30/index.php] ; it is working
Process-owner Apache is wwwrun.
Install mariadb and config → all things are okay
Nexcloud ist installed at /srv/www/htdocs/nextcloud direcoriy owner is wwwrun und protection default Nexcloud.
drwxr-xr-x. 1 wwwrun wwwrun 538 May 2 10:03 nextcloud/
Config Nextcloud at all over ssh from 10.10.10.1
So, initiate Nextcloud with http://10.10.10.30/nextcloud
==> Can’t write into config directory! This can usually be fixed by giving the webserver write access to the config directory.
Which config directory is meant? If /srv/www/htdocs/nextcloud/config
if this directory is meant then the rights are the following
What are the permissions of /srv/www/htdocs/nextcloud?
With sudo -u wwwrun ls /srv/www/htdocs/nextcloud/config you can check if the wwwrun-user has permission to look into the folder (often, there are issues in one of the parent folders)
as you are running suse you will probably have selinux active on it as well. That can cause issues and not being able to write to that directory as well
that’s the solution - for that. Nobody over the world give that tip only you .
Okay, but I don’t know what does it mean for my OS installation?
Start browser but they what use DB SQLlite - never config SQLlite;
Config - mariaDB : ```
sudo mysql -u root -p
okay, now I know that selinux must be taken into account.
SELinux needs to be configured to work with Nextcloud, there are some hints in the documentation:
Regarding tutorials, if they are older, they might rely on different software configurations, Nextcloud at that time did things perhaps differently, SELinux was not in OpenSUSE or configured differently, … so even if the documentation is suitable, it is often worth checking with other with more recent systems.
And if tutorials have forum/comments etc. attached, you can leave a comment what issue you had and how you solved it.