CentOS 6.8/php-5.2.17, ZendOptimizer-3.3.9 설치
페이지 정보
작성자 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 에필로그 댓글 0건 조회 5,243회 작성일 18-06-23 11:55본문
구버전 php 사이트 수용 목적
CentOS 6.8 설치 후 업데이트는 하지 않음
1. cd /usr/local/src 후 다음 파일 다운로드
epel-release-6-8.noarch.rpm
jpegsrc.v8d.tar.gz
libpng-1.2.7.tar.gz
openssl-0.9.8e.tar.gz
php-5.2.17.tar.gz
ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
2. rpm -i epel-release-6-8.noarch.rpm
3. 다음 패키지 설치
yum -y install \
make \
gcc \
gcc-c++ \
flex \
compat-gcc-32-g77 \
cpp-c++ \
curl \
curl-devel \
gd-devel \
gdbm-devel \
glibc-utils.x86_64 \
libjpeg \
libjpeg-devel \
freetype-devel \
krb5-devel \
libmcrypt \
libmcrypt-devel \
libmhash \
libmhash-devel \
Cygwin \
mingw32 \
egrep \
libtiff-devel \
libtermcap-devel \
libxml5 \
libc-client-devel \
libtool-ltdl-devel \
php-ncurses.x86_64 \
php-mbstring \
openssl-devel \
libxml2 \
libxml2-devel \
bzip2-devel \
mysql-devel \
httpd-devel
4. tar zxvf jpegsrc.v8d.tar.gz
cd jpeg-8d
./configure
make
make install
5. tar xvfz libpng-1.2.7.tar.gz
cd libpng-1.2.7
cp scripts/makefile.linux makefile
make test
make install
6. tar zxvf openssl-0.9.8e.tar.gz
cd openssl-0.9.8e
./configure no-asm ?prefix=/usr/local shared
make
make install
7. mkdir /usr/local/php
tar zxvf php-5.2.17.tar.gz
cd php-5.2.17
./configure \
prefix=/usr/local/php \
with-config-file-path=/etc/ \
with-apxs2=/usr/sbin/apxs \
with-mysql=/usr/bin \
with-libdir=lib64 \
with-openssl=/usr/local \
enable-calendar \
enable-mod-charset \
disable-debug \
enable-safe-mode \
enable-sigchild \
enable-magic-quotes \
with-libxml-dir \
with-zlib \
with-zlib-dir \
with-bz2 \
enable-calendar \
with-curl \
enable-dba \
with-gdbm \
enable-exif \
enable-ftp \
with-gd \
with-jpeg-dir=/usr/local/lib \
with-png-dir=/usr/local/lib \
with-ttf \
with-freetype-dir \
with-iconv \
enable-gd-native-ttf \
with-gettext \
with-kerberos \
enable-mbstring \
with-mhash \
with-mcrypt \
enable-sockets \
with-regex=php \
enable-sysvmsg \
enable-sysvsem \
enable-sysvshm \
enable-wddx \
enable-zip \
enable-zend-multibyte
make
make install
8. cp php.ini-recommended /etc/php.ini
9. cd /usr/local/src/
10. tar xvzf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
11. cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so /usr/local/php/lib/
12. vi /etc/php.ini 다음 추가
[Zend]
zend_extension=/usr/local/php/lib/ZendOptimizer.so
13. 아파치 다시 시작
14. /usr/local/php/bin/php -v
댓글목록
등록된 댓글이 없습니다.