Page isn't working http error 500

Hi ,

We have getting the error Page isn't working owncloud is currently unable to handle this request http error 500while opening owncloud in browser.

When we looked in to error.log we got , PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002]No such file or directory in /var/www/html/owncloud/lib/private/DB/Connection.php:58\nStack trace:\n#0 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()\n#1 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n#2 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()\n#3 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(621): Doctrine\DBAL\Connection->getDatabasePlatform()\n#4 /var/www/html/owncloud/lib/private/DB/Connection.php(141): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n#5 /var/www/html/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object( in /var/www/html/owncloud/lib/private/DB/Connection.php on line 58

it says failed to connect to database, please help us to come over this issue.

Is your database running? You can check it with service mysql status

Is the database configured correctlry to db name, host, user and password in your config.php?

Is the DocumentRoot set to /var/www/owncloud or /var/www/owncloud/html ?

  1. it looks like database is not running, when i tried 'service mysql status' it shows failure
    **Active: activating (start-post) (Result: exit-code) since Thu 2017-09-14 17:4
    Process: 29365 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)

  2. cobfiguration is correct

3.document root is /var/www/html/owncloud/

well if your database is not running you can' connect to it :smiley:

Try service mysql restart