php - Laravel 5: Artisan throw PDOException could not find driver -


i've found other question none seems solve problem. in case occurs on artisan command, if type "php artisan" output [pdoexception] not find driver.

i'm running laravel 5 on ubuntu 14.04 lts, lemp stack (php 5.6 fpm, mysql, nginx). in config/database.php default driver set mysql.

i've checked output of php --ini, seems load configuration files:

configuration file (php.ini) path: /etc/php5/cli loaded configuration file:         /etc/php5/cli/php.ini scan additional .ini files in: /etc/php5/cli/conf.d additional .ini files parsed:      /etc/php5/cli/conf.d/05-opcache.ini, /etc/php5/cli/conf.d/10-pdo.ini, /etc/php5/cli/conf.d/20-gd.ini, /etc/php5/cli/conf.d/20-json.ini, /etc/php5/cli/conf.d/20-mcrypt.ini, /etc/php5/cli/conf.d/20-mysql.ini, /etc/php5/cli/conf.d/20-mysqli.ini, /etc/php5/cli/conf.d/20-pdo_mysql.ini, /etc/php5/cli/conf.d/20-readline.ini 

if open /etc/php5/cli/conf.d/20-pdo_mysql.ini see:

; configuration php mysql module ; priority=20 extension=pdo_mysql.so 

and content of /etc/php5/cli/conf.d/10-pdo.ini is:

; configuration php pdo module ; priority=10 extension=pdo.so 

inside /etc/php5/cli/conf.d see pdo ini files symlinked this:

10-pdo.ini -> ../../mods-available/pdo.ini 20-mysql.ini -> ../../mods-available/mysql.ini 20-pdo_mysql.ini -> ../../mods-available/pdo_mysql.ini 

the symlink match base directory /etc/php5/mods-available contains ini files:

pdo.ini pdo_mysql.ini 

that's all. if experienced this, appreciated. thanks!

so, after many attempts find out how fix it: needed install php5-sybase package. after artisan works perfectly!

i guess on homestead it's installed, unluckily needed configure bare-bone iso on vmware workstation.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -