FS#42779 - [owncloud] Smoother Initiation
Attached to Project:
Community Packages
Opened by Normann Strack (normann) - Thursday, 13 November 2014, 20:39 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 03 March 2015, 10:14 GMT
Opened by Normann Strack (normann) - Thursday, 13 November 2014, 20:39 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 03 March 2015, 10:14 GMT
|
Details
Description:
With just three little things owncloud could be brought into operation much easier. Please consider these actions: 1. Provide a directory var/lib/onwcloud/data owned by http:http 2. Provide a symbolic link to the data directory in usr/share/webapps/onwcloud owned by root 3. Most important: Provide etc/php/conf.d/owncloud.ini declaring owncloud's directories beeing OK for php, like dokuwiki does: open_basedir = ${open_basedir}:/etc/webapps/owncloud/:/var/lib/owncloud/ Additional info: I'm using owncloud and dokuwiki with php-fpm and hiawatha. In contrast to Steps to reproduce: Take the suggested actions, especially action 3 (and some rewrite rules in the web server config), and it works. Kind regards, normann |
This task depends upon
Closed by Sergej Pupykin (sergej)
Tuesday, 03 March 2015, 10:14 GMT
Reason for closing: Won't fix
Additional comments about closing: about comments: strong permission are too strong and needs manual intervention on upgrade, but file ownership should be fixed
Tuesday, 03 March 2015, 10:14 GMT
Reason for closing: Won't fix
Additional comments about closing: about comments: strong permission are too strong and needs manual intervention on upgrade, but file ownership should be fixed
> (me)
> I also noticed upstream admin manual prescribes that at least config/, data/ and apps/ directories be owned by the web server user process (http:http on Arch): http://doc.owncloud.org/server/7.0/admin_manual/installation/installation_source.html#set-the-directory-permissions.
>
> Right now this is only done for config/ in package() because it is moved to /etc/webapps/owncloud/ and linked back to /usr/share/webapps/owncloud/config.
> Comment by Sergej Pupykin (sergej)
> It is supposed that user set up apps/ (https://wiki.archlinux.org/index.php/Owncloud#.22Can.27t_write_into_apps_directory.22) and data/ permissions by himself.
I disagree that a data directory should be created in a *specific* location; I for one don't want to use the /var directory for this. This indeed seems like something users should choose themselves.
However, I second setting the right ownership on those few folders that require it. Moreover upstream has tightened its recommendations about directory permissions and offers a script to set them right: http://doc.owncloud.org/server/8.0/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions
Please consider enforcing this.
3 - already had long discussion about same issue in roundcubemail package, and it looks like best solution is adjusting php settings somewhere in apache or create own .ini for nginx.
directory permissions are set according to http://doc.owncloud.org/server/8.0/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions