windows下PHP不能開啟pgsql擴充的解決方案,phppgsql

來源:互聯網
上載者:User

windows下PHP不能開啟pgsql擴充的解決方案,phppgsql

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


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.