No database drivers (sqlite, mysql, or postgresql) installed

installation
9.1.x
help

#1

Hi everyone,

I have am trying to get owncloud 9.1.1 working and when I install it and connect to the initial screen, it tells me that there are no database drivers available.

My php.ini file has the following settings:
extension_dir = "/opt/mystuff/php/src/modules"
extension=/opt/mystuff/php/src/modules/curl.so
extension=/opt/mystuff/php/src/modules/gd.so
extension=/opt/mystuff/php/src/modules/mysql.so
extension=/opt/mystuff/php/src/modules/mbstring.so

I'm not getting complaints about curl, gd or mbstring, but it doesn't like mysql for some reason.

I have other php apps that connect to the same mysql server, using the same mysql binaries on this server without issue, so this one has me stumped.

Steps to reproduce
1. Untar owncloud 9.1.1
2. Point web server to owncloud directory
3. Connect via browser and the first screen shows the error.

Expected behaviour
Owncloud should continue to it's setup phase and recognize mysql is installed and available.

Actual behaviour
No database drivers (sqlite, mysql, or postgresql) installed.

Server configuration
Operating system: Centos
Web server: apache 2.4.23
Database: mysql 5.7.11
PHP version: 5.6.26
ownCloud version (see ownCloud admin page): 9.1.1
Updated from an older ownCloud or fresh install: fresh
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):
Nothing special that I can think of.

ownCloud log (data/owncloud.log)
There is no data directory created at this point in the install/setup.


#2

Hi,

AFAIK ownCloud needs the pdo_mysql module. The check for the correct database drivers are done with native PHP methods so your environment is indeed missing the correct ones.


#3

Looks like that was the problem. Thanks for your help!


#4

You're welcome. There is a list of all PHP modules including this pdo_mysql available here:

https://doc.owncloud.org/server/9.1/admin_manual/installation/source_installation.html#prerequisites