HTTP 500 After Server migration

Hello!

I try to move owncloud to a new Server. Currently its running on a CentOS6 with apache and mariadb and php56.
Owncloud Version:8.2.7
I want to move owncloud to a new Server with CentOS7 also apache and i installed the php56 from remi.
I migrated mariadb (from sqldump) .
I copied the owncloud folder containing (config,themes...) via scp to the new server.
I not yet copied the datafolder (but created a new writeable one and linked it in config.php) because i don't have enough disk space at the moment

I can use php when i use a info.php

I just get a white screen
But the server return Error 500.
I also do not get a owncloud.log file...

I really do not know where to start searching for an error as i get no log file.

Hi,

there must be either a ownlod.log or something else in your webservers or php error log. Without the matching log entries to that 500 error its impossible to help here.

I found this in the ssl_error_log of the webserver:

[Mon Nov 28 08:33:36.427530 2016] [:error] [pid 5226] [client 10.40.12.139:1172] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/owncloud/lib/private/config.php on line 198, referer: https://xxx.xxx/
[Mon Nov 28 08:33:36.428568 2016] [:error] [pid 5226] [client 10.40.12.139:1172] PHP Fatal error: Call to a member function getLogger() on null in /var/www/html/owncloud/lib/public/util.php on line 166, referer: https://xxx.xxx/

I could solve my problem, below the Reason and Solution:

I forgot to set the correct ownership of the webserver in the owncloud direcotry / DocumentRoot

i did #> chown -R apache:apache /var/www/html/owncloud

After that it worked!