H
H
HeartOfProgrammer2016-07-01 17:30:54
ubuntu
HeartOfProgrammer, 2016-07-01 17:30:54

What causes the could not find driver PDOException error in laravel 5.1?

Installed ubuntu 16.04 php5.6 mysql and apache2. Uploaded my project on laravel 5.1.
I launch the local host with the php artisan serve command, when opening this address localhost: 8000 gives the following
cc6ec433480f4aa8953370ec4b48ad85.png
error
.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_exif.dll      ; Must be after mbstring as it depends on it
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed. 
; See http://www.php.net/manual/en/snmp.installation.php 
;extension=php_snmp.dll

;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
extension=php_xsl.dll

I forgot to say, after opening the php extensions, it also displays in the terminal this pastebin.com/MB6M54Zt
like "Unable to load dynamic library".
It still gives the same error. What did you do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shaqster, 2016-07-02
@shaqster

You edit php.ini for cli (console), you need to edit php.ini directly for apache. This is first. Secondly, pdo is installed along with mysql, so most likely you have not installed something correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question