Server error. Can't figure out why

I previously installed wordpress on my server and now it doesnt let me install nextcloud. It returns with server error.
Here is the latest log:
2018/07/27 17:59:25 [error] 6006#6006: *1 FastCGI sent in stderr: “PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/drive/data/nextcloud.log in /var/www/html/drive/lib/private/Log/File.php on line 136
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:”–",“app”:“PHP”,“method”:“GET”,“url”:"/drive/",“message”:“touch(): Unable to create file /var/www/html/drive/config/config.php because Permission denied at /var/www/html/drive/lib/private/Config.php#240”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}
PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/drive/data/nextcloud.log in /var/www/html/drive/lib/private/Log/File.php on line 136
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/drive/",“message”:“fopen(/var/www/html/drive/config/config.php): failed to open stream: No such file or directory at /var/www/html/drive/lib/private/Config.php#241”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}
PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/drive/data/nextcloud.log in /var/www/html/drive/lib/private/Log/File.php on line 136
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/drive/",“message”:“chmod(): No such file or directory at /var/www/html/drive/lib/private/Config.php#244”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}
PHP message: PHP Warning:
2018/07/27 17:59:25 [error] 6006#6006: *1 FastCGI sent in stderr: “g/File.php#136”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/drive/",“message”:“Exception: {“Exception”:“Doctrine\\DBAL\\DBALException”,“Message”:“Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file”,“Code”:0,“Trace”:”#0 \/var\/www\/html\/drive\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(992): OC\\DB\\Connection->connect()\n#1 \/var\/www\/html\/drive\/lib\/private\/DB\/Connection.php(216): Doctrine\\DBAL\\Connection->executeUpdate(‘PRAGMA read_unc…’, Array, Array)\n#2 \/var\/www\/html\/drive\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(623): OC\\DB\\Connection->executeUpdate(‘PRAGMA read_unc…’)\n#3 \/var\/www\/html\/drive\/lib\/private\/DB\/Connection.php(151): Doctrine\\DBAL\\Conne" while reading response header from upstream, client: 119.149.195.160, server: example.com, request: “GET /drive/ HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.2-fpm.sock:”, host: “example.com
2018/07/27 17:59:25 [error] 6006#6006: *1 FastCGI sent in stderr: “PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/drive/data/nextcloud.log in /var/www/html/drive/lib/private/Log/File.php on line 136
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:”–",“app”:“PHP”,“method”:“GET”,“url”:"/drive/",“message”:“fileperms(): stat failed for /var/www/html/drive/data/nextcloud.log at /var/www/html/drive/lib/private/Log/File.php#136”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}
PHP message: {“reqId”:“1VW11P0vbeGA0AJOLfuD”,“level”:3,“time”:“2018-07-27T08:59:25+00:00”,“remoteAddr”:“119.149.195.160”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/drive/",“message”:“chmod(): No such file or directory at /var/www/html/drive/lib/private/Log/File.php#137”,“userAgent”:“Mozilla/5.0 (Linux; Android 8.0.0; SM-G930L Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36”,“version”:""}" while reading upstream, client: 119.149.195.160, server: example.com, request: “GET /drive/ HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.2-fpm.sock:”, host: “example.com

The cant upload configurationfile. Too big.

Done. Finished. Permission problem

how do you fix it?
i got some problem, I already try chown -R apache /var/www/nextcloud but I still got the problem

I have the same problem and it would be great if the solution could be shared.