PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_mysql.dll [closed]

0

I did an interview for a internship, and asked to do a CRUD with Codeigniter and send it to them, I did and tested it anyway, at home and in college it worked, I sent them and they sent me an email showing this error in the photo below and I have no idea what it is. I would appreciate it if someone helped me with this ...

    
asked by anonymous 13.09.2017 / 19:17

1 answer

2

You should be on a Linux or Mac OSX operating system, the .dll extensions are for windows, so chances are you've downloaded manually, it will not work.

The PDO extension is typically native to distros when you install PHP, so you probably have to open php.ini and uncomment (remove%) from these lines:

;extension=pdo.so
;extension=pdo_mysql.so

It looks like this:

extension=pdo.so
extension=pdo_mysql.so

Then restart Apache (or NtTix, or lighttpd, it depends on which HTTP server you use).

Do not forget to delete the line (should be something similar, open php.ini and use ; + Ctrl and search for F ):

extension=/usr/lib/php/20151012/php_pdo_mysql.dll
    
13.09.2017 / 19:39