1.필수 패키지 설치
# yum -y install gmp gmp-devel pam-devel libicu-devel net-snmp-devel
2. mhash 설치
# tar xvfz mhash-0.9.9.9.tar.gz
# cd mhash-0.9.9.9
# ./configure
# make && make install
3. libmcrypt 설치
# tar xvfz libmcrypt-2.5.7.tar.gz
# cd libmcrypt-2.5.7
# ./configure
# make && make install
4. imap-2007f 설치
# tar xvfz imap-2007f.tar.gz
# cd imap-2007f/src/c-client/
# cp *.h /usr/local/include
# cd /usr/local/src/imap-2007f
# make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4
# mkdir /usr/local/imap-2007f
# mkdir /usr/local/imap-2007f/include
# mkdir /usr/local/imap-2007f/lib
# cp c-client/*.h /usr/local/imap-2007f/include
# cp c-client/*.c /usr/local/imap-2007f/lib
# cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a
5. php 설치
# tar xvfz php-7.2.0.tar.gz
# cd php-7.2.0
# ./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-sigchild \
--with-libxml-dir \
--with-openssl \
--with-zlib \
--with-mysqli \
--with-zlib-dir \
--with-bz2 \
--enable-calendar \
--with-curl \
--enable-dba \
--with-gdbm \
--enable-exif \
--enable-ftp \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--with-gettext \
--with-imap=/usr/local/imap-2007f \
--with-imap-ssl \
--with-kerberos \
--enable-mbstring \
--with-mhash \
--with-mcrypt \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-opcache \
--enable-zip \
--with-pdo-mysql \
--with-snmp \
--enable-intl
# make && make install
# cp php.ini-development /usr/local/apache/conf/php.ini
'LINUX > WEB' 카테고리의 다른 글
Apache + PHP 에러사항 (0) | 2019.05.27 |
---|---|
WORDPRESS 설치 (0) | 2019.05.27 |
PHP 5.6 소스설치 (0) | 2019.05.27 |
PHP 5.5 소스설치 (0) | 2019.05.27 |
PHP 5.3 소스설치 (0) | 2019.05.27 |