Last active
March 31, 2021 15:44
-
-
Save felipsmartins/639e5b32907340c415a2e9a4e83e29d6 to your computer and use it in GitHub Desktop.
PHP 5.5 compile, PHP55 compiling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compilado no debian bullseye (testing) | |
export PHP_SOURCE_DIR=~/Downloads/php-5.5.30 | |
export OPENSSL_PREFIX_DIR=/opt | |
# se não der pra usar o openssl dev (libssl?) do OS, baixar os fontes | |
wget https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2s.tar.gz | |
cd ./openssl-1.0.2s | |
./config --prefix=$OPENSSL_PREFIX_DIR --openssldir=$OPENSSL_PREFIX_DIR/openssl | |
# PHP install | |
# =========== | |
# talvez seja necessário alterar as env vars a seguir: | |
export PATH=/opt/bin:$PATH | |
export LD_RUN_PATH=/opt/lib | |
export LD_LIBRARY_PATH=/opt/lib | |
# cd php-5.5-source | |
cd $PHP_SOURCE_DIR | |
# opcional phpize (caso já tenha uma instalação prévia): | |
cd ext/openssl | |
phpize | |
cd ../.. | |
./configure --enable-mbstring --enable-mbregex --with-mysql --enable-pdo --with-pdo-mysql --enable-bcmath --with-iconv \ | |
--with-pear=/usr/share/php5 --prefix=/usr/share/php5 --datadir=/usr/share/php5 --with-curl \ | |
--with-openssl=$OPENSSL_PREFIX_DIR | |
make | |
sudo make install | |
# sobre xdebug, ver: | |
# https://gist.github.com/felipsmartins/03e3d6b67980ea3d4a6de6cf94a671aa | |
# $ php -i | grep ssl | |
# Configure Command => './configure' '--enable-mbstring' '--enable-mbregex' '--with-mysql' '--enable-pdo' '--with-pdo-mysql' '--enable-bcmath' '--with-iconv' '--with-pear=/usr/share/php5' '--prefix=/usr/share/php5' '--datadir=/usr/share/php5' '--with-curl' '--with-openssl=/opt' | |
# Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls | |
# openssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment