Updated on 2021-02-18

Nginx

nginx.conf

location ~ \.php$ {
    root           html;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    include        fastcgi.conf;
}

PHP

php.ini

[PHP]
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
extension_dir="ext"
php-cgi -b 127.0.0.1:9000 -c php.ini