[ php 설치 버전 ]
■ php 5.3.8
■ Zend 5.3
▶APM 전체 필수 구성 요소 설치
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-devel gdbm ncurses-devel ncurses curl-devel curl expat-devel expat bzip2-devel bzip2-libs bzip2 libc libc-devel libc-client-devel gcc* <– 끝에 네개 추가
▶ 필수 구성 요소 설치
cd /usr/local/src
wget ris.smileserv.com/source/mhash-0.9.7.1.tar.gz
tar zxvf mhash-0.9.7.1.tar.gz
cd mhash-0.9.7.1
./configure
make
make install
cd ..
wget ris.smileserv.com/source/libmcrypt-2.5.7.tar.gz
tar zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure
make
make install
cd /usr/local/src
wget pub.neulwon.com/jpegsrc.v6b.tar.gz
tar xvzf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp -f /usr/share/libtool/config.guess . <- 덮어 쒸우기. 참고 http://www.noah.org/wiki/Jpegsrc_64 <- centos 5.6 이하 일때는 /usr/share/libtool/config.guess 에 있음
cp -f /usr/share/libtool/config.sub .
./configure –enable-shared –enable-static
make
make install
// /usr/bin/install: cannot create regular file `/usr/local/man/man1/cjpeg.1′: 그런 파일이나 디렉토리가 없음 이라는 오류가 나타날 경우 아래 처럼 처리할것
// makedir /usr/local/man/man1
// make install
// make
(64비트 운영체제에서는 아래 심볼릭 링크 진행 해주어야 함)
ln -sf /usr/lib64/libpng12.so.0 /usr/lib/libpng12.so.0 // 이부분은 CentOS 6, fedora 15 이상에서 해당되는 내용. If문 사용 : 64bit이고 파일이 없을때 복사
ln -sf /usr/lib64/libpng12.a /usr/lib/libpng12.a
ln -sf /usr/lib64/libpng.so.3 /usr/lib/libpng.so.3
ln -sf /usr/lib64/libpng.so /usr/lib/libpng.so
ln -sf /usr/lib64/libpng12.so /usr/lib/libpng12.so
ln -sf /usr/lib64/libc-client.so /usr/lib/libc-client.so
ln -sf /usr/lib64/libgssapi_krb5.so /usr/lib/libgssapi_krb5.so
ln -sf /usr/lib64/libkrb5.so /usr/lib/libkrb5.so
ln -sf /usr/lib64/libkrb5support.so /usr/lib/libkrb5support.so
▶ 설치 진행
cd /usr/local/src/php-5.3.8
(make test 에서 오류 발생하여 –safe-mode 옵션 제거 했음)
./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –enable-mod-charset –with-config-file-path=/usr/local/apache/conf –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-freetype-dir –enable-gd-native-ttf –with-gettext –with-imap –with-imap-ssl –with-kerberos –enable-mbstring –with-mhash –with-mcrypt –with-mysql=/usr/local/mysql –enable-sockets –with-regex=php –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –enable-zend-multibyte
make
make install
cp php.ini-development /usr/local/apache/conf/php.ini
vi /usr/local/apache/conf/httpd.conf
(적절한곳에 아래내용 입력)
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.php5 index.phtml index.cgi index.jsp
# PHP Enable
AddType application/x-httpd-php .html .htm .php .php3 .php4 .php5 .phtml .cgi .inc
AddType application/x-httpd-php-source .phps
<Directory /home/*>
AllowOverride All
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
■ ZendGuardLoader
ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x ->다운 받아야댐
cp -arp ZendGuardLoader.so /usr/local/php/lib/
vi /usr/local/apache/conf/php.ini
(맨하단에 아래내용 입력)
[Zend]
zend_extension=/usr/local/php/lib/ZendGuardLoader.so
short_open_tag = On // phpinfo(); 를 보기위해
date.timezone = Asia/Seoul 도 입력
register_globals = On
참고
http://www.atomicorp.com/forums/viewtopic.php?f=12&t=4984
http://forums.zend.com/viewtopic.php?f=57&t=1365&start=80
← Previous Post Next Post →
0 개의 댓글