core icon indicating copy to clipboard operation
core copied to clipboard

Debian config file path organisation

Open time2ride opened this issue 12 years ago • 7 comments

Hi, I suggest to change some paths in the Debian package:

  • /var/www/owncloud folder should be changed to /usr/share/owncloud as suggested in #6388 /etc/owncloud/apache.conf (see below):
Alias /owncloud /usr/share/owncloud
<Directory /usr/share/owncloud/>
  AllowOverride All
</Directory>
  • Default data dir should be set to something like /srv/owncloud
root@debian-wheezy:/etc/owncloud# l /srv/
total 0
drwxrwx--- 1 www-data www-data 130 Aug 30 01:00 owncloud
  • All config files should be placed under /etc/owncloud/ and linked to from the according places (e.g. phpmyadmin organizes its configfiles this way):
root@debian-wheezy:/etc/owncloud# l
total 24
-rw-r--r-- 1 root     root       306 Aug 30 00:34 apache.conf
-rw-r----- 1 www-data www-data   451 Aug 30 00:03 config.php
-rw-r--r-- 1 www-data www-data 14499 Aug 26 12:18 config.sample.php
root@debian-wheezy:/etc/owncloud# l /etc/apache2/conf.d/
total 28
...
lrwxrwxrwx 1 root root   26 Aug 30 01:07 owncloud.conf -> ../../owncloud/apache.conf
lrwxrwxrwx 1 root root   28 Aug 27 17:27 phpmyadmin.conf -> ../../phpmyadmin/apache.conf
...
root@debian-wheezy:/etc/owncloud# l /usr/share/owncloud/config/
total 12
lrwxrwxrwx 1 root     root      24 Aug 30 00:55 config.php -> /etc/owncloud/config.php
lrwxrwxrwx 1 root     root      31 Aug 30 00:55 config.sample.php -> /etc/owncloud/config.sample.php
-rw-r--r-- 1 www-data www-data 221 Aug 26 12:17 .htaccess

This would yield a debian conform config structure and make owncloud easier to administer on those systems. What do you think about that?

time2ride avatar Aug 29 '14 23:08 time2ride

@jnweiger

karlitschek avatar Aug 30 '14 05:08 karlitschek

@karlitschek At least the /var/www part is already discussed here: https://github.com/owncloud/core/issues/6388

ghost avatar Aug 30 '14 08:08 ghost

I created a gist that performs the required tasks on a current install without breaking upgradability. Maybe the package maintainer (probably @jnweiger) can use parts of it for the Suse build service repo. https://gist.github.com/time2ride/2a921a0f87d84912a37e (I did not thoroughly test that but it should work so use it with caution...)

time2ride avatar Aug 31 '14 00:08 time2ride

@time2ride Thanks for sharing! I will look into this for owncloud 8.

For data I am undecided. /var/lib/owncloud/data has been suggested elsewhere.

jnweiger avatar Jan 26 '15 17:01 jnweiger

Not done for ownCloud 8. Sorry. This calls for a serious testsuite, before it can be deployed. Priorizing automated tests in that direction.

jnweiger avatar Feb 10 '15 15:02 jnweiger

I've basically given up on proper filesystem hierarchy standards. Our ownCloud installation instructions clearly say to install the code in the web-server space. This applies to Tar/Zip archive installations and also to packages, to maintain consistency.

Also, asserting proper upgrade behaviour for all our user scenarios is a real challenge, if we move the code and everything to the 'proper' location.

the issue is well known and explored by now as an enhancement. I don't see it happen. Sorry.

jnweiger avatar Mar 28 '16 22:03 jnweiger

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Aug 05 '19 08:08 lock[bot]