UPDATE: i tried to connect the NextCloud to the Amazon RDS but didn’t work at the beginning i installed the NextCloud following the NextCloud installation but i didn’t install mariadb-server
since i already have my DB which is the RDS, PHP 7 is installed, and php7.0-mysql
is also installed, and mysql pdo is enabled, if i run sudo php --ini
i have
/etc/php/7.0/cli/conf.d/20-pdo_mysql.ini,
and if i run the command: sudo php -m
i have
pdo_mysql
, that means both are enabled
and at my config file i have the following
<?php
'dbtype' => 'mysql',
'dbname' => 'dmname',
'dbhost' => '**********.rds.amazonaws.com:port-number',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '********',
'dbpassword' => '********',
'installed' => false,
i even tried the config
<?php
'dbtype' => 'mysql',
'version' => '12.0.4.3',
'dbname' => 'dbname',
'dbhost' => 'http://**********.rds.amazonaws.com',
'dbport' => 'port-number',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '********',
'dbpassword' => '********',
'installed' => true,
yet i keep getting the exception
{"reqId":"jUI5gpnDa3jRzK9N4crh","level":3,"time":"2018-01-29T12:43:01+00:00","remoteAddr":"194.165.136.114","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php","message":"Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver at \/var\/www\/nextcloud\/lib\/private\/DB\/Connection.php#61","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/63.0.3239.132 Safari\/537.36","version":""}
and i even installed mariaDB, mariadb-server
yet the same problem keeps coming, what could be wrong?