When in doubt update everything:
sudo apt-get update && sudo apt-get upgrade
After wasting time on nginx configuration, php5-fpm configuration and obviously php ini configuration a simple update and upgrade fixed all my problems.
Hi all, hopefully somebody can help.
I have a new installation of homestead with a laravel 4.2 application making use of postgresql.
The error in the log file when trying to interact with the db is: local.ERROR: exception 'PDOException' with message 'could not find driver' in :
I have tested the following:
<?php
foreach (PDO::getAvailableDrivers() as $driver)
{
echo $driver . '<br />';
}
$dbh = new PDO ('pgsql:host=xxxx;dbname=xxxx', 'xxxx', 'xxxx')
or die ("Error");
try {
$dbh = new PDO('pgsql:host=xxxx;dbname=xxxx', 'xxxx', 'xxxx');
foreach($dbh->query('SELECT * from users') as $row) {
print_r($row);
}
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
which produced the following output:
mysql
pgsql
sqlite
Array ( [id] => 1 .........................................
Thus I have determined the following:
I am at my wits end and would appreciate any help.
When in doubt update everything:
sudo apt-get update && sudo apt-get upgrade
After wasting time on nginx configuration, php5-fpm configuration and obviously php ini configuration a simple update and upgrade fixed all my problems.
Please or to participate in this conversation.