@Fourdee W8888, something went crazy with your fix:
/var/www/owncloud!owncloud does not exist anymore on ownClouds own repo, but there is an ancient version 7.x (recent is 10.x) in debian repo (just Jessie, not Stretch) that will be installed with very old dependencies and to "old" location!owncloud-files package instead of owncloud, this will install the new version from ownClouds own repo and fix it for all repos.€: Actually on Jessie Nginx with default config it does not execute scripts. Got it to web ui installation after adding .php location directives, but after installation just got 404 error again. Will try around again another day...
€€: Self reminder: Check disable_symlinks off;
@MichaIng
Good finds 👍 , i'll mark this as a bug and set v159 milestone.
Installation fix applied, taking into account the different distros: https://github.com/Fourdee/DietPi/pull/1243
We could also directly use manual archive download for all distros, but I have no idea how well the integrated updater works.
Configuration including occ installation, webserver configs etc. coming soon. We can do it similar to Nextcloud here. Only adding 1 => '*', to config.php to disable trusted domains does not work here, thus we need to reliably get hostname and sed it instead.
Found complete installation (+database/config.php creation) and nginx+apache configs for ownCloud on Jessie and Stretch. Moreless similar to Nextcloud. Also recreated both configs from official docs. Not much changed, just some parent location directives added.
We can install both beside another, but then some redirections (acme+cal/carddav esprcially) and security headers are duplicated.
Security headers can be moved into ownCloud/Nextcloud locations, the other parent directory directives could be moved into an own "ownnextcloud.conf" file, so both installation will just overwrite/check for the same. It is just a question where to redirect default cal/carddav and user_webfinger requests to. Would be nice to let user decide, if both clouds are installed. Should be anyway nearly never the case 😆.
Only problem is still the trusted domain thing mentioned above. @Fourdee Any idea how to determine the users domain>staticIP>localIP?
@MichaIng
Current IP address:
sed -n 4p /DietPi/dietpi/.network
Domain/hostname:
cat /etc/hostname
Implemented: https://github.com/Fourdee/DietPi/pull/1251
ownCloud will now also install ready to use, with database configured, ownCloud occ-install etc.
Further improvements will be done together with Nextcloud. I renamed the old issue accordingly. This one could be closed now in favour of https://github.com/Fourdee/DietPi/issues/1067
@MichaIng
Great work 👍 Making as completed.
Most helpful comment
Implemented: https://github.com/Fourdee/DietPi/pull/1251
ownCloud will now also install ready to use, with database configured, ownCloud occ-install etc.
Further improvements will be done together with Nextcloud. I renamed the old issue accordingly. This one could be closed now in favour of https://github.com/Fourdee/DietPi/issues/1067