Can't create or write into the data directory

在web端创建管理员账号和密码时提示can’t create or write into the data directory

Hello, do you check the owncloud.log? the rights of the directory ?

I can’t find the owncloud.log

Could you give us the config.php ?

I found this on the owncloud central : Can't create or write into the data directory / Can't write into config directory! / Data directory (/mnt/data) is invalid

现在的故障是这样的!!

daemon is not the good owner for me. What is the right for the data folder ? You have the manual with a script to use for rights : ownCloud Documentation Overview

chown -R www-data:www-data /usr/local/apache2/htdocs/owncloud/data

or

chown -R apache:apache /usr/local/apache2/htdocs/owncloud/data

this should fix the problem

I’ve made this kind of modification, but it doesn’t solve the problem

Hello, I sea owncloud.log, could you show us ?

You have the same error message ?

Thank you very much for your answer. I’ve found the reason to solve the problem

need to change the httpd.conf file

1 Like

Cool ! Have a nice day!