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

3. Apache + PHP ¼³Ä¡Çϱâ

  1. ȯ°æ¼³Á¤¹× ÄÄÆÄÀÏ
    ¾ÆÆÄÄ¡¿Í PHP¸ðµÎ /usr/local µð·ºÅ丮¿¡ Ç®¾úÀ¸¸ç ¾ÆÆÄÄ¡ÀÇ ¼Ò½º µð·ºÅ丮´Â
    /usr/local/apache_1.3.11À̸ç PHPÀÇ ¼Ò½º µð·ºÅ丮´Â /usr/local/php-4.0b3ÀÌ´Ù.
    ¸ðµç°Ç root °èÁ¤À¸·Î ÀÛ¾÷ÇÑ´Ù.
    
            # cd /usr/local/apache_1.3.11     (¾ÆÆÄÄ¡ ¼Ò½º µð·ºÅ丮·Î À̵¿)
    
            # ./configure --prefix=/etc/httpd (ÄÄÆÄÀÏÈÄ »ý¼º ÆÄÀÏÀÇ °æ·Î´Â
                                                /etc/httpd ÀÌ´Ù)
            
    
            # cd /usr/local/php-4.0b3         (php ¼Ò½º µð·ºÅ丮·Î À̵¿)
    
            # ./configure --with-apache=/usr/local/apache_1.3.11
                          --with-pgsql=/usr/local/pgsql 
                          --enable-track-vars 
                        (¾ÆÆÄÄ¡¿Í postgresÀÇ °æ·ÎÀε¥ ÇÑÁÙ¿¡ ÀÌ¾î ½á¾ßÇÑ´Ù)
            # make
            # make install                    (php ¼³Ä¡)
    
            # cp php.ini-dist /usr/local/lib/php.ini (php ¿É¼Çµé)
                                    
    
            # cd /usr/local/apache_1.3.11     (¾ÆÆÄÄ¡ µð·ºÅ丮·Î À̵¿)
            # ./configure --prefix=/etc/httpd
                          --activate-module=src/modules/php4/libphp4.a 
                    (php¸¦ ¸ðµâ·Î Æ÷ÇÔ½ÃÅ´, ¿ª½Ã ÇÑÁÙ·Î ÀÌ¾î ½á¾ßÇÑ´Ù)
            # make
            # make install                    (¾ÆÆÄÄ¡ ¼³Ä¡)
    
  2. ¼³Ä¡ ÈÄ
    ¼³Ä¡ÈÄ ¾ÆÆÄÄ¡ ȯ°æ¼³Á¤ ÆÄÀÏÀÎ /etc/httpd/conf/httpd.conf ÆÄÀÏÀ» ¿­¾î
    ´ÙÀ½°ú °°ÀÌ µÇ¾îÀÖ´ÂÁö È®ÀÎÇÏ°í ÁÖ¼®À» Ç®¾îÁØ´Ù.
    
            AddType application/x-httpd-php .php
            AddType application/x-httpd-php-source .phps
    

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