本環境では5.5.1を使用するため説明を省略します。
# yum install ImageMagick*
# yum install gd*
# yum install libxml2*
# yum install libevent*
# yum install curl*
# yum install libjpeg*
# yum install libpng*
# yum install freetype*
# yum install libxslt*
#wget http://jp1.php.net/get/php-5.5.1.tar.gz/from/this/mirror
# tar zxvf php-5.5.1.tar.gz
# cd php-5.5.1
# ./configure \
--enable-mbstring \
--enable-mbregex \
--enable-fpm \
--enable-json \
--enable-pcntl \
--enable-exif \
--enable-sockets \
--enable-gd-native-ttf \
--with-pgsql=/usr/local/pgsql/ \
--with-pdo-pgsql=/usr/local/pgsql/ \
--with-openssl \
--with-pgsql=/usr/local/pgsql/ \
--with-pdo-pgsql=/usr/local/pgsql/ \
--with-openssl \
--with-zlib \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-mhash \
--with-xmlrpc \
--with-xsl \
--with-pear
# make
# make install
# cp php.ini-production /usr/local/lib/php.ini
# cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
# cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
# cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
# chmod 755 /etc/init.d/php-fpm
# chkconfig --add php-fpm
# chkconfig php-fpm on
# chkconfig --list php-fpm
nginx 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# service php-fpm start
0 件のコメント:
コメントを投稿