You are not logged in.
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
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
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
Offline
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
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
Have you read https://bbs.archlinux.org/viewtopic.php?id=176382 ?
Offline
Thank you! While i do not find the solution to be a very nice one, it at least works.
Offline
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
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
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