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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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  FS#38650 , php's open_basedir caused problems on my system without action 3.

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
Comment by Bastien Traverse (Neitsab) - Tuesday, 10 February 2015, 11:56 GMT
Related: https://bugs.archlinux.org/task/41381#comments

> (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.
Comment by Sergej Pupykin (sergej) - Monday, 02 March 2015, 18:18 GMT
1,2 - I do not want to force user use /var dir for owncloud data
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

Loading...