Owncloud Pdoexception Could Not Find Driver
OwnCloud Forums. A board to discuss all kind of ownCloud topics. Skip to content. Search Advanced search. //central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today. An exception occured in driver: could not find driver by joerghildering » Sun Feb 14, 2016 12:33.
So i always get a pdo exception when i try to create my db in the constructor of my Mapper class.on this line:
this is my dsn creation:
and finaly my constructor:
2 Answers
The PHP contains a dll required by pgsql and pgsql_pdo driver libpq.dll...Add PHP binary path to system path or copy de DLL into Windowssystem32. On linux dependency are installed automatically.
I found article somewhere, works for me. Assuming you have installed PostgreSQL and your WAMP installation is on c:wamp
, you will need to copy:
c:wampbinphpphp5.3.9libpq.dll
to c:wampbinapacheApache2.2.11bin
.
Make sure you also have the following files:
C:wampbinphpphp5.3.9extphp_pdo_pgsql.dll
andC:wampbinphpphp5.3.9extphp_pgsql.dll
Also, make sure you have enabled the above 2 files as extensions, either via the WAMP menu (click on WAMP icon on taskbar: PHP > PHP extensions
, find the above 2 and 'check' them).
Please note that php5.3.9
and Apache2.2.11
refer to my specific PHP and Apache versions.
Adjust those to suit your installation.
dKen