You are not logged in.

#1 2014-01-28 19:33:59

doragasu
Member
Registered: 2012-03-03
Posts: 152

Owncloud: "Can't write into config directory"

I have recently updated Owncloud in my Guruplug server (armv5). This update changed the config directory from /usr/share/webapps/owncloud/config to /etc/webapps/owncloud/config, and created the following symlink:

/usr/share/webapps/owncloud/config --> /etc/webapps/owncloud/config

I copied my config.php configuration file to /etc/webapps/owncloud/config/config.php, and double checked ownerships and permissions:

/etc/webapps/owncloud/config has 775 permissions and is owned by http.http.
/etc/webapps/owncloud/config/config.php has 660 permissions and is owned by http.http.

Even though the http server has write permissions, each time I tried to open owncloud in my browser, it just shows the error message: "Can't write into config directory 'config'. This can usually be fixed by giving the webserver write access to the config directory.". I have even tried setting 777 permissions to the config directory and config.php file without luck.

I have worked around the problem by deleting the /usr/share/webapps/owncloud/config symlink, and replacing it by a "config" directory with the config file, but this will cause problems the next time I update owncloud, so I would like to know how to properly fix this.

Offline

#2 2014-01-28 19:53:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Owncloud: "Can't write into config directory"

Doublecheck https://wiki.archlinux.org/index.php/Ow … rectory.22
Edit: Ooops, this is for apps, not config.


You can try posting on Arch Linux ARM forum too.

Last edited by karol (2014-01-28 19:54:10)

Offline

#3 2014-01-29 11:43:06

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: Owncloud: "Can't write into config directory"

I have just upgraded owncloud on an i686 machine and I have exactly the same problem. Maybe I should open another thread in the networking section, or this should be moved there.

Last edited by doragasu (2014-01-29 11:43:24)

Offline

#4 2014-01-29 12:17:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Owncloud: "Can't write into config directory"

Offline

#5 2014-01-29 13:42:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Owncloud: "Can't write into config directory"

doragasu wrote:

I have just upgraded owncloud on an i686 machine and I have exactly the same problem. Maybe I should open another thread in the networking section, or this should be moved there.

I'll be happy to move it for you.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2014-02-01 15:42:55

havkajak
Member
Registered: 2013-11-17
Posts: 5

Re: Owncloud: "Can't write into config directory"

I have just upgraded ownCloud and now get the following message:

Can't write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.

I have changed owner and permissions and it still do not work. I have done it this way:

chown -R http:http owncloud/
chmod -R 770 owncloud/

Everything worked fine before the upgrade.

Last edited by havkajak (2014-02-01 16:08:46)

Offline

#7 2014-02-01 15:52:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Owncloud: "Can't write into config directory"

Offline

#8 2014-02-01 16:08:18

havkajak
Member
Registered: 2013-11-17
Posts: 5

Re: Owncloud: "Can't write into config directory"

Thank you! While i do not find the solution to be a very nice one, it at least works.

Offline

#9 2014-02-01 18:41:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,196

Re: Owncloud: "Can't write into config directory"

Merging thread "[Solved] ownCloud cant write to config directory after upgrade"


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2014-08-26 19:35:12

jaltier
Member
Registered: 2014-08-26
Posts: 1

Re: Owncloud: "Can't write into config directory"

What is the group name for your config.php?
Had the same problem and then changed the file permissions to 660 and group to www-data

sudo chmod 660 config.php

sudo chgrp www-data config.php

sudo service apache2 restart

Offline

#11 2014-10-05 16:29:55

jellysheep
Member
Registered: 2012-11-13
Posts: 6

Re: Owncloud: "Can't write into config directory"

There seems to be a solution to the problem described here, which works on 7.0.2 on armv5:
As /usr/share/webapps/owncloud/config links to /etc/webapps/owncloud/config, you have to add /etc/webapps/owncloud/config or any parent folder to open_basedir in /etc/php/php.ini, e.g.:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/

Last edited by jellysheep (2014-10-05 19:57:55)

Offline

Board footer

Powered by FluxBB