Starting with PHP 7, on Ubuntu (i.e., 16+), you can run:
`sudo apt-get install php-pgsql`
PostgreSQLサポートを利用可能とするには、PHPコンパイル時に
--with-pgsql[=DIR]
を指定することが必要です。DIR
は
PostgreSQL のインストールディレクトリで、デフォルトは
/usr/local/pgsql です。
共有オブジェクトモジュールが利用可能な場合、php.ini の
extension ディレクティブ
または dl() 関数によりPostgreSQLモジュール
をロードすることが可能です。
Starting with PHP 7, on Ubuntu (i.e., 16+), you can run:
`sudo apt-get install php-pgsql`
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"
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.
Cheers,
Serjik