📜 ⬆️ ⬇️

PostgreSQL, PHP, Apache, Windows

Faced with the problem of not loading extensions postgres. Unable load dynamic library wrote Apache logs. The problem occurs in php> 5.2.8 apache2.2 postgresql> 8.3.1 The solution was not found immediately, after two or three hours.
here it is ru.php.net/manual/ru/pgsql.setup.php#88042

and all because ru2.php.net/manual/ru/pgsql.setup.php , which pkhpshny balancer throws at me, does not contain this kament. does not like rnet php, then they tssy fly, then infa incomplete, then generally the server is disconnected

ps: since the pgsql.setup section is not immediately googled (in man it is replaced by install), and some people do not like to follow links, I quote that they advised:
in the Apache config in the section that the PHP installer prescribes, you need to add a line to load the client, either postpix
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "PATH_TO \ php \"
Loadfile "PATH_TO \ php \ php5ts.dll"
Loadfile "PATH_TO \ pgsql \ bin \ libpq.dll" # this one
LoadModule php5_module "PATH_TO \ php \ php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

')

Source: https://habr.com/ru/post/57048/


All Articles