compile redis or any module together to php
Posted: Wed May 31, 2017 2:26 am
I would install phpredis with php, that is, I would download php 7.1.5, download phpredis (master) and both compile together.
what is the line to add in ./configure of php?
an alternative is compile phpredis (./configure && make && make install into php7.1.5/ext)
after
cd php7.1.5
./configure \
-with-config-file-path=/etc \
-with-libdir=lib64 \
-prefix=/usr/local \
-with-layout=PHP \
-with-pear \
-with-apxs2 \
-enable-calendar \
-enable-bcmath \
-with-gmp \
-enable-exif \
-with-mcrypt \
-with-mhash \
-with-zlib \
-with-bz2 \
-enable-zip \
-enable-ftp \
-enable-mbstring \
-with-iconv \
-enable-intl \
-with-icu-dir=/usr \
-with-gettext \
-with-pspell \
-enable-sockets \
-with-openssl=/usr/local \
-with-curl \
-with-curlwrappers \
-with-gd \
-enable-gd-native-ttf \
-with-jpeg-dir=/usr \
-with-png-dir=/usr \
-with-zlib-dir=/usr \
-with-xpm-dir=/usr \
-with-vpx-dir=/usr \
-with-freetype-dir=/usr \
-with-libxml-dir=/usr \
-with-mysqli=mysqlnd \
-with-pdo-mysql=mysqlnd \
-enable-soap \
-with-xmlrpc \
-with-xsl \
-with-tidy=/usr \
-with-readline \
-enable-pcntl \
-enable-sysvshm \
-enable-sysvmsg \
-enable-shmop
make && make install
and add into php.ini extension=redis.so
thanks
what is the line to add in ./configure of php?
an alternative is compile phpredis (./configure && make && make install into php7.1.5/ext)
after
cd php7.1.5
./configure \
-with-config-file-path=/etc \
-with-libdir=lib64 \
-prefix=/usr/local \
-with-layout=PHP \
-with-pear \
-with-apxs2 \
-enable-calendar \
-enable-bcmath \
-with-gmp \
-enable-exif \
-with-mcrypt \
-with-mhash \
-with-zlib \
-with-bz2 \
-enable-zip \
-enable-ftp \
-enable-mbstring \
-with-iconv \
-enable-intl \
-with-icu-dir=/usr \
-with-gettext \
-with-pspell \
-enable-sockets \
-with-openssl=/usr/local \
-with-curl \
-with-curlwrappers \
-with-gd \
-enable-gd-native-ttf \
-with-jpeg-dir=/usr \
-with-png-dir=/usr \
-with-zlib-dir=/usr \
-with-xpm-dir=/usr \
-with-vpx-dir=/usr \
-with-freetype-dir=/usr \
-with-libxml-dir=/usr \
-with-mysqli=mysqlnd \
-with-pdo-mysql=mysqlnd \
-enable-soap \
-with-xmlrpc \
-with-xsl \
-with-tidy=/usr \
-with-readline \
-enable-pcntl \
-enable-sysvshm \
-enable-sysvmsg \
-enable-shmop
make && make install
and add into php.ini extension=redis.so
thanks