Skip to content

Instantly share code, notes, and snippets.

@nimboya
Last active December 13, 2017 08:02
Show Gist options
  • Save nimboya/b7bfdb7847c18de59ca77c9b6ee5e9be to your computer and use it in GitHub Desktop.
Save nimboya/b7bfdb7847c18de59ca77c9b6ee5e9be to your computer and use it in GitHub Desktop.
PHP Installation from Source (5.6x)
wget http://uk1.php.net/get/php-5.6.32.tar.gz/from/this/mirror
mv mirror php-5.6.32.tar.gz
tar -xvf php-5.6.32.tar.gz
cd php-5.6.32
apt-get install build-essential # Debian
yum groupinstall 'Development Tools' # Readhat, CentOS
./configure '--enable-fpm' '--with-pdo-sqlite' '--with-mysql' '--with-mysqli' '--enable-bcmath' '--with-curl' '--with-pdo-mysql' '--enable-ftp''--with-xml' '--with-gd' '--with-bz2' '--with-zlib' '--with-libdir=lib64' '--with-kerberos' '--with-openssl' '--with-png' '--with-mongo=/usr/local/lib/php/extensions/no-debug-non-zts-20131226' '--enable-mbstring'
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment