title: Can't connect to Postgresql with PHP
body: <p>I have Apache 2.4, Postgresql 9.3 and PHP 5.5 on Windows Server 2007. I am getting the following error when I try to connect to Postgresql from PHP: <br></p>
  
  <pre><code>PHP Fatal error:  Call to undefined function pg_connect()
  </code></pre>
  
  <p>So far I have done the following: <br>
  Added C:\Program Files\PostgreSQL\9.3\bin to my environment variables <br>
  modified php.ini - I uncommented the folling lines: <br></p>
  
  <pre><code>extension=php_pdo_pgsql.dll
  extension=php_pgsql.dll
  </code></pre>
  
  <p>I tried adding this line to my httpd.conf file: <br></p>
  
  <pre><code>LoadFile "C:/Program Files/PostgreSQL/9.2/bin/libpq.dll"
  </code></pre>
  
  <p>But when I do that I get the following error when I try to restart the server: <br></p>
  
  <pre><code>Syntax error on line 177 of C:/Apache24/conf/httpd.conf:
  Cannot load C:/Program Files/PostgreSQL/9.3/bin/libpq.dll into server: 
  %1 is not a valid Win32 application.
  </code></pre>