1.필수패키지 설치
# yum -y install openssl openssl-devel mhash mhash-devel libtool libtool-ltdl libtool-ltdl-devel imap-devel imap zlib-devel zlib freetype-devel freetype libpng-devel libpng libjpeg-devel libjpeg libtiff-devel libtiff gd-devel gd pcre-devel pcre libxml-devel libxml libxml2-devel libxml2 gdbm ncurses-devel ncurses curl-devel curl expat-devel expat bzip2-devel bzip2-libs bzip2 libc libc-devel libc-client-devel gcc* gdbm-devel pam-devel
2. libmcrypt 설치
# tar xvfz libmcrypt-2.5.8.tar.gz
# cd libmcrypt-2.5.8/
# ./configure
# make && make install
3. mhash 설치
# tar xvfz mhash-0.9.9.9.tar.gz
# cd mhash-0.9.9.9/
# ./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/APM_Setup/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-5.3.21.tar.gz
# cd php-5.3.21
# ./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--enable-mod-charset \
--enable-safe-mode \
--enable-sigchild \
--enable-magic-quotes \
--with-libxml-dir \
--with-openssl \
--with-zlib \
--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-ttf \
--with-freetype-dir \
--enable-gd-native-ttf \
--with-gettext \
--with-imap=/usr/local/imap-2007f \
--with-imap-ssl \
--enable-mbstring \
--with-mhash \
--with-mcrypt \
--enable-sockets \
--with-regex=php \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-zend-multibyte \
--enable-zip
# make && make install
# cp -arp php.ini-development /usr/local/apache/conf/php.ini
'LINUX > WEB' 카테고리의 다른 글
PHP 5.6 소스설치 (0) | 2019.05.27 |
---|---|
PHP 5.5 소스설치 (0) | 2019.05.27 |
PHP 5.2 소스설치 (0) | 2019.05.27 |
Apache 설치 시 에러사항 (0) | 2019.05.27 |
Apache 2.4 소스설치 (0) | 2019.05.27 |