Topic: PHP7 with OpenSSL?

I am using the PHP 7 packages, and I need the OpenSSL extension.  According to the PHP documentation, the OpenSSL extension must be compiled into PHP itself instead of being added later like other extensions, using

./configure --with-openssl ...

As far as I can tell, PHP in these packages was not compiled that way, and I can't seem to find a package that includes it.  However, this blog post recommends using OpenSSL, but doesn't say how (or if) it can be added.

Does this mean that I need to compile PHP 7 myself in order to get OpenSSL support, and that I can't use the packages?

Re: PHP7 with OpenSSL?

Of course all my build have openssl enabled

$ php --modules
...
opensssl
...
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by kohenkatz 2015-12-16 15:58:22)

Re: PHP7 with OpenSSL?

Thanks for the reply.  It turns out that someone had modified the application user's PATH variable to point to a location with a different install of PHP before it gets to the normal bin directories. Restoring it to what it had been before means it it now using your version, which is working properly with OpenSSL.

Re: PHP7 with OpenSSL?

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi