I’m trying to list my setup and the changes I’ve made. Maybe this can help you.
But first: My securiy check in the admin panel actually passes and as I said, WebDav is working atleast partially.
I’m running Caddy on ArchLinux and I installed this package for caddy and this for nextcloud.
The default user for webstuff on Arch is http so I created a override file for the systemd service so that Caddy starts as http. Nextcloud is in /usr/share/webapps/nextcloud. The following script sets the right permissions for nextcloud and is provided in the nextcloud docs:
#!/bin/bash
ncpath='/usr/share/webapps/nextcloud'
htuser='http'
htgroup='http'
rootuser='root'
printf "Creating possible missing Directories\n"
mkdir -p $ncpath/data
mkdir -p $ncpath/assets
printf "chmod Files and Directories\n"
find ${ncpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ncpath}/ -type d -print0 | xargs -0 chmod 0750
printf "chown Directories\n"
chown -R ${rootuser}:${htgroup} ${ncpath}/
chown -R ${htuser}:${htgroup} ${ncpath}/apps/
chown -R ${htuser}:${htgroup} ${ncpath}/config/
chown -R ${htuser}:${htgroup} ${ncpath}/data/
chown -R ${htuser}:${htgroup} ${ncpath}/themes/
chown -R ${htuser}:${htgroup} ${ncpath}/assets/
chmod +x ${ncpath}/occ
printf "chmod/chown .htaccess\n"
if [ -f ${ncpath}/.htaccess ]
then
chmod 0644 ${ncpath}/.htaccess
chown ${rootuser}:${htgroup} ${ncpath}/.htaccess
fi
if [ -f ${ncpath}/data/.htaccess ]
then
chmod 0644 ${ncpath}/data/.htaccess
chown ${rootuser}:${htgroup} ${ncpath}/data/.htaccess
fi
In /etc/php/php-fpm.d/www.conf I changed the user and group to http and changed listen = /run/php-fpm/php-fpm.sock to listen = 127.0.0.1:9000 as stated in the blog post.
In /etc/php/php.ini I changed the following things:
memory_limit = 512Mpost_max_size = 150Gupload_max_filesize = 150G- activated a bunch of extensions
I changed nothing in /usr/share/webapps/config. I think that’s all I did to get everything working in Nextcloud.