[php] Laravel: PDOException: could not find driver

I am developing a website on a server I only have access to MySQL and FTP, so all commands I run are through the b374k php shell . I am experiencing a Laravel problem with SQL driver. I tried switching to file-hosted SQLite (in database/database.sqlite), but the thrown exception is the same as when using MySQL. The input & output of the console is as follows:

   php artisan migrate:refresh --seed
could not find driver (SQL: select * from sqlite_master where type = 'table ' and name = migrations)
could not find driver
could not find driver

The Apache extensions installed on the server are:

/etc/php/5.6/apache2/conf.d/20-ftp.ini, /etc/php/5.6/apache2/conf.d/20-gd.ini, 

What can be the problem and how can I fix it? (I don't have access to root bash)

This question is related to php mysql apache laravel sqlite

The answer is

If you can, run :

composer update

composer require doctrine/dbal

It looks like you have a missing dependency


You might need to comment out the following in your php.ini file.


Taken from this post: Laravel 5 PDOException Could Not Find Driver . I think I had to do something exactly like this when setting up laravel on digital ocean.

Similar questions with php tag:

Similar questions with mysql tag:

Similar questions with apache tag:

Similar questions with laravel tag:

Similar questions with sqlite tag: