π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