I use apache + php7 + postgres on Ubuntu and it works fine.
But now I wanted to do the installation by hand in Windows 8.1 and found a problem:
I installed Apache 2.4, PHP 7.1, and Postgres.
Apache worked fine, but when I test my project it generates the following error:
Error: could not find driver Connection does not exist!
At the beginning of my httpd.conf
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html
LoadModule php7_module "c:/php711/php7apache2_4.dll"
PHPIniDir "c:/php711"
In my php.ini
are uncommented:
extension=php_openssl.dll
extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
I do not know if this image helps, but in phpinfo()
it returns this!