title: How to installPostgreSQL client library for PHP on Windows with SSL enabled
body: <p>I can't connect from my <strong>local PHP</strong> dev server to my <strong>PostgreSQL</strong> DB on <strong>Heroku</strong>. This is because Heroku requires me to make that connection using <strong>SSL</strong>. But the standard Windows PHP 5.5.12 PostgreSQL client library seems to not support SSL. I get the following error:</p>
  
  <blockquote>
    <p>pg_pconnect(): Unable to connect to PostgreSQL server: sslmode value
    &quot;require&quot; invalid when SSL support is not compiled in</p>
  </blockquote>
  
  <p>I tried copying over the libpg.dll from my Postgres installation, to no avail.</p>
  
  <p>I ran <em>phpinfo</em>() and it said under pgsql: <strong>SSL disabled</strong>.</p>
  
  <p>I installed <a href="https://bitnami.com/stack/wapp" rel="nofollow noreferrer">BitNami's WAPP Stack</a>. With it <em>phpinfo</em>() is listing under pgsql: <strong>SSL enabled</strong>. But I still get the same error.</p>
  
  <p>Can anyone tell me how to get a PostgreSQL client library for PHP on Windows with SSL enabled?</p>
  
  <p><br></p>
  
  <p>Similar questions without satisfying answers:</p>
  
  <p><a href="https://stackoverflow.com/questions/12393269/heroku-postgres-connection-from-localhost-php-application">Heroku Postgres Connection from localhost PHP application</a></p>
  
  <p><a href="https://stackoverflow.com/questions/16351253/unable-to-connect-to-postgresql-server">Unable to connect to PostgreSQL server</a></p>
  
  <p><br></p>
  
  <p>Any help is very appreciated,
  Daniel</p>