PHP Extensions "pdo_mysql" must be loaded

4.8k views Asked by At

I'm installing Magento 1.x (2014 build), to Apache running PHP 5.6, MYSQL (latest).

I'm receiving the following error when attempting to complete the install PHP Extensions "pdo_mysql" must be loaded.

I've added (the line below, to the end of files):

extension=pdo_mysql.so

to both php.ini files:

/etc/php/5.6/apache2/php.ini

/etc/php/5.6/cli/php.ini

restart apache with sudo systemctl restart apache2

I'm still receiving the error:

PHP Extensions "pdo_mysql" must be loaded.

This is on the "Configuration" page of the Magento install.

I've added (to the end of files):

extension=pdo_mysql.so

to both php.ini files: /etc/php/5.6/apache2/php.ini /etc/php/5.6/cli/php.ini

restart apache with sudo systemctl restart apache2

I'm still receiving the error:

PHP Extensions "pdo_mysql" must be loaded.

1

There are 1 answers

0
Yassine Hassaine On

Try this:

sudo phpenmod pdo_mysql
sudo phpenmod curl

and restart apache