Skip to content

Commit

Permalink
Update the PHP installer to modify the custom openssl installs to poi…
Browse files Browse the repository at this point in the history
…nt to the system certs and private directories.
  • Loading branch information
patrickcarlohickman committed Feb 2, 2024
1 parent 44d4e9b commit 0d01d72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 8 additions & 0 deletions setup/installers/install-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 0 additions & 12 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====================================
Expand Down

0 comments on commit 0d01d72

Please sign in to comment.