Skip to content
Advertisement

PHP postgres enable ssl support

Sorry to get back to you for a question that has been asked many years ago. But I am really stuck with this. I have a legacy application which is very old, running PHP 5.2.17. I followed this guide to setup my docker container https://andrewscaya.net/blog/bringing-php-52-back-life

I have everything setup correctly. I made a downloaded and compiled a PHP installation and configured this with Apache. And its working fine with php.

However, it is essential that I have SSL support (in PHP) for the POSTGRES connection. Which is now default not enabled according to PHPINFO

I have basically the very same problem somebody else had many years ago. SSL support of Pgsql
See: Enable SSL support for pgsql

So from what I am understanding is that I need to recompile PHP again, but with a package called libpg ? Where do I get this package and how can I compile this with the PHP source code?

Advertisement

Answer

After 2 days of searching I finally found LAPP stack which has some older versions available with pgsql ssl support https://community.bitnami.com/t/can-i-get-the-installers-for-wapp-and-lapp-stacks-for-5-4-45/38548

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement