Skip to content

Instantly share code, notes, and snippets.

@edgarsandi
Last active December 21, 2015 13:48
Show Gist options
  • Save edgarsandi/6314718 to your computer and use it in GitHub Desktop.
Save edgarsandi/6314718 to your computer and use it in GitHub Desktop.
PHP 5.5.3 compiled with pthread and pcntl
http://docs.moodle.org/22/en/Compiling_PHP_from_source
apt-get install \
libxml2 \
libxml2-dev \
libssl-dev \
pkg-config \
curl \
libcurl4-nss-dev \
enchant \
libenchant-dev \
libjpeg8 \
libjpeg8-dev \
libpng12-0 \
libpng12-dev \
libvpx1 \
libvpx-dev \
libfreetype6 \
libfreetype6-dev \
libt1-5 \
libt1-dev \
libgmp10 \
libgmp-dev \
libicu48 \
libicu-dev \
mcrypt \
libmcrypt4 \
libmcrypt-dev \
libpspell-dev \
libedit2 \
libedit-dev \
libsnmp15 \
libsnmp-dev \
libxslt1.1 \
libxslt1-dev
cd ext
git clone https://github.com/krakjoe/pthreads.git
cd ..
rm configure
./buildconf --force
./configure --with-config-file-path=/etc/php5/apache2 --without-bz2 --with-curl --with-enchant --with-fpm-user=www-data --with-fpm-group=www-data --with-freetype-dir=/usr --with-gettext --with-gd --with-gmp --with-jpeg-dir=/usr --with-kerberos --with-libedit --with-libxml-dir=/usr --with-mysqli --with-mysql --with-mhash --with-openssl --with-openssl --with-pdo-mysql --with-pdo-pgsql --with-pear --with-pgsql --with-png-dir=/usr --with-pspell --with-readline --with-regex=php --with-snmp --with-t1lib --with-vpx-dir=/usr --with-xsl --with-zlib --enable-bcmath --enable-calendar --enable-debug --enable-exif --enable-fpm --enable-ftp --enable-gd-native-ttf --enable-gd-jis-conv --enable-intl --enable-maintainer-zts --enable-mbstring --enable-opcache --enable-pcntl --enable-pthreads=static --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-sockets --enable-zip --enable-zend-signals
make && make test && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment