[英]Php can't find PostgreSQL library allthough it exists in the specified folder
I try to install postgresql server in combination with Xampp's components. 我尝试与Xampp的组件一起安装postgresql服务器。
First i installed PostgreSQL with his installer. 首先我用他的安装程序安装了PostgreSQL。
Then i've changed in the php.ini 然后我改变了php.ini
extension=php_pgsql.dll 延长= php_pgsql.dll
as next i wanted to restart my apache server but i get the error: 接下来我想重新启动我的apache服务器,但是我得到了错误:
PHP Startup: Unable to load dynamic library "C:\\xampp\\php\\ext\\php_pgsql.dll". PHP启动:无法加载动态库“C:\\ xampp \\ php \\ ext \\ php_pgsql.dll”。 The specified module couldn't be found. 找不到指定的模块。
But there exists the file C:\\xampp\\php\\ext\\php_pgsql.dll in the right location... 但是在正确的位置存在文件C:\\ xampp \\ php \\ ext \\ php_pgsql.dll ...
Any ideas, how i can fix this problem? 任何想法,我如何解决这个问题?
Thank you very much 非常感谢你
On a Windows server, configured with Apache, adding the following line to httpd.conf to load libpq.dll can solve the problem: 在配置了Apache的Windows服务器上,将以下行添加到httpd.conf以加载libpq.dll可以解决问题:
LoadFile "C:/Program Files/PostgreSQL/8.4/bin/libpq.dll" LoadFile“C:/ Program Files / PostgreSQL / 8.4 / bin / libpq.dll”
使用适当版本的php_pgsql.dll
- 为您当前的php解析器编译的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.