Last active
July 29, 2019 16:11
-
-
Save kiler129/72d9a181ac7f5c80b06d437e97fc6cdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Compilation x64 | |
—————————— | |
+++++++++++++++++++++++++ | |
+ 7.3.7 @ Debian/Ubuntu + | |
+++++++++++++++++++++++++ | |
./configure \ | |
--prefix=/usr/local/lsws/lsphp73 \ | |
--enable-cli \ | |
--disable-cgi \ | |
--disable-fpm \ | |
--enable-phpdbg=no \ | |
--with-config-file-path=/usr/local/lsws/lsphp73/etc/php/7.3/litespeed \ | |
--with-config-file-scan-dir=/usr/local/lsws/lsphp73/etc/php/7.3/mods-available \ | |
--build=x86_64-linux-gnu \ | |
--libdir=${prefix}/lib/php \ | |
--libexecdir=${prefix}/lib/php \ | |
--datadir=${prefix}/share/php/7.3 \ | |
--program-suffix=7.3-fix78010 \ | |
--sysconfdir=/etc \ | |
--localstatedir=/var \ | |
--mandir=/usr/share/man \ | |
--with-layout=GNU \ | |
--without-pear \ | |
--disable-dtrace \ | |
--enable-filter \ | |
--with-openssl=yes \ | |
--with-password-argon2=/usr \ | |
--with-pcre-regex=/usr \ | |
--enable-hash \ | |
--with-mhash=/usr \ | |
--enable-libxml \ | |
--enable-session \ | |
--with-sodium \ | |
--with-system-tzdata \ | |
--with-zlib=/usr \ | |
--with-zlib-dir=/usr \ | |
--enable-dtrace \ | |
--enable-pcntl \ | |
--with-libedit \ | |
--with-amqp=shared \ | |
--enable-bcmath \ | |
--enable-ctype \ | |
--with-curl=shared \ | |
--enable-exif \ | |
--with-gd=shared \ | |
--with-gettext=shared \ | |
--with-gmp=shared \ | |
--with-iconv=shared \ | |
--enable-intl \ | |
--enable-pdo=shared \ | |
--with-pdo_pgsql=shared \ | |
--with-pdo_sqlite=shared \ | |
--with-pgsql=shared \ | |
--enable-phar \ | |
--enable-posix \ | |
--with-readline=shared \ | |
--enable-shmop \ | |
--enable-simplexml \ | |
--enable-sockets \ | |
--with-sqlite3=shared \ | |
--enable-xmlreader \ | |
--enable-xmlwriter \ | |
--with-xsl=shared \ | |
--enable-zip \ | |
--enable-dom \ | |
--enable-posix \ | |
--enable-mbstring \ | |
--enable-json | |
apt install \ | |
libpcre2-dev \ | |
libsodium-dev \ | |
build-essential \ | |
autoconf \ | |
libxml2 \ | |
libxml2-dev \ | |
openssl \ | |
libssl-dev \ | |
libcurl4-openssl-dev \ | |
libjpeg-dev \ | |
libpng-dev \ | |
libfreetype6 \ | |
libfreetype6-dev \ | |
libmcrypt-dev \ | |
libmhash-dev \ | |
systemtap-sdt-dev \ | |
pkg-config \ | |
libgmp-dev \ | |
libpq-dev \ | |
libedit-dev \ | |
libargon2-dev \ | |
libxslt \ | |
libzip-dev \ | |
++++++++++++++++ | |
+ OLD DISTROS + | |
++++++++++++++++ | |
## COMPILATION OPTIONS ## | |
--with-libdir=lib64 --with-curl --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64 --with-openssl --with-mcrypt --with-mhash --with-mysql=/usr --with-mysqli --with-pdo-mysql --with-pear --with-zlib --enable-zip --with-iconv --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-mbstring --with-mcrypt=/usr --with-litespeed | |
## PACKAGES ## | |
build-essential autoconf libxml2 libxml2-dev openssl libssl-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6 libfreetype6-dev libmcrypt-dev libmhash-dev libmysql++-dev | |
FOR SNMP: libltdl3-dev libsnmp-dev | |
++++++++++++++++ | |
+ JESSIE + | |
++++++++++++++++ | |
## COMPILATION OPTIONS ## | |
--with-curl --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-jpeg-dir=/usr/include --with-libpng --with-freetype-dir=/usr/include --with-openssl --with-mcrypt --with-mhash --with-mysql=/usr --with-mysqli --with-pdo-mysql --with-pear --with-zlib --enable-zip --with-iconv --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-mbstring --with-mcrypt=/usr --with-litespeed | |
FreeType workaround: ln -s /usr/include/freetype2 /usr/include/freetype2/freetype | |
++++++++++++++++ | |
+ 5.6.4 @ JESSIE + | |
++++++++++++++++ | |
## COMPILATION OPTIONS ## | |
--with-curl --with-gd --enable-exif --enable-gd-native-ttf --with-ttf --with-gettext --with-freetype --with-jpeg-dir=/usr/include --with-libpng --with-openssl --with-mcrypt --with-mhash --with-mysql=/usr --with-mysqli --with-pdo-mysql --with-pdo-pgsql --with-pear --with-zlib --enable-zip --with-bz2 --with-iconv --enable-bcmath --enable-calendar --enable-ftp --with-gmp --enable-sockets --enable-intl --enable-mbstring --with-mcrypt=/usr --enable-shmop --with-litespeed | |
## PACKAGES ## | |
build-essential autoconf libxml2 libxml2-dev openssl libssl-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6 libfreetype6-dev libmcrypt-dev libmhash-dev libmysql++-dev libgmp-dev libicu-* | |
+++++++++++++++++++++ | |
+ 5.6.5 / DBG MINIMAL + | |
+++++++++++++++++++++ | |
./configure --disable-cgi --without-kerberos --disable-bcmath --with-bz2=/usr --disable-calendar --without-curl --disable-dba --disable-exif --disable-ftp --without-gd --without-gettext --without-gmp --without-iconv --without-imap --without-ldap --without-mcrypt --without-mssql --without-mysql --without-mysqli --without-adabas --without-ibm-db2 --without-iodbc --disable-pcntl --disable-pdo --without-pgsql --without-libedit --without-readline --disable-soap --without-xmlrpc --without-openssl --without-zlib --disable-ctype --disable-xml --disable-filter --disable-json --disable-dom --disable-libxml --disable-mbstring --disable-mbregex --disable-simplexml --disable-hash --without-bz2 --disable-all --without-pear --enable-cli --enable-sockets --enable-debug | |
++++++++++++++++++ | |
+ 7.0.0 @ FABRYKA + | |
++++++++++++++++++ | |
## COMPILATION OPTIONS ## | |
--with-libdir=/lib/x86_64-linux-gnu --with-curl --with-gd --enable-exif --enable-gd-native-ttf --with-freetype-dir=/usr/lib/x86_64-linux-gnu --with-ttf --with-gettext --with-jpeg-dir=/usr/include --with-libpng --with-openssl --with-mcrypt --with-mhash --with-mysql=/usr --with-mysqli --with-pdo-mysql --with-pdo-pgsql --with-pear --with-zlib --enable-zip --with-bz2 --with-iconv --enable-bcmath --enable-calendar --enable-ftp --with-gmp --enable-sockets --enable-intl --enable-mbstring --with-mcrypt=/usr --with-litespeed --enable-opcache | |
## PACKAGES ## | |
build-essential autoconf libxml2 libxml2-dev openssl libssl-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6 libfreetype6-dev libmcrypt-dev libmhash-dev libmysql++-dev libgmp-dev libicu-* bzip2 libbz2-dev libpq-dev | |
## HACKS ## | |
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h | |
XCache & Memcached doesn't work ;< | |
++++++++++++++++ | |
+ 5.x + pthreads + | |
++++++++++++++++ | |
wget php src | |
untar | |
cd php5*/ext/ | |
git clone https://github.com/krakjoe/pthreads.git | |
./configure --with-libdir=/lib/x86_64-linux-gnu --with-curl --with-openssl --with-mcrypt --with-mhash --with-iconv --enable-bcmath --enable-ftp --with-gmp --enable-sockets --enable-intl --enable-mbstring --with-mcrypt=/usr --enable-pcntl --enable-debug --enable-maintainer-zts --enable-pthreads --disable-cgi | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment