Skip to content

Instantly share code, notes, and snippets.

@wavedocs
Last active September 23, 2016 20:50
Show Gist options
  • Save wavedocs/867d0237233df7ef18ef to your computer and use it in GitHub Desktop.
Save wavedocs/867d0237233df7ef18ef to your computer and use it in GitHub Desktop.
Configure php 5.5.9
sudo apt-get update && sudo apt-get install build-essential libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev libxml2-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6-dev libkrb5-dev libpq-dev libxml2-dev libxslt1-dev

wget http://de1.php.net/get/php-5.5.9.tar.bz2/from/this/mirror -O php-5.5.9.tar.bz2
tar xjf php-5.5.9.tar.bz2

./configure --prefix=/opt/php5.5.9 --with-config-file-path=/etc/php5.5.9/apache2 --with-config-file-scan-dir=/etc/php5.5.9/apache2/conf.d --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl=/usr --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --with-pear --enable-dbase
make
checkinstall --pkgname php-5.5.9 --pkgversion 5.5.9 --install

wget http://de1.php.net/get/php-7.0.11.tar.bz2/from/this/mirror -O php-7.0.11.tar.bz2
tar xjf php-7.0.11.tar.bz2
./configure --prefix=/opt/php/7 --with-config-file-path=/etc/php/7 --with-config-file-scan-dir=/etc/php/7/conf.d --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl=/usr --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --with-pear --enable-dbase --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data 
make
checkinstall --pkgname php-7.0.11 --pkgversion 7.0.11 --install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment