Can't connect to the database server during the installation: Laravel - PDOException - Could not find driver

Issue

During the installation process you can get the error below:

Can't connect to the database server. ERROR: could not find driver

or 

could not find driver

Explanation

This error means that the PDO driver cannot find by the Laravel framework.

Solution

You should install PDO on your server. Edit your php.ini (look at your phpinfo(), "Loaded Configuration File" line, to find the php.ini file path). Find and uncomment the following line (remove the ; character):

;extension=pdo_mysql.so

Then, restart your Apache server. For more information, please read the documentation.

If the issue persists you have to contact your hosting provider for more information and to get a suitable help about it.