Skip to content

Instantly share code, notes, and snippets.

@InFog
Last active May 4, 2023 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InFog/59c99e59c9ab4052f8ad83a55469e89b to your computer and use it in GitHub Desktop.
Save InFog/59c99e59c9ab4052f8ad83a55469e89b to your computer and use it in GitHub Desktop.
# Get openssl-1.1.1 tar gz
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1t/openssl-1.1.1t.tar.gz
./config shared enable-ec_nistp_64_gcc_128 -Wl,-rpath=/usr/local/openssl/lib --prefix=/usr/local/openssl
make -j 4
make test && sudo make install
# Then finally install PHP 7
cd /usr/local/openssl
export PHP_OPENSSL_DIR=yes
export LDFLAGS="-L$(pwd)/lib"
export CPPFLAGS="-I$(pwd)/include"
phpbrew install 7.2 +default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment