1. download : www.php.net, www.zend.com
2. tar zxpf /usr/local/src/php-5.0.2; cd php-5.0.2
3.
./configure --prefix=/usr/local/php-5.0.2 \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-gd \
--with-ttf \
--with-png \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-expat-dir=/usr \
--enable-mbstring \
--enable-mbregex \
--enable-mbstr-enc-trans \
--with-language=korean \
--with-charset=euc_kr \
--disable-debug
4. make
5. make install
6. cp php.ini-dist /usr/local/lib/php.ini
7. vi /usr/local/apache/conf/httpd.conf
add LoadModule php5_module modules/libphp5.so under Listen 80
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
8. /etc/rc.d/init.d/httpd restart
9. test php through web-browser
10. tar zxpf Zend-***.tar.gz; cd Zend-***
11. ./install.sh
install dir : /usr/local/Zend
php.ini file : /usr/local/lib
apache dir : /usr/local/apache/bin만약 ./php binary file 실행 권한이 없다고 한다면 glibc 의 버전 문제이므로,
Zend Optimizer 의 소스파일 중에서 glibc 버전이 낮은 것으로 설치
12. restart apache