You are not logged in.

#1 2017-03-21 13:23:36

benoitldr
Member
From: Grenoble
Registered: 2016-03-03
Posts: 29

[Solved][Nextcloud] Cannot write into config directory!

Hello,

I reinstall my server from scratch and I want to reinstall Nextcloud, the problem is

https://wiki.archlinux.org/index.php/Ne … rectory.21

Even if I executed https://docs.nextcloud.com/server/11/ad … ermissions ocperms.sh

[root@floki nextcloud]# ls -lah
total 172K
drwxr-x--- 15 root http 4.0K Mar 21 14:02 .
drwxr-xr-x  3 root root 4.0K Feb 27 16:25 ..
-rw-r--r--  1 root http 2.6K Feb 27 16:26 .htaccess
-rw-r-----  1 root http  163 Feb 27 16:26 .user.ini
drwxr-x---  2 root http 4.0K Mar 21 14:00 .well-known
drwxr-x--- 29 root http 4.0K Feb 27 16:26 3rdparty
-rw-r-----  1 root http 8.7K Feb 27 16:26 AUTHORS
drwxr-x--- 41 http http 4.0K Feb 27 16:26 apps
lrwxrwxrwx  1 root http   29 Feb 27 16:26 config -> /etc/webapps/nextcloud/config
-rw-r-----  1 root http 3.6K Feb 27 16:25 console.php
drwxr-x--- 16 root http 4.0K Feb 27 16:26 core
-rw-r-----  1 root http 5.3K Feb 27 16:26 cron.php
drwxr-x---  2 http http 4.0K Mar 21 14:02 data
-rw-r-----  1 root http  40K Feb 27 16:26 db_structure.xml
-rw-r-----  1 root http  179 Feb 27 16:26 index.html
-rw-r-----  1 root http 2.5K Feb 27 16:26 index.php
drwxr-x---  3 root http 4.0K Feb 27 16:26 l10n
drwxr-x---  6 root http 4.0K Feb 27 16:26 lib
-rwxr-x--x  1 root http  283 Feb 27 16:26 occ
-rw-r-----  1 root http  969 Mar 21 14:02 ocperms.sh
drwxr-x---  2 root http 4.0K Feb 27 16:25 ocs
drwxr-x---  2 root http 4.0K Feb 27 16:25 ocs-provider
-rw-r-----  1 root http 3.2K Feb 27 16:26 public.php
-rw-r-----  1 root http 5.4K Feb 27 16:26 remote.php
drwxr-x---  4 root http 4.0K Feb 27 16:26 resources
-rw-r-----  1 root http   26 Feb 27 16:26 robots.txt
drwxr-x--- 11 root http 4.0K Feb 27 16:26 settings
-rw-r-----  1 root http 2.1K Feb 27 16:26 status.php
drwxr-x---  3 http http 4.0K Feb 27 16:26 themes
drwxr-x---  2 http http 4.0K Feb 27 16:26 updater
-rw-r-----  1 root http  277 Feb 27 16:25 version.php

Restarting nginx and php-fpm and still

Can't write into config directory!

This can usually be fixed by giving the webserver write access to the config directory.

Thanks you for your help in advance !

Benoit

Last edited by benoitldr (2017-03-21 13:56:24)

Offline

#2 2017-03-21 13:36:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: [Solved][Nextcloud] Cannot write into config directory!

You link to the part of the wiki describing the problem and offering the solution, but everything after that in your post has nothing to do with the solution from the wiki.

What are your open_basedir settings?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-03-21 13:54:40

benoitldr
Member
From: Grenoble
Registered: 2016-03-03
Posts: 29

Re: [Solved][Nextcloud] Cannot write into config directory!

I found the solution I added

/etc/webapps/nextcloud

to

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

Offline

#4 2017-03-21 21:17:35

Taijian
Member
Registered: 2016-04-10
Posts: 74

Re: [Solved][Nextcloud] Cannot write into config directory!

You probably also want to add /dev/urandom to that list, encryption will work better that way...

Offline

Board footer

Powered by FluxBB