Writing to the "config" directory is not possible

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1. Reset root password on Centos7
2. Reboot
3. Access owncloud gui

Expected behaviour
I receive the following message,

Writing to the "config" directory is not possible

This can usually be fixed by giving the web server write access to the configuration directory

Actual behaviour
I checked the config directory ownership and apache is the owner and group owner

Server configuration
Operating system: CentOS 7
Web server: Apache
Database: MySQL
PHP version: 5.6.30
ownCloud version (see ownCloud admin page): 10
Updated from an older ownCloud or fresh install: fresh install
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): nothing special

Ok, problem solved by setting the selinux contexts again.

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/assets(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/.htaccess'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/.user.ini'

restorecon -Rv '/var/www/html/owncloud/'