PHP
Apache

ソースから入れたApache2.2にphp7.1をインストール


はじめに

ソースからインストールしたApache+Openssl1.0.1にphpもインストールしたので、備忘録

https://qiita.com/ijimakenta/items/8d530e62e3e7e5ab889e


インストール環境


  • CentOS 7


インストール


  • 必要パッケージ

yum install -y zlib-devel openssl-devel pcre-devel libicu-devel gettext-devel readline-devel libxml2-devel libxslt-devel libjpeg-devel libpng-devel freetype-devel libxml2-devel curl-devel gdbm-devel bzip2-devel libXpm-devel epel-release 

yum --enablerepo=epel install libmcrypt-devel -y


  • configure

./configure \

--prefix=/usr/local/php-7.1.6 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-openssl=/usr/local/openssl \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/tmp/mysql.sock \
--enable-mysqlnd \
--enable-mbstring \
--enable-intl \
--with-icu-dir=/usr \
--with-gettext=/usr \
--with-pcre-regex \
--with-pcre-dir \
--with-readline=/usr \
--with-libxml-dir=/usr/bin/xml2-config \
--enable-soap \
--enable-wddx \
--with-xmlrpc \
--with-xsl=/usr \
--with-zlib=/usr \
--with-zlib-dir=/usr \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-mcrypt=/usr \
--enable-bcmath \
--with-iconv-dir=/usr \
--enable-zip \
--with-curl=/usr \
--enable-bcmath \
--enable-sockets \
--enable-ftp \
--disable-opcache \
--with-xpm-dir=/usr \
--with-gettext \
--with-pic \
--with-bz2 \
--with-layout=GNU \
--enable-exif \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg \
--with-kerberos \
--enable-shmop \
--enable-calendar \
--disable-dba \
--enable-mbregex \
--enable-pcntl \
--enable-cgi \
--with-pear \

make

make install