Skip to content

Instantly share code, notes, and snippets.

@jaircuevajunior
Last active May 5, 2017 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaircuevajunior/5bbef2a3eae858875094e8870a87d8f0 to your computer and use it in GitHub Desktop.
Save jaircuevajunior/5bbef2a3eae858875094e8870a87d8f0 to your computer and use it in GitHub Desktop.
compile PHP with extensions

apt-get install libbz2-dev libjpeg-dev libpng-dev libfreetype6-dev libmcrypt-dev libxslt-dev

./configure --enable-fpm --enable-pdo --with-pdo-mysql --enable-sockets --enable-exif --enable-ftp --enable-wddx --enable-pcntl --enable-soap --enable-bcmath --enable-mbstring --enable-dba --enable-gd-native-ttf --enable-zip --enable-calendar --with-mysqli --with-pdo-sqlite --with-iconv --with-zlib --with-bz2 --with-gettext --with-xmlrpc --with-openssl --with-curl --with-mhash --with-mcrypt --with-xsl --with-pcre-regex --with-gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-ldap --with-pear --with-fpm-user=www-data --with-fpm-group=www-data --with-config-file-path=/etc/php/ --with-libdir=lib/x86_64-linux-gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment