windows下PHP不能开启pgsql扩展的解决方法

WBOY
Release: 2016-06-23 13:33:35
Original
1157 people have browsed it

Tip: 环境 windows8.1 64位 + xampp1.8.1 + postgresql 9.3.6-2

第一步:

php.ini中开启pgsql扩展  extension=php_pgsql.dll (若pdo连接开启extension=php_pdo_pgsql.dll)

第二步:

配置pgsql的bin目录到环境变量


第三步:

将pgsql安装后bin目录下的dll文件拷贝到系统SysWOW64目录下

拷贝文件有:

libeay32.dll
libiconv.dll
libintl.dll
libpq.dll
ssleay32.dll

第四部:

重启apache,看到phpinfo里有pgsql扩展,即成功开启pgsql扩展



Tip:以上可不分先后,前三项配置完后即可!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template