Last active
October 7, 2015 00:06
-
-
Save jaircuevajunior/994df7c7b0fe77bca6ad to your computer and use it in GitHub Desktop.
Compilling PHP From Source
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
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