Skip to content

Instantly share code, notes, and snippets.

@jaircuevajunior
Last active October 7, 2015 00:06
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/994df7c7b0fe77bca6ad to your computer and use it in GitHub Desktop.
Save jaircuevajunior/994df7c7b0fe77bca6ad to your computer and use it in GitHub Desktop.
Compilling PHP From Source
apt-get install libpng-dev zlib-bin libjpeg-dev libmcrypt-dev
cd source-folder...
make clean
./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/http/bin/apxs \
--with-gd \
--with-mysql=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-jpeg-dir \
--with-png-dir --with-mcrypt --enable-mbstring
make && make install
cd ext/openssl
phpize
./configure --with-php-config=/path/to/php/bin/folder/php-config --with-libdir=/lib/x86_64-linux-gnu
make && make install
edit php.ini... extension=mcrypt.so
mbstring.so mcrypt.so opcache.so openssl.so zip.so zlib.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment