How to install php-5.2.17 for MacOS

]# ./configure –prefix=/usr/local/php-5.2.17 –with-config-file-path=/usr/local/php-5.2.17/etc –with-apxs2=/usr/local/httpd-2.2.17/bin/apxs –with-openssl –enable-sigchild –with-gd –with-freetype-dir –with-png-dir –with-jpeg-dir –with-zlib-dir –enable-exif –enable-gd-native-ttf –enable-sockets –with-iconv –with-libxml-dir –enable-sysvsem –enable-sysvshm –enable-magic-quotes –enable-safe-mode –enable-ftp –enable-mbstring –with-zlib –disable-debug –disable-rpath –enable-inline-optimization –with-bz2 –with-pic –with-gettext –with-gmp –enable-bcmath –with-mcrypt –enable-wddx –enable-calendar –with-mysql=/usr/local/mysql-5.5.9 –with-mysqli=/usr/local/mysql-5.5.9/bin/mysql_config –with-pdo-mysql=/usr/local/mysql-5.5.9 –enable-mod-charset –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-ftp –with-snmp –with-ttf –with-xpm-dir –with-libxml-dir –with-pcre-dir –with-imap –with-imap-ssl –with-kerberos –with-curl –with-ncurses –enable-sqlite-utf8 –with-regex=php

컴파일시 오류내용에 따라 패키지를 설치한다

libmcrypt 추가 에러 발생시

/usr/local/lib
/usr/local/mysql-5.5.9/lib

mime_module 에 아래 내용추가

AddHandler php5-script .php .inc .html .htm
AddType text/html .php
AddType application/x-httpd-php .php .html .htm .inc
AddType application/x-httpd-php-source .phps

]# 아파치 restart