Skip to content

Instantly share code, notes, and snippets.

@nkarpeev
Last active August 23, 2018 14:53
Show Gist options
  • Save nkarpeev/5d7f4e7d577bfc558864f372c915bc78 to your computer and use it in GitHub Desktop.
Save nkarpeev/5d7f4e7d577bfc558864f372c915bc78 to your computer and use it in GitHub Desktop.
make php 7.2 from source
tar xzf php-7.2.6.tar.gz
apt-get install re2c
apt-get install flex
./buildconf --force
apt-get install git gcc gcc-c++ libxml2-devel pkgconfig
apt-get install openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel libXpm-devel
apt-get install gmp-devel libmcrypt-devel
apt-get install recode-devel bison re2c libicu-devel libaspell libaspell-devel aspell
mkdir /usr/local/php7
./configure
--prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
--with-config-file-scan-dir=/usr/local/php7/etc/conf.d
--enable-bcmath
--with-bz2
--with-curl
--enable-filter
--enable-fpm
--with-gd
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--enable-intl
--enable-mbstring
--with-pdo-pgsql
--with-pgsql
--disable-phpdbg
--disable-phpdbg-webhelper
--enable-opcache
--with-openssl
--enable-simplexml
--enable-xmlreader
--enable-xmlwriter
--enable-zip
--with-zlib
--enable-sockets
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
make -j2
make test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment