XAMPP & PostgreSQL: problem with LIBPQ.dll


Trabla: want to enable postgresql support in XAMPP server, get error messages:


Error message No1:
The program can't start because LIBPQ.dll is missing from your computer. Try reinstall the program to fix this problem.




XAMPP & PostgreSQL: problem with LIBPQ.dll - codingtrabla tutorials screenshot 1

or

Error message No2:
PHP Startup: Unable to load dynamic library
'C:\xampp\php\ext\php_pdo_pgsql.dll' - The specified module could not be found.

XAMPP & PostgreSQL: problem with LIBPQ.dll - codingtrabla tutorials screenshot 2

------------------------------------------------------------------------------------

Solving:

------------------------------------------------------------------------------------
1. Update php.ini file, located C:\xampp\php\php.ini

remove ";"
;extension=php_pdo_pgsql.dll   -> extension=php_pdo_pgsql.dll    

;extension=php_pgsql.dll -> extension=php_pgsql.dll
------------------------------------------------------------------------------------
2.  Copy file  dll
C:\xampp\php\libpq.dll
to
C:\xampp\apache\bin
------------------------------------------------------------------------------------
3. Restart Apache in XAMPP
------------------------------------------------------------------------------------











No comments:

Post a Comment