Homestead Laravel problem with Drive Postgres

2

Has anyone here had this one with Homestead and postgreSql? My application is giving this error.

PDOException could not find driver

I've already looked in some places but nothing ...

Thanks for the help!

    
asked by anonymous 27.02.2015 / 00:58

1 answer

1

This error occurs because the extension was not found or it is disabled.

To activate it go to:

/etc/php5/fpm/

Open the php.ini file, with editor of your choice.

Look for the line: extension = php_pdo_pgsql.dll, if it is commented out, ie ";" at the beginning, remove it and restart the service:

service php5-fpm restart

If you are using apache perform the same steps, however, in the folder:

/etc/php5/apache2

If you do not have the library, run the command:

apt-get install php5-pgsql

Restart the service.

    
27.02.2015 / 01:14