Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

[BUG] Hidden requirement - mysqli extension ? #67

Open
benhaynes opened this issue Oct 25, 2018 · 0 comments
Open

[BUG] Hidden requirement - mysqli extension ? #67

benhaynes opened this issue Oct 25, 2018 · 0 comments
Labels

Comments

@benhaynes
Copy link
Member

From directus created by lk77 : directus/directus#2182

Version Info

  • Directus version and branch (Or commit hash):6.4.9
  • PHP version: 7.2.7
  • MySQL version: 5.7
  • Web server: (Ex. Apache, nginx or IIS?) php built-in dev server
  • OS name and version: docker image runing on ubuntu 16.04 https://hub.docker.com/_/php/

Hello,

when trying to install directus on docker, via cli or web

I have an exception indicating that mysqli is missing,

but requirements are:

NGINX or Apache Server, MySQL 5.2+, PHP 5.6+ (curl, gd, finfo, pdo_mysql)

so i don't understand why, mysqli should not be used.

Stack Trace :

# php bin/directus install:database Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/vendor/directus/migrations/lib/Ruckusing/Adapter/MySQL/MySQLBase.php:1296 Stack trace: #0 /var/www/html/vendor/directus/migrations/lib/Ruckusing/Adapter/MySQL/MySQLBase.php(1270): Ruckusing\Adapter\MySQL\MySQLBase->db_connect(Array) #1 /var/www/html/vendor/directus/migrations/lib/Ruckusing/Adapter/MySQL/MySQLBase.php(81): Ruckusing\Adapter\MySQL\MySQLBase->connect(Array) #2 /var/www/html/vendor/directus/migrations/lib/Ruckusing/FrameworkAbstract.php(233): Ruckusing\Adapter\MySQL\MySQLBase->__construct(Array, Object(Ruckusing\Util\Logger), Array) #3 /var/www/html/vendor/directus/migrations/lib/Ruckusing/FrameworkAbstract.php(121): Ruckusing\FrameworkAbstract->initialize_db() #4 /var/www/html/api/core/Directus/Util/Installation/InstallerUtils.php(135): Ruckusing\FrameworkAbstract->__construct(Array) #5 /var/www/html/api/core/Directus/Console/Modules/InstallModule.php(148): Directus\Util\Installation\InstallerUtils::createTables('/var/www/html') #6 /var/w in /var/www/html/vendor/directus/migrations/lib/Ruckusing/Adapter/MySQL/MySQLBase.php on line 1296

i've installed mysqli as a workaround, but it seems odd to me.

thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant