Home  >  Article  >  Backend Development  >  windows下PHP不能开启pgsql扩展的解决方法

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

WBOY
WBOYOriginal
2016-06-23 13:33:351158browse

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:以上可不分先后,前三项配置完后即可!


Statement:
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