Y
Y
Yuri Kovlenko2017-05-12 19:16:36
linux
Yuri Kovlenko, 2017-05-12 19:16:36

Compiling php 7.0.xx using libressl?

Alpine 3.5 comes with LibreSSL by default. Can you please tell me how can I compile php 7.0.xx using libressl instead of openssl?
PS I know that it is possible to install OpenSSL, but I also need curl-dev and postgresql-dev where LibreSSL is required, and co-installation is not possible. Alternatively, you can compile these packages with LibreSSL support, or just install alpine 3.4, but still)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Masterov, 2017-05-12
@BaronAleks

For PHP =< 7.0.15 you can use the --with-openssl.
For PHP >= 7.0.17 use the --with-openssl=/usr.
Next, the configurator will deal with the choice of the SSL library:

OpenSSL support => enabled
OpenSSL Library Version => LibreSSL 2.5.4
OpenSSL Header Version => LibreSSL 2.5.4
Openssl default config => /etc/ssl/openssl.cnf

It's also useful to know that in PHP 7.0 there was no support for the OpenSSL 1.1+ library initially at the code level, but this version limitation appeared explicitly at the configuration level only in 7.0.16. In 7.0.17, such support appeared .
Alpine already had the latest version of the OpenSSL fork (LibreSSL) at that time, which was why there were problems with the 7.0.16 build.
An example of a complete PHP build on Alpine :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question