Internal Server Error,Need help

Internal Server Error

The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.

Technical details
Remote Address:
Request ID: Ih1+hIdb+240xuh5+TvH

Many times tried.But failed

I would like to install ownCloud in my Docker cloud.
System: Debian 7.8
Linux+Nginx+MariaDB5.5+PHP7+Apache2.4
phpinfo is ok

My server Url is http://disk.lxam.cn

http://disk.lxam.cn/data/owncloud.log

{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"mysql.setup","message":"Specific user creation failed: An exception occurred while executing 'SELECT user FROM mysql.user WHERE user=?' with params [\"oc_lxam\"]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'owncloud'@'localhost' for table 'user'","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"mysql.setup","message":"Database creation failed: An exception occurred while executing 'GRANT ALL PRIVILEGES ON owncloud . * TO 'owncloud'':\n\nSQLSTATE[42000]: Syntax error or access violation: 1410 You are not allowed to create a user with GRANT","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"index","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Message\":\"An exception occurred while executing 'CREATE TABLE oc_addressbooks (id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, principaluri VARCHAR(255) DEFAULT NULL, displayname VARCHAR(255) DEFAULT NULL, uri VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, synctoken INT UNSIGNED DEFAULT 1 NOT NULL, UNIQUE INDEX addressbook_index (principaluri, uri), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB':\n\nSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes\",\"Code\":0,\"Trace\":\"#0 \\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/DBALException.php(116): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Connection.php(945): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), 'CREATE TABLE o...')\\n#2 \\\/home\\\/wwwroot\\\/disk.lxam.cn\\\/lib\\\/private\\\/DB\\\/MDB2SchemaManager.php(168): Doctrine\\\\DBAL\\\\Connection->query('CREATE TABLEo...')\n#3 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/DB\\/MDB2SchemaManager.php(69): OC\\DB\\MDB2SchemaManager->executeSchemaChange(Object(Doctrine\\DBAL\\Schema\\Schema))\n#4 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/legacy\\/db.php(172): OC\\DB\\MDB2SchemaManager->createDbFromStructure('\\/home\\/wwwroot\\/d...')\n#5 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Installer.php(563): OC_DB::createDbFromStructure('\\/home\\/wwwroot\\/d...')\n#6 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Installer.php(539): OC\\Installer::installShippedApp('dav')\n#7 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Setup.php(379): OC\\Installer::installShippedApps()\n#8 \\/home\\/wwwroot\\/disk.lxam.cn\\/core\\/Controller\\/SetupController.php(64): OC\\Setup->install(Array)\n#9 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/base.php(829): OC\\Core\\Controller\\SetupController->run(Array)\n#10 \\/home\\/wwwroot\\/disk.lxam.cn\\/index.php(39): OC::handleRequest()\n#11 {main}\",\"File\":\"\\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/AbstractMySQLDriver.php\",\"Line\":115}","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"scandir() has been disabled for security reasons at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#183","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"Invalid argument supplied for foreach() at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#185","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"scandir() has been disabled for security reasons at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#183","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"Invalid argument supplied for foreach() at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#185","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"scandir() has been disabled for security reasons at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#183","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"Invalid argument supplied for foreach() at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/L10N\/Factory.php#185","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"Ih1+hIdb+240xuh5+TvH","remoteAddr":"10.0.51.200","app":"PHP","message":"chmod(): No such file or directory at \/home\/wwwroot\/disk.lxam.cn\/lib\/private\/Log\/Owncloud.php#114","level":3,"time":"2016-08-01T07:37:56+00:00","method":"POST","url":"\/index.php","user":"--"}

The issues is probably caused by:

A short search on google leads to some information about this:

http://www.2by2host.com/articles/php-errors-faq/disabled_scandir/

WAvY8tyrWj7mzTc3N1DT

{"reqId":"WAvY8tyrWj7mzTc3N1DT","remoteAddr":"10.0.51.200","app":"mysql.setup","message":"Specific user creation failed: An exception occurred while executing 'SELECT user FROM mysql.user WHERE user=?' with params [\"oc_lxam\"]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'owncloud'@'localhost' for table 'user'","level":3,"time":"2016-08-01T08:37:18+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"WAvY8tyrWj7mzTc3N1DT","remoteAddr":"10.0.51.200","app":"mysql.setup","message":"Database creation failed: An exception occurred while executing 'GRANT ALL PRIVILEGES ON owncloud . * TO 'owncloud'':\n\nSQLSTATE[42000]: Syntax error or access violation: 1410 You are not allowed to create a user with GRANT","level":3,"time":"2016-08-01T08:37:18+00:00","method":"POST","url":"\/index.php","user":"--"}
{"reqId":"WAvY8tyrWj7mzTc3N1DT","remoteAddr":"10.0.51.200","app":"index","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Message\":\"An exception occurred while executing 'CREATE TABLE oc_addressbooks (id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL, principaluri VARCHAR(255) DEFAULT NULL, displayname VARCHAR(255) DEFAULT NULL, uri VARCHAR(255) DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, synctoken INT UNSIGNED DEFAULT 1 NOT NULL, UNIQUE INDEX addressbook_index (principaluri, uri), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB':\n\nSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes\",\"Code\":0,\"Trace\":\"#0 \\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/DBALException.php(116): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Connection.php(945): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), 'CREATE TABLE o...')\\n#2 \\\/home\\\/wwwroot\\\/disk.lxam.cn\\\/lib\\\/private\\\/DB\\\/MDB2SchemaManager.php(168): Doctrine\\\\DBAL\\\\Connection->query('CREATE TABLEo...')\n#3 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/DB\\/MDB2SchemaManager.php(69): OC\\DB\\MDB2SchemaManager->executeSchemaChange(Object(Doctrine\\DBAL\\Schema\\Schema))\n#4 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/legacy\\/db.php(172): OC\\DB\\MDB2SchemaManager->createDbFromStructure('\\/home\\/wwwroot\\/d...')\n#5 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Installer.php(563): OC_DB::createDbFromStructure('\\/home\\/wwwroot\\/d...')\n#6 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Installer.php(539): OC\\Installer::installShippedApp('dav')\n#7 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/private\\/Setup.php(379): OC\\Installer::installShippedApps()\n#8 \\/home\\/wwwroot\\/disk.lxam.cn\\/core\\/Controller\\/SetupController.php(64): OC\\Setup->install(Array)\n#9 \\/home\\/wwwroot\\/disk.lxam.cn\\/lib\\/base.php(829): OC\\Core\\Controller\\SetupController->run(Array)\n#10 \\/home\\/wwwroot\\/disk.lxam.cn\\/index.php(39): OC::handleRequest()\n#11 {main}\",\"File\":\"\\/home\\/wwwroot\\/disk.lxam.cn\\/3rdparty\\/doctrine\\/dbal\\/lib\\/Doctrine\\/DBAL\\/Driver\\/AbstractMySQLDriver.php\",\"Line\":115}","level":3,"time":"2016-08-01T08:37:18+00:00","method":"POST","url":"\/index.php","user":"--"}

I have ever enable the function 'scandir()' but failed....
http://59.111.96.77/p.php
http://59.111.96.77/phpinfo.php
disable_functions: passthru exec system chroot chgrp
chown shell_exec proc_open proc_get_status popen
ini_alter ini_restore dl openlog syslog
readlink symlink popepassthru stream_socket_server

Try to install ownCloud 9.1 as this might contain a fix for this:

I had the same issue. It turned out that I was low on disk space. So deleted trash and version history and I could log in again.

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Technical details
Remote Address:
Request ID: leQLtVh2bFHAW1f4ibDz

Fallowing info in owncloud.log

{"reqId":"RF1Sgy\/wK9lOTbRtDgpm","remoteAddr":"39.55.97.77","app":"index","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"The requested uri(\\/apps\\/files\\/index.php\\/heartbeat) cannot be processed by the script '\\/owncloud\\/index.php')\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/owncloud\\/lib\\/base.php(837): OC\\AppFramework\\Http\\Request->getRawPathInfo()\n#1 \\/var\\/www\\/owncloud\\/index.php(39): OC::handleRequest()\n#2 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/lib\\/private\\/appframework\\/http\\/request.php\",\"Line\":624}","level":3,"time":"2016-09-12T14:17:32+00:00","method":"POST","url":"\/apps\/files\/index.php\/heartbeat","user":"admin"}

Create a new thread in the oC category and make sure that you're filling out the shown template.