Skip to content

Instantly share code, notes, and snippets.

@divinity76
Created November 2, 2021 16:24
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 divinity76/538e1f510704f15f5488a8c3c0518e37 to your computer and use it in GitHub Desktop.
Save divinity76/538e1f510704f15f5488a8c3c0518e37 to your computer and use it in GitHub Desktop.
compile php
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