🌟2017λ…„ 이전 ν¬μŠ€νŒ… λͺ¨μŒ 🌟/πŸ’žLinux OSπŸ’ž

PHP 버전별 컴파일 μ„€μΉ˜ λ‚΄μš©

🌟BugsBunny🌟 2011. 5. 14. 15:46

◐◑◐◑◐◑-PHP_4 버전-◐◑◐◑◐◑◐◑

β–£β–£β–£β–£-1. 일반적인 μ‚¬μš© μ˜΅μ…˜ <독립방식>-β–£β–£β–£β–£
./configure --with-apxs=/usr/local/aache/bin/apxs \
--disable-debug --enable-ftp --enable-inline-optimization \
--enable-magic-quotes --enable-mbstring \
--enable-mm=shared --enable-safe-mode --enable-track-vars \
--enable-trans-sid --enable-wddx=shared \
--enable-xml --with-dom --with-gd --with-gettext \
--with-mysql=/usr/local/mysql --with-regex=system \
--with-xml --with-zlib-dir=/usr/lib \
--with-language=korean --with-charset=euckr \
--with-config-file-path=/usr/local/apache/conf

β–£β–£β–£β–£-2. [SSL+OPENSSL+JAVA] μ„€μΉ˜ μ „μš© μ˜΅μ…˜ <λ…λ¦½μ„€μΉ˜>-β–£β–£β–£β–£
./configure  --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
--with-openssl=/usr/local/ssl --with-gif-dir=/usr/local \
--with-tif-dir=/usr/local --with-java=/usr/local/java \
--with-gd=/usr/local --with-freetype=/usr/local/include/freetype2 \ 
--with-ming=/usr/local --with-cpdflib=/usr/local \
--with-gettext --with-kerberos --with-swf-dir=/usr/local/swf \
--with-mm=/usr/local/mm --with-mhash=/usr/local \
--with-mcrypt=/usr/local --with-mod_charset --with-charset=euc_kr \
--with-regex=php --with-xml --with-imap=/usr/local/imap \
--with-imap-ssl=/etc/mail/certs --with-ttf=/usr/local \
--with-t1lib=/usr/local --enable-module=so --enable-gd-native-ttf \
--enable-ftp --enable-sockets --enable-sysvsem  --enable-sysvshm \
--enable-track-vars --enable-freetype-4bit-antialias-hack \
--enable-calendar --enable-sigchild --enable-magic-quotes \
--enable-trans-sid --enable-inline-optimization --enable-bcmath

◐◑◐◑◐◑◐◑-PHP_5 버전[openssl+webssl]-◐◑◐◑◐◑◐◑

CFLAGS='-O2 -I/usr/local/openssl -DEAPI' ./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-debug --enable-ftp \
--enable-inline-optimization --enable-magic-quotes \
--enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars \
--enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd  \
--with-gettext --with-mysql=/usr/local/mysql  \
--with-regex=system --with-xml --with-zlib-dir=/usr/lib \
--with-language=korean --with-charset=euc_kr \
--with-config-file-path=/usr/local/httpd/conf

β™₯β™₯β™₯β™₯β™₯β™₯-CENTOS5버전 PHP-5 [주둜 λ‚΄κ°€ μ‚¬μš©ν•˜λŠ” μ˜΅μ…˜]-β™₯β™₯β™₯β™₯β™₯β™₯β™₯β™₯β™₯

β˜…β˜…-1. apache μ†ŒμŠ€ ν•˜κ³  같이 μ„€μΉ˜μ‹œ μ˜΅μ…˜-β˜…β˜…
./configure --prefix=/usr/local/php --with-apache=../apache_1.3.37 \
--with-exec-dir=/usr/local/bin --with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql --with-gd --with-gd-dir=/usr/local/  \
--with-jpeg-dir=/usr --with-png --with-freetype-dir=/usr --with-openssl \
--with-mod_charset --with-language=korean --with-charset=euc_kr --with-gdbm \
--with-xml --with-regex=php --with-iconv --enable-module=so \
--enable-memory-limit --enable-track-vars --enable-ftp --enable-sockets \
--enable-trans-sid --enable-magic-quotes --enable-sysvsem  --enable-sysvshm \
--enable-mailparse --enable-sigchild --enable-calender --enable-inline-optimization \ 
--disable-debug --enable-mbstring --with-gettext \
--with-zlib-dir=/usr/lib

β˜…β˜…-2. λ…λ¦½μ μœΌλ‘œ λ”°λ‘œ μ„€μΉ˜μ‹œ μ‚¬μš©μ˜΅μ…˜-β˜…β˜…
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf --with-mysql=/usr/local/mysql \
--with-mysql-sock=/usr/local/mysql_data/mysql.sock \
--with-gd --with-gd-dir=/usr/local/ --with-jpeg-dir=/usr --with-png \
--with-freetype-dir=/usr --with-mod_charset \
--with-language=korean --with-charset=euc_kr --with-gdbm \
--with-xml --with-regex=php --with-iconv --enable-module=so \
--enable-memory-limit --enable-track-vars --enable-ftp --enable-sockets \
--enable-trans-sid --enable-magic-quotes --enable-sysvsem  --enable-sysvshm \
--enable-mailparse --enable-sigchild --enable-calender --enable-inline-optimization \ 
--disable-debug --enable-mbstring --with-gettext --with-zlib-dir=/usr/local