Created
February 27, 2015 08:23
-
-
Save boynoiz/7052775b333550752618 to your computer and use it in GitHub Desktop.
compile php-fpm
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
mkdir -p /usr/local/src/php5-build | |
mkdir -p /opt/php-5.6.5 | |
./configure --prefix=/opt/php-5.6.5 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm --enable-phar --with-pear | |
cp /usr/local/src/php5-build/php-5.6.5/php.ini-production /opt/php-5.6.5/lib/php.ini | |
cp /opt/php-5.6.5/etc/php-fpm.conf.default /opt/php-5.6.5/etc/php-fpm.conf | |
nano /opt/php-5.6.5/etc/php-fpm.conf > pid = run/php-fpm.pid, listen = 127.0.0.1:8999, include=/opt/php-5.6.5/etc/pool.d/*.conf | |
mkdir /opt/php-5.6.5/etc/pool.d | |
nano /etc/init.d/php-5.6.5-fpm | |
chmod 755 /etc/init.d/php-5.6.5-fpm | |
insserv php-5.6.5-fpm | |
/etc/init.d/php-5.6.5-fpm start | |
cd /opt/php-5.6.5/etc | |
pecl -C ./pear.conf update-channels | |
pecl -C ./pear.conf install channel://pecl.php.net/apcu-4.0.7 | |
pecl -C ./pear.conf install memcache | |
nano /opt/php-5.6.5/lib/php.ini > | |
[OPCache] | |
zend_extension=opcache.so | |
[APCu] | |
extension=apcu.so | |
apc.enabled=1 | |
apc.shm_size=128M | |
apc.ttl=0 | |
apc.gc_ttl=600 | |
apc.enable_cli=1 | |
apc.mmap_file_mask=/tmp/apc.XXXXXX | |
;apc.mmap_file_mask=/dev/zero | |
;apc.shm_segments = 5 | |
[Memcache] | |
extension=memcache.so | |
/etc/init.d/php-5.6.5-fpm reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment