Created
November 2, 2021 16:24
-
-
Save divinity76/538e1f510704f15f5488a8c3c0518e37 to your computer and use it in GitHub Desktop.
compile php
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
yum install autoconf bison re2c libxml2 gcc && \ | |
rm -rf php-src && \ | |
git clone -b 'PHP-7.4' --depth 1 https://github.com/php/php-src.git && \ | |
cd 'php-src' && \ | |
./buildconf && \ | |
./configure --disable-all --disable-cgi --enable-cli && \ | |
make clean && \ | |
make -j $(nproc) && \ | |
rm -rfv ../php && \ | |
cp -v ./sapi/cli/php ../php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment