Problem to access

Good morning,
this morning, logging in to my own I encountered this error:
"Cannot write into "config" directory! This can usually be fixed by giving the webserver write access to the config directory".

I have not made any changes to the config file ...
I do not know what to do, does anyone have any idea what to do?
thank you

Hi,

can you do a ls -al on the config folder in your owncloud directory?
This error occurs if your apache user doesnt have write rights on this directory or if your hard disk is mounted read only.

gianluca@Capsule:/var/www/owncloud/config$ ls -al
totale 60
drwxrwxr-x 2 www-data www-data 4096 gen 2 13:24 .
drwxr-xr-x 17 root root 4096 gen 2 13:24 ..
-rw-rw-r-- 1 lightdm lightdm 477 dic 15 14:39 config.php
-rwxrwxr-- 1 www-data www-data 40557 dic 12 18:42 config.sample.php
-rwxrwxr-- 1 www-data www-data 105 dic 14 17:42 disable-updatechecker.config.php
-rwxrwxr-- 1 www-data www-data 225 dic 12 18:42 .htaccess

So your config.php is owned by user and group lightdm.

You run oC on a desktop, dont you? The login manager lightdm is used there.

Just run

chown -R www-data:www-data /var/www/owncloud/config

He tells me: "illegal instruction"

On which system do you run oC? Do you have any more info besides this error message?

the use of ubuntu 16:04 no, I get only this message ...

Where do you get this message? When running chown?

When I connect to the pages I get the message:
"Cannot write into "config" directory! This can usually be fixed by giving the webserver write access to the config directory".
instead giving the command:
chown -R www-data:www-data /var/www/owncloud/config
I get this:"illegal instruction"

Which shell do you use? Did you run this command as root user?

gianluca@Capsule:/var/www/owncloud/config$

this shell

Please run

echo $SHELL

For chown to work, you have to be root-User or have to run it as

sudo chown -R www-data:www-data /var/www/owncloud/config

I would also check all other folders in /var/www/owncloud/config and their owners as this couldve happened to other folders.

solved
I am infinitely grateful, you were afraid of losing permanently all the data :frowning: