´ÙÀ½ ÀÌÀü Â÷·Ê

4. Apache + Zend Optimizer ÄÄÆÄÀÏ

¾ÆÆÄÄ¡¿Í Zend ¸ðµÎ /usr/local µð·ºÅ丮¿¡ Ç®¾úÀ¸¸ç ¾ÆÆÄÄ¡ÀÇ ¼Ò½º µð·ºÅ丮´Â /usr/local/apache_1.3.12 À̸ç ZendÀÇ ¼Ò½º µð·ºÅ丮´Â /usr/local/php-4.0b4pl1 ÀÌ´Ù. ¸ðµç°Ç root °èÁ¤À¸·Î ÀÛ¾÷ÇÑ´Ù.

        # cd /usr/local/apache_1.3.12     (¾ÆÆÄÄ¡ ¼Ò½º µð·ºÅ丮·Î À̵¿)

        # ./configure --prefix=/etc/httpd (ÄÄÆÄÀÏÈÄ »ý¼º ÆÄÀÏÀÇ °æ·Î´Â
                                            /etc/httpd ÀÌ´Ù)
        

        # cd /usr/local/php-4.0b4pl1      (Zend ¼Ò½º µð·ºÅ丮·Î À̵¿)

        # ./configure --with-apache=/usr/local/apache_1.3.12
                      --disable-debug     (Optimizer¸¦ À§ÇÑ ¿É¼Ç)                               
                      (ÀÌ¿Ü ´Ù¸¥ Ãß°¡ ¿É¼Çµéµµ ÇÑÁÙ¿¡ ÀÌ¾î ½á¾ßÇÑ´Ù)
        # make
        # make install                    (Zend ¼³Ä¡)

        # cp php.ini-dist /usr/local/lib/php.ini (php ¿É¼Çµé)

        # cd /usr/local/apache_1.3.12     (¾ÆÆÄÄ¡ µð·ºÅ丮·Î À̵¿)
        # ./configure --prefix=/etc/httpd
                      --activate-module=src/modules/php4/libphp4.a 
                (Zend¸¦ ¸ðµâ·Î Æ÷ÇÔ½ÃÅ´, ¿ª½Ã ÇÑÁÙ·Î ÀÌ¾î ½á¾ßÇÑ´Ù)
        # make
        # make install                    (¾ÆÆÄÄ¡ ¼³Ä¡)
¼³Ä¡ÈÄ ¾ÆÆÄÄ¡ ȯ°æ¼³Á¤ ÆÄÀÏÀÎ /etc/httpd/conf/httpd.conf ÆÄÀÏÀ» ¿­¾î ´ÙÀ½°ú °°ÀÌ µÇ¾îÀÖ´ÂÁö È®ÀÎÇÏ°í ÁÖ¼®À» Ç®¾îÁØ´Ù.
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps

´ÙÀ½À¸·Î /usr/local/lib/php.ini ÆÄÀÏ¿¡ ´ÙÀ½ µÎÁÙÀ» Ãß°¡ÇÑ´Ù.(Optimizer¿¡¼­ Ãß°¡µÈ ºÎºÐ)

        zend_optimizer.optimization_level=1
        zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"

ÀÌÁ¦ ¾ÆÆÄÄ¡ µ¥¸óÀ» ¶ç¿î´Ù.

        /etc/httpd/bin/apachectl start


´ÙÀ½ ÀÌÀü Â÷·Ê