PHP无法在Windows上加载php_pgsql.dll [英] PHP not loading php_pgsql.dll on Windows

查看:163
本文介绍了PHP无法在Windows上加载php_pgsql.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP 5.2.8拒绝加载php_pgsql.dll,但出现以下错误:

PHP 5.2.8 is refusing to load php_pgsql.dll, with the following error:

警告:PHP启动:无法加载动态库'D:\ PHP \ ext \ php_pgsql.dll'-找不到指定的模块.

Warning: PHP Startup: Unable to load dynamic library 'D:\PHP\ext\php_pgsql.dll' - The specified module could not be found.

在第0行的未知"中

.dll存在于PHP/ext/中.

The .dll exists in PHP/ext/.

以前有人在Windows上的PHP中遇到过此问题吗?

Has anyone else had this problem with PHP on Windows before?

推荐答案

查看PHP PostgreSQL安装页面上的信息:

Check out the info on the PHP PostgreSQL installation page: http://us.php.net/manual/en/pgsql.installation.php

在配置了Apache的Windows服务器上,将以下行添加到httpd.conf中以加载libpq.dll可以节省大量时间:

On a Windows server, configured with Apache, adding the following line to httpd.conf to load libpq.dll can save you a lot of time :

LoadFile "C:/Program Files/PostgreSQL/8.4/bin/libpq.dll"

请注意,您将必须根据已安装的PostgreSQL的安装路径和版本来更改文件夹.另外请注意,不建议将Apache和PostgreSQL在生产环境的同一服务器上使用.

Note that you will have to change your folder accordingly to the installation path and version of PostgreSQL you have installed. Also note that having Apache and PostgreSQL on the same server for production environments is not recommended.

这立即修复了我的设置.

This fixed my setup instantly.

这篇关于PHP无法在Windows上加载php_pgsql.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆