쉶썝媛엯| 븘씠뵒/鍮꾨踰덊샇
 
蹂댁븞꽌踰(SSL) 援ъ텞븯湲- apache 2.2.4

    븘뙆移 2.x쓽 寃쎌슦뒗 1.3怨쇰뒗 떖由 mod_ssl쓣 蹂꾨룄濡 異붽빐꽌 꽕移섑븷 븘슂媛 뾾떎.
    apache2.x 踰꾩쟾 옄泥댁뿉 紐⑤뱢씠 룷븿릺뼱 엳湲 븣臾몄뿉 apache 꽕移섏떆뿉 --enable-ssl 샃뀡留 異붽빐꽌 궗슜븯硫 맂떎.

    mysql, gd, imap벑쓽 뙣궎吏뒗 씠誘 源붾젮 엳뒗 긽깭씠硫, 紐⑤뱺 뙣궎吏뒗 /usr/local/src/ 뵒젆넗由 븞뿉 떎슫濡쒕뱶 諛쏆 긽깭濡 꽕移섎 떆옉븳떎.


    1. 냼뒪瑜 떎슫 諛쏆 뵒젆넗由щ줈 씠룞

    [root@localhost root]# cd /usr/local/src


    2. 븬異 湲

    [root@localhost src]# tar xvzf httpd-2.2.4.tar.gz
    [root@localhost src]# tar xvzfp php-5.2.3.tar.tar
    [root@localhost src]# tar xvzf ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz


    3. apache 꽕移

    - apache瑜 꽕移섑븯湲곗쟾뿉, source 뵒젆넗由щ궡쓽 server/mpm/prefork/prefork.c 뙆씪뿉꽌 #define DEFAULT_SERVER_LIMIT 遺遺꾩쓣 1024濡 닔젙 븳떎.  뵒뤃듃媛 256쑝濡 而댄뙆씪 븯寃 릺硫, 븘뙆移 뜲紐ъ씠 理쒕 256媛 源뚯 諛뽰뿉 쑑닔 뾾寃 맂떎, 씠윴 寃쎌슦뒗 꽌踰꾩쓽 젒냽웾씠 留롮쓣寃쎌슦 꽌踰꾩쓽 옄썝씠 궓븘룄 뜑 씠긽쓽 뜲紐ъ쓣 쓣슦吏 紐삵빐꽌 꽌踰꾧 뒓젮吏寃 맂떎.

    [root@localhost src]# cd httpd-2.2.4
    [root@localhost httpd-2.2.4]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared --enable-rewrite --enable-ssl
    [root@localhost httpd-2.2.4]# make
    [root@localhost httpd-2.2.4]# make install


    4. PHP 꽕移 (DB,imap,gd,apache)

    - 븘옒쓽 샃뀡쓣 紐⑤몢 쟻슜븯뿬 php瑜 꽕移 븷 寃쎌슦뒗 紐뉖챺 뙣궎吏媛 꽕移섎릺뼱 엳吏 븡븘 뿉윭媛 諛쒖깮븯寃 맂떎. php-5.2.3踰꾩쟾쓽 寃쎌슦뒗 libxml2, libxml2-devel 뙣궎吏쓽 踰꾩쟾臾몄젣濡 꽕移섍 릺吏 븡湲 븣臾몄뿉 뙣궎吏 踰꾩쟾쓣 뾽洹몃젅씠뱶 븳떎.(http://rpmfind.net 뿉꽌 OS뿉 留욌뒗 理쒖떊 뙣궎吏瑜 李얠븘꽌 꽕移섑븳떎)
    洹몃━怨, freetype, libjpeg, libpng벑쓽 씪씠釉뚮윭由ъ 愿젴맂 뿉윭硫붿떆媛 諛쒓껄릺硫 freetype-devel, libjpeg-devel, libpng-devel 뙣궎吏瑜 異붽濡 꽕移섑븯怨 php꽕移섎 吏꾪뻾븳떎.

    [root@localhost httpd-2.2.4]# cd /usr/local/src/php-5.2.3
    [root@localhost php-5.2.3]# ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no --enable-track-vars=yes --enable-url-fopen-wrapper=yes --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr --with-gdbm=/usr --enable-ftp --with-tiff-dir=/usr --enable-memory-limit --enable-mbstring --with-expat-dir=/usr --enable-sockets --enable-wddx --with-freetype-dir=/usr --enable-bcmath --enable-mbstr-enc-trans --enable-mbregex --enable-exif --with-gd --enable-gd-native-ttf --enable-gd-imgstrttf --enable-calendar --with-openssl=/usr
    [root@localhost php-5.2.3]# make
    [root@localhost php-5.2.3]# make install
    [root@localhost php-5.2.3]# cp php.ini-dist /usr/local/php/lib/php.ini


    5. ZendOptimizer 꽕移

    [root@localhost php-5.2.3]# cd /usr/local/src/ZendOptimizer-2.6.2-linux-glibc21-i386
    [root@localhost ZendOptimizer-2.6.2-linux-glibc21-i386]# sh install.sh

    - install.sh 뙆씪쓣 떎뻾븳 썑 apache php愿젴맂 젙蹂대 엯젰븳 썑 꽕移섎 셿猷뚰븳떎.


    6. httpd.conf 뙆씪 닔젙썑 apache 由ъ뒪듃

    - httpd.conf 뙆씪뿉 php媛 씤떇릺룄濡 븘옒 援щЦ쓣 異붽븳떎.

       #################################################
        AddType application/x-httpd-php .php .html .htm
        AddType application/x-httpd-php-source .phps
       #################################################

    - httpd.conf 닔젙썑 apache 뜲紐ъ 옱떎뻾븳떎. ssl 꽌踰꾨줈 떆옉븯湲 쐞빐꽌 startssl 紐낅졊쑝濡 떆옉.

    [root@localhost ZendOptimizer-2.6.2-linux-glibc21-i386]# cd /usr/local/apache2/conf
    [root@localhost conf]# /usr/local/apache/bin/apachectl stop
    [root@localhost conf]# /usr/local/apache/bin/apachectl startssl