diff --git a/setup/installers/install-php.sh b/setup/installers/install-php.sh index 0f44723..af79417 100755 --- a/setup/installers/install-php.sh +++ b/setup/installers/install-php.sh @@ -169,6 +169,14 @@ if version_compare "${PHP_VERSION_COMPARE}" "lt" "8.1.0"; then cd - rm -rf "${OPENSSL_TMP}" + # Update the custom openssl version to link to the system "certs" folder. + rmdir "${OPENSSL_PREFIX}/certs/" + ln -s /etc/ssl/certs/ "${OPENSSL_PREFIX}/certs" + + # Update the custom openssl version to link to the system "private" folder. + rmdir "${OPENSSL_PREFIX}/private/" + ln -s /etc/ssl/private/ "${OPENSSL_PREFIX}/private" + # Add a new linker config with the new openssl lib directory. Without # this, the new openssl executable can't find the shared libraries. cat << EOF > "/etc/ld.so.conf.d/openssl-${OPENSSL_VERSION_INSTALL}.conf" diff --git a/todo.txt b/todo.txt index d2287ee..04a4f00 100644 --- a/todo.txt +++ b/todo.txt @@ -63,18 +63,6 @@ sudo -i phpenv pecl imagick -a ===================================== ===================================== -===================================== -php - openssl -===================================== -# setup new custom openssl installs to point to system certs -cd /opt/openssl-1.1.1s/ -rmdir certs/ -ln -s /etc/ssl/certs/ certs -rmdir private/ -ln -s /etc/ssl/private/ private -===================================== -===================================== - ===================================== system - curl =====================================