Accessing files after migration nc16

Nextcloud 16.0.0.9
CentOS 7
httpd-2.4.6-89.el7
PHP 7.2.10

config.php
<?php
$CONFIG = array (
  'instanceid' => 'o...0',
  'passwordsalt' => 'Q...O',
  'secret' => 'G...h',
  'trusted_domains' =>
  array (
    0 => '10.0.0.1',
  ),
  'datadirectory' => '/var/nc-data',
  'dbtype' => 'mysql',
  'version' => '16.0.0.9',
  'overwrite.cli.url' => 'https://nextcloud.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nc',
  'dbpassword' => 'password123',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'ncadmin',
  'mail_domain' => 'domain',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'smtp',
  'mail_smtppassword' => '123password',
  'mail_smtphost' => 'smtp.office365.com',
  'mail_smtpport' => '587',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' =>
  array (
    0 => 'tasks',
  ),
  'mysql.utf8mb4' => true,
);

Hi,
I migrated all my files and database from ubuntu to centos.

The problem I cannot find the solution:
It now seems i do not have permissions (www-data -> apache) to view my files.
After I migrated all my file:

chown -R apache:apache /var/nc-data 

When trying to download, open or view file:

nextcloud.log
{"reqId":"XM8@sIiIAK3ypLcE30xfowAAAAY","level":3,"time":"2019-05-05T19:51:13+00:00","remoteAddr":"10.0.0.0","user":"nextripa","app":"PHP","method":"GET","url":"\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","message":"fopen(\/var\/nc-data\/nextripa\/files\/XXX\/XXX\/sxypic.jpg): failed to open stream: Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"Mozilla\/5.0 (Win10) Firefox","version":"16.0.0.9"}
{"reqId":"XM8@sIiIAK3ypLcE30xfowAAAAY","level":4,"time":"2019-05-05T19:51:13+00:00","remoteAddr":"10.0.0.0","user":"nextripa","app":"webdav","method":"GET","url":"\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"http:\/\/10.0.0.1\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpGet"],[{"absoluteUrl":"http:\/\/10.0.0.1\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:GET",[{"absoluteUrl":"http:\/\/10.0.0.1\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"http:\/\/10.0.0.1\/remote.php\/webdav\/XXX\/XXX\/sxypic.jpg?downloadStartSecret=he8i200lcfo","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":383,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Win10) Firefox","version":"16.0.0.9"}

If there is anything missing will add this asap.
BR


logs

ls -al /var/nc-data
drwxrwx---.  9 apache apache    4096 May  5 21:50 .
drwxr-xr-x. 22 root   root      4096 Apr 30 16:33 ..
drwxr-xr-x.  5 apache apache    4096 May  1 18:48 admin
drwxr-xr-x.  9 apache apache    4096 May  1 21:58 appdata_ocs14rqbkrn0
drwxr-xr-x.  3 apache apache    4096 May  1 18:30 files_external
-rw-r-----.  1 apache apache 2480072 May  5 22:13 nextcloud.log
-rw-r--r--.  1 apache apache       0 May  1 21:32 .ocdata
drwxr-xr-x.  7 apache apache    4096 Feb  4 03:12 nextripa
>SHOW GRANTS FOR 'nc'@'localhost';
+-----------------------------------------------------------------------------------------------------------+
| Grants for nc@localhost                                                                                   |
+-----------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'nc'@'localhost' IDENTIFIED BY PASSWORD '*2302302723LADSL23407200LSOBSXY' |
| GRANT ALL PRIVILEGES ON `nextcloud`.* TO 'nc'@'localhost'                                                 |
+-----------------------------------------------------------------------------------------------------------+

Problem here is SELinux. After I disabled it it works immediately.
So I must be missing something. Here what i done so far:

# semanage fcontext -a -t httpd_sys_rw_content_t '/var/nc-data(/.*)?'
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/config(/.*)?'
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/apps(/.*)?'
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/.htaccess'
# semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/nextcloud/.user.ini'
# restorecon -Rv '/var/www/html/nextcloud/'

Yeah :sweat_smile: kinda stupid here:
Having your data in /var/nc-data I also have to:

restorecon -Rv '/var/nc-data'

:bit ashamed:

*Can be closed.