::: °­ÁÂ/¼Ò½º/¹®¼­ :::

°­ÁÂ/¼Ò½º/¹®¼­ ¼º°Ý¿¡ ¸ÂÁö ¾Ê´Â ±¤°í,ºñ¹æ,Áú¹®ÀÇ ±ÛÀº Áï½Ã »èÁ¦Çϸç
³»¿ëÀ» º¹»çÇÏ¿© »ç¿ëÇÒ °æ¿ì ¹Ýµå½Ã ÀÌ°÷(http://www.howto.pe.kr)À» Ãâó·Î ¸í½ÃÇÏ¿© ÁÖ¼¼¿ä


Category

  ±è¿µ´ë(2003-05-04 00:24:03, Hit : 8521, Vote : 1513
 http://www.howto.pe.kr
 [°­ÁÂ] À¥·Î±×ºÐ¼®À» À§ÇÑ Webalizer + GDlib + PNGlib + Zlib ¼³Ä¡

// Á¦   ¸ñ: À¥·Î±×ºÐ¼®À» À§ÇÑ Webalizer + GDlib + PNGlib + Zlib ¼³Ä¡
// ÀÛ¼ºÀÚ: ±è¿µ´ë( http://www.howto.pe.kr )

¼³Ä¡È¯°æ: Redhat 7.3, Kernel 2.4.18

* ¼³Ä¡µÇ´Â ȯ°æ¿¡ Apache + MySQL + PHP4 + Zend °¡ ¼Ò½º·Î ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇϹǷÎ
  Webalizer + GDlib + PNGlib + Zlib ¼³Ä¡¿Í ÇÔ²² ¼³¸íÇÕ´Ï´Ù


1.¼³Ä¡¿¡ ÇÊ¿äÇÑ ÆÄÀÏ ´Ù¿î¹Þ±â
  mysql-3.23.51.tar.gz  ( http://www.mysql.com/downloads/mysql-3.23.html )
  apache_1.3.27.tar.gz  ( http://www.apache.org/dist/httpd/ )
  php-4.1.2.tar.gz ( http://www.php.net/downloads.php )
  ZendOptimizer-1.3.1-Linux_glibc21-i386.tar.gz ( https://www.zend.com/store/products/zend-optimizer.php )
  webalizer-2.01-10-src.tgz ( ftp://ftp.superuser.co.kr/weblog/webalizer/ )
  gd-1.8.3.tar.gz ( wget http://www.boutell.com/gd/http/gd-1.8.3.tar.gz )
  libpng-1.0.8.tar.gz ( wget http://ftp.monash.edu.au/pub/gnuplot/libpng-1.0.8.tar.gz )
  zlib-1.1.3.tar.gz ( wget http://ftp.monash.edu.au/pub/gnuplot/zlib-1.1.3.tar.gz )

  ´Ù¿î¹ÞÀº ÆÄÀϵéÀ» /usr/local/src ¿¡ ÀúÀåÇÕ´Ï´Ù(¹°·Ð ´Ù¸¥°÷¿¡ ÀúÀåÇصµ ¹«°üÇÏÁö¸¸ °ü¸®ÀÇ Æí¸®¸¦ À§ÇØ
  /usr/local/src ¿¡ ÀúÀåÀ» Çß½À´Ï´Ù)

2.ÀÌ¹Ì RPMÀ¸·Î ¼³Ä¡µÈ ÆÐÅ°Áö Á¦°ÅÇϱâ (root ±ÇÇÑÀ¸·Î ÀÛ¾÷)
  ¸ÕÀú apache ¶Ç´Â mysql ¼­¹ö°¡ °¡µ¿ÁßÀÎÁö È®ÀÎÇÏ½Ã°í °¡µ¿ÁßÀ̶ó¸é stopÀ» ÇÕ´Ï´Ù
    [root@howto src]# /etc/rc.d/init.d/httpd stop      apache ¼­¹ö Á¾·á
    [root@howto src]# /etc/rc.d/init.d/mysqld stop     mysql ¼­¹ö Á¾·á

  Redhat ¹èÆ÷º»¿¡ ÀÇÇØ ÀÌ¹Ì ¼³Ä¡µÈ RPM µéÀÌ ÀÖ´ÂÁö È®ÀÎÇÕ´Ï´Ù(¾ø´Ù¸é 3¹øÀ¸·Î °Ç³Ê¶Ù¼¼¿ä)
    [root@howto src]# rpm -qa | grep apache    
    [root@howto src]# rpm -qa | grep mysql
    [root@howto src]# rpm -qa | grep php    

  ¿¹¸¦µé¾î apacheÀÇ °æ¿ì rpm -qa | grep apache ¸¦ ÇϰԵǸé
    apache-x.x.xx-xx
    apache-devel-x.x.xx-xx
  µÎ°³ÀÇ ÆÐÅ°Áö°¡ Ãâ·ÂµÇÁö¸¸ rpm -e apache ÇϰԵǸé ÀÇÁ¸¼ºÆÄÀϵéÀÌ ÀÖ´Ù°í ¿¡·¯¸¦ Ç¥½ÃÇÕ´Ï´Ù
  À̶§´Â ¸ÕÀú È­¸é¿¡ Ãâ·ÂµÈ ÀÇÁ¸¼º ÆÐÅ°ÁöµéÀ» ÇϳªÇϳª »èÁ¦ÇÕ´Ï´Ù
    [root@howto src]# rpm -e mod_perl
    [root@howto src]# rpm -e php
    [root@howto src]# rpm -e mod_ssl
    [root@howto src]# rpm -e mod_dav
    ...
  ÀÇÁ¸¼ºÀÌ ÀÖ´Â ÆÐÅ°Áö¸¦ ÀüºÎ Á¦°ÅÇÏ°í³ª¼­ ¾ÆÆÄÄ¡¸¦ Á¦°ÅÇÕ´Ï´Ù
    [root@howto src]# rpm -e apache
    [root@howto src]# rpm -e apache-devel
  ³ª¸ÓÁö php, mysql °ü·Ã ÆÐÅ°Áöµµ À§¿Í °°Àº ¹æ¹ýÀ¸·Î »èÁ¦ÇÕ´Ï´Ù
  
  ±×¸®°í /var/lib/mysql µð·ºÅ丮°¡ ÀÖ´Ù¸é »èÁ¦ÇÕ´Ï´Ù
  ÀÌ µð·ºÅ丮´Â ¹èÆ÷ÆÇÀÌ »ý¼º½ÃŲ °ÍÀ¸·Î mysql ÀÇ Å×ÀÌºí µ¥ÀÌÅ͵éÀÌ µé¾î ÀÖ½À´Ï´Ù
    [root@howto src]# rm -rf /var/lib/mysql

3.¾ÐÃàÇ®±â
  ´Ù¿î¹ÞÀº ¼Ò½ºÆÄÀϵéÀ» /usr/local/src µð·ºÅ丮¿¡¼­ ¾ÐÃàÀ» DZ´Ï´Ù

    [root@howto src]# tar zxvf mysql-3.23.51.tar.gz
    [root@howto src]# tar zxvf apache_1.3.27.tar.gz
    [root@howto src]# tar zxvf php-4.1.2.tar.gz
    [root@howto src]# tar zxvf ZendOptimizer-1.3.1-Linux_glibc21-i386.tar.gz
    [root@howto src]# tar zxvf webalizer-2.01-10-src.tgz
    [root@howto src]# tar zxvf gd-1.8.3.tar.gz
    [root@howto src]# tar zxvf libpng-1.0.8.tar.gz
    [root@howto src]# tar zxvf zlib-1.1.3.tar.gz

4.MySQL ¼³Ä¡
  ¾ÐÃàÀ» Ǭ mysql µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ÇÕ´Ï´Ù
    [root@howto mysql-3.23.51]# ./configure --prefix=/usr/local/mysql --with-charset=euc_kr --localstatedir=/home/mysql/data

  --prefix=/usr/local/mysql  Àº ¼³Ä¡ µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ°í
  --with-charset=euc_kr  mysql  ¿¡¼­ ÇѱÛÀ» Áö¿øÇÒ ¼ö ÀÖµµ·Ï ÇÏ°í
  --localstatedir=/home/mysql/data  DBÀÇ µ¥ÀÌÅÍ tableÀ» ÆÄÀÏ·Î ÀúÀåÇÒ µð·ºÅ丮¸¦ ÁöÁ¤

  configureÇÑ ÈÄ "Thank you for choosing MySQL!" À̶ó´Â ¸Þ½ÃÁö°¡ ³ª¿Â´Ù¸é MySQLÀ» ÄÄÆÄÀÏÇÒ Áغñ°¡
  ´Ù µÇ¾ú´Ù´Â °ÍÀÌ´Ù

  ¸¸¾à MySQLÀ» ´Ù½Ã ¼³Ä¡ÇÒ °æ¿ì´Â
  [root@howto mysql-3.23.51]# make clean
  [root@howto mysql-3.23.51]# make distclean
  ¸¦ ½ÇÇàÇÏ¿© ȯ°æ¼³Á¤À» ÃʱâÈ­ ÇÑ ÈÄ configure ÇÑ´Ù

  ¾Æ·¡¿Í °°ÀÌ ÄÄÆÄÀÏÀ» ½ÃÀÛÇϸç ÄÄÇ»ÅÍ »ç¾ç¿¡ µû¶ó ¼öºÐ¿¡¼­ ¼ö½ÊºÐ ¼Ò¿äµÈ´Ù
    [root@howto mysql-3.23.51]# make    

  ¿©±â±îÁö µÇ¾ú´Ù¸é mysql À̶ó´Â »ç¿ëÀÚ group°ú id¸¦ ¸¸µé¾î¾ß ÇÑ´Ù
    [root@howto mysql-3.23.51]# groupadd mysql
    [root@howto mysql-3.23.51]# useradd -g mysql mysql
    [root@howto mysql-3.23.51]# mkdir /home/mysql/data
    [root@howto mysql-3.23.51]# chown -R mysql /home/mysql/data
    [root@howto mysql-3.23.51]# chgrp -R mysql /home/mysql/data
    [root@howto mysql-3.23.51]# cp support-files/my-medium.cnf /etc/my.cnf

  ¾Æ·¡¿Í °°ÀÌ ¼³Ä¡ÀÛ¾÷À» ÇÑ´Ù
    [root@howto mysql-3.23.51]# make install

  ¼³Ä¡ÈÄ mysqlÀÇ µ¥ÀÌÅ͸¦ °ü¸®ÇÒ ±âÃÊÀûÀÎ DB(mysql)¿Í Å×À̺í(db,user,func,...)À» »ý¼ºÇÑ´Ù
    [root@howto mysql-3.23.51]# scripts/mysql_install_db      
  mysql_install_dbÀº ¹Ýµå½Ã Çѹø¸¸ ½ÇÇà½ÃÄÑ¾ß ÇÕ´Ï´Ù

  ¸î°¡Áö DB ÆÄÀÏÀÌ root ·Î µÇ¾î ÀÖÀ¸¹Ç·Î ´Ù½ÃÇѹø ±ÇÇÑÀ» ¹Ù²ãÁØ´Ù
    [root@howto mysql-4.0.13]# chown -R mysql /home/mysql/data
    [root@howto mysql-4.0.13]# chgrp -R mysql /home/mysql/data

  ±×´ÙÀ½ mysqlÀÌ make installµÈ µð·ºÅ丮(/usr/local/mysql) ¾Æ·¡ÀÇ share/mysql/mysql.server ¸¦
  vi µîÀ¸·Î ¿­¾î¼­ 107 ¶óÀÎÂë¿¡ "$bindir/safe_mysqld --datadir=$datadir --pid-file=$pid_file" ºÎºÐÀÇ
  µÚ¿¡ "--language=korean" ¸¦ Ãß°¡ÇÏ¿© ÇѱÛÀ» Áö¿øÇϵµ·Ï ÇÑ´Ù
    if test -x $bindir/safe_mysqld
    then
      # Give extra arguments to mysqld with the my.cnf file. This script may
      # be overwritten at next upgrade.
      $bindir/safe_mysqld --datadir=$datadir --pid-file=$pid_file --language=korean &
      # Make lock for RedHat / SuSE
      if test -w /var/lock/subsys
      then
        touch /var/lock/subsys/mysql
      fi
    else
      echo "Can't execute $bindir/safe_mysqld"
    fi
    ;;

  ¿©±â±îÁö´Â ½ÇÇàȯ°æ¿¡ ´ëÇÑ ³»¿ëÀ̾ú°í ¸Å¹ø ºÎÆýà ÀÚµ¿À¸·Î mysql ÀÌ ½ÇÇàµÇµµ·Ï ¾à°£ÀÇ
  ÀÛ¾÷À» ÇØÁÖ¸é ¼³Ä¡´Â ³¡³­´Ù

  ½Ã½ºÅÛ ºÎÆýÿ¡ ÀÚµ¿ ½ÇÇàµÇµµ·Ï ÇØÁØ´Ù
    [root@howto mysql-3.23.51]# cp -p /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
    [root@howto mysql-3.23.51]# ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S90mysqld
    [root@howto mysql-3.23.51]# ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc5.d/S90mysqld

  Á¤È®È÷ ¼Â¾÷µÇ¾ú´ÂÁö ntsysv ¸í·ÉÀ» ÀÌ¿ëÇÏ¿© mysqld °¡ ³ªÅ¸³ª°í ¼Â¾÷µÇ¾ú´ÂÁö("*" Ç¥) È®ÀÎÇÑ´Ù
    [root@howto mysql-3.23.51]# ntsysv

  ±×¸®°í mysql ¼­¹öÀÇ ½ÃÀÛ°úÁ¾·á ±×¸®°í °ü·Ã ¸í·É¾î¸¦ »ç¿ëÇϱâ ÆíÇÏ°Ô ÇϱâÀ§Çؼ­ ºÎÆÃȯ°æ¿¡ PATH¸¦ ÁöÁ¤ÇØ µÐ´Ù
    [root@howto mysql-3.23.51]# vi /root/.bash_profile

    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
    BASH_ENV=$HOME/.bashrc
    USERNAME="root"

  ¼³Ä¡°¡ ¿Ï·áµÇ¾úÀ¸¹Ç·Î mysql ¼­¹öÀÇ ±¸µ¿À» Å×½ºÆ® Çغ»´Ù
    [root@howto mysql-3.23.51]# /etc/rc.d/init.d/mysqld start  mysql¼­¹ö ½ÃÀÛ
    [root@howto mysql-3.23.51]# ps -ef | grep mysql    MySQL ÇÁ·Î¼¼½º È®ÀÎÇϱâ
    [root@howto mysql-3.23.51]# /etc/rc.d/init.d/mysqld stop   mysql ¼­¹ö Á¾·á

5.GD lib, PNG lib, Zlib ¼³Ä¡
  GD lib ¼³Ä¡¸¦ À§ÇØ ÇÔ²² ´Ù¿î¹ÞÀº zlib¿Í PNG lib¸¦ ¸ÕÀú ¼³Ä¡ÇØ¾ß ÇÕ´Ï´Ù
  °¢°¢ ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© ¼³Ä¡ÇÕ´Ï´Ù

    [root@howto zlib-1.1.3]# ./configure
    [root@howto zlib-1.1.3]# make
    [root@howto zlib-1.1.3]# make install

    [root@howto libpng-1.0.8]# cd scripts
    [root@howto scripts]# cp makefile.linux ../makefile
    [root@howto scripts]# cd ..
    [root@howto libpng-1.0.8]# make test
    [root@howto libpng-1.0.8]# make install

    [root@howto src]# mv gd-1.8.3 /usr/local/gd-1.8.3
    [root@howto src]# cd /usr/local/gd-1.8.3
    [root@howto gd-1.8.3]# make all
    
6.Apache Configure
  Apache ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ÇÕ´Ï´Ù
    [root@howto apache_1.3.27]# ./configure --prefix=/usr/local/apache

  --prefix=/usr/local/apache  Àº ¼³Ä¡ µð·ºÅ丮¸¦ ÁöÁ¤ÇÕ´Ï´Ù

  ApacheÀÇ make, make install Àº ³ªÁß¿¡ Çϴµ¥ ÀÌÀ¯´Â mysql, php µîÀÌ ¿ÏÀüÈ÷ ¼³Ä¡µÇ¾î¾ß apache ÄÄÆÄÀϽÃ
  À̵éÀ» Âü°íÇϱ⠶§¹®ÀÔ´Ï´Ù
      
7.PHP ¼³Ä¡
  PHP ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ÇÕ´Ï´Ù

    [root@howto php-4.1.2]# ./configure --with-config-file-path=/etc/httpd
    --prefix=/usr --exec-prefix=/usr
    --bindir=/usr/bin --sbindir=/usr/sbin
    --with-mysql=/usr/local/mysql
    --with-apache=../apache_1.3.27
    --with-gd=/usr/local/gd-1.8.3
    --disable-debug
    --enable-track-vars
    --enable-safe-mode

  --with-config-file-path=/etc/httpd ´Â ¿ø·¡ ApacheÀÇ È¯°æÆÄÀÏÀÌ ÀúÀåµÉ µð·ºÅ丮 ÀÌÁö¸¸
                                        °ü¸®ÀÇ Æí¸®¸¦ À§ÇØ PHP ȯ°æÆÄÀÏ(php.ini)µµ ÀÌ°÷¿¡ ÀúÀåÇÕ´Ï´Ù
  --with-mysql=/usr/local/mysql ´Â mysqlÀÌ ¼³Ä¡µÈ µð·ºÅ丮¸¦,
  --with-apache=../apache_1.3.27 ´Â Apache ¼³Ä¡°¡ ¾Æ´Ï¶ó ¾ÐÃàÀ» Ǭ µð·ºÅ丮¸¦,
  --with-gd=/usr/local/gd-1.8.3 ´Â GD lib°¡ ¼³Ä¡µÈ µð·ºÅ丮¸¦,
  --enable-track-vars ´Â HTTP_GET_VARS, HTTP_POST_VARS, HTTP_COOKIE_VARS Àü¿ª ¹è¿­¿¡ µé¾î ÀÖ´Â
                         GET, POST, cookie º¯¼öµéÀÌ ¾îµð¼­ ¿Ô´ÂÁö ÃßÀû(track)Ç϶ó´Â °ÍÀÌ°í,
  --disable-debug ´Â ´ÙÀ½¿¡ ¼³Ä¡ÇÒ ZendOptimizer ¸¦ À§ÇÑ °ÍÀÔ´Ï´Ù

  configure°¡ Àß µÇ¾ú´Ù¸é °°Àº µð·ºÅ丮¿¡¼­ make, make install ÇÏ¿© ÄÄÆÄÀÏ/¼³Ä¡Çϼ¼¿ä
    [root@howto php-4.1.2]#make
    [root@howto php-4.1.2]#make install

8.Apache ÄÄÆÄÀÏ/¼³Ä¡
  Apache ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ¸¦ ´Ù½Ã ÇÕ´Ï´Ù
    [root@howto apache_1.3.27]# ./configure --prefix=/usr/local/apache
    --activate-module=src/modules/php4/libphp4.a
    --enable-module=so --enable-shared=max
    --sysconfdir=/etc/httpd/conf --datadir=/home/httpd
    --localstatedir=/var/httpd --htdocsdir=/home/httpd/html
    --logfiledir=/var/log/httpd

  --prefix=/usr/local/apache  Àº ¼³Ä¡ µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ°í,
  --sysconfdir=/etc/httpd/conf ´Â ApacheÀÇ È¯°æÆÄÀÏÀÌ ÀúÀåµÉ µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ°í,
  --datadir=/home/httpd ´Â ½ÇÁ¦ ȨÆäÀÌÁö µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ°í
  --htdocsdir=/home/httpd/html ´Â ½ÇÁ¦ ȨÆäÀÌÁöÀÇ ¹®¼­(document root) µð·ºÅ丮¸¦ ÁöÁ¤ÇÕ´Ï´Ù

  Apache¸¦ ÄÄÆÄÀÏ/¼³Ä¡ÇÕ´Ï´Ù
    [root@howto apache_1.3.27]# make
    [root@howto apache_1.3.27]# make install

  PHPÀÇ ¾ÐÃàÀ» Ǭ µð·ºÅ丮¿¡ ÀÖ´Â PHP ȯ°æÆÄÀÏ(php.ini)À» PHP configure½Ã --with-config-file-path ·Î
  ÁöÁ¤ÇÑ µð·ºÅ丮¿¡ º¹»çÇÕ´Ï´Ù
    [root@howto apache_1.3.27]# cp ../php-4.1.2/php.ini-dist /etc/httpd/php.ini  

  ½Ã½ºÅÛ ºÎÆýà ÀÚµ¿½ÇÇàÀÌ µÇµµ·Ï Çϱâ À§ÇÏ¿© ¼³Á¤À» ÇÕ´Ï´Ù.
    [root@howto apache_1.3.27]# cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/apachectl
    [root@howto apache_1.3.27]# ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc3.d/S85httpd
    [root@howto apache_1.3.27]# ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc5.d/S85httpd
    [root@howto apache_1.3.27]# ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc0.d/K15httpd
    [root@howto apache_1.3.27]# ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc1.d/K15httpd
    [root@howto apache_1.3.27]# ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc6.d/K15httpd

  Apache configure½Ã --sysconfdir ·Î ÁöÁ¤ÇÑ È¯°æÆÄÀÏÀÌ ÀúÀåµÈ µð·ºÅ丮ÀÇ httpd.conf ¸¦ vi µîÀ¸·Î ¿­¾î¼­
  404 ¶óÀÎÂë¿¡ "DirectoryIndex index.html index.htm" ¸¦ ¾Æ·¡Ã³·³ ¹Ù²Ù¾î php ÆÄÀϵµ Default ½ÃÀÛÆäÀÌÁö·Î
  ¼³Á¤ÀÌ °¡´ÉÇϵµ·Ï ¼öÁ¤ÇØ ÁÝ´Ï´Ù

    #
    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index.  Separate multiple entries with spaces.
    #
    <IfModule mod_dir.c>
        DirectoryIndex index.php index.php3 index.html index.htm
    </IfModule>

  ±×´ÙÀ½ 811 ¶óÀÎÂë¿¡ ¾Æ·¡ºÎºÐÀ» ã¾Æ¼­ µÎÁÙÀ» Ãß°¡ÇÑ´Ù
    #
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    AddType application/x-tar .tgz
    AddType image/x-icon .ico
    AddType application/x-httpd-php .php .php3 .inc .ph .htm
    AddType application/x-httpd-php-source .phps

  Apache ¸¦ ½ÇÇà½ÃÄѺ¾´Ï´Ù
    [root@howto apache_1.3.27]# /etc/rc.d/init.d/apachectl start          
    
9.Zend Optimizer ¼³Ä¡
  ¼³Ä¡ÀÛ¾÷À» ÇϱâÀü¿¡ ÇÑ°¡Áö ÁÖÀÇÇÒ°ÍÀº ApacheÀÇ È¯°æÆÄÀÏÀÌ ÀúÀåµÈ µð·ºÅ丮(/etc/httpd/conf)¸¦
  /usr/local/apache ¾Æ·¡¿¡ º¹»çÇØ¾ß ÇÕ´Ï´Ù
  Á¤È®ÇÑ ÀÌÀ¯´Â ¸ð¸£°ÚÁö¸¸ Zend Optimizer°¡ Apache configure½Ã ÁöÁ¤ÇÑ --sysconfdir=/etc/httpd/conf
  ¸¦ ¾ËÁö ¸øÇÏ´Â°Í °°½À´Ï´Ù

  Zend Optimizer ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© Install.sh ½©À» ½ÇÇàÇÕ´Ï´Ù
    [root@howto ZendOptimizer-1.3.1-Linux_glibc21-i386]# ./install.sh

  °¢ ´Ü°èº° È­¸éÀÌ Àִµ¥ °¢ È­¸é¸¶´Ù ¾Æ·¡¿Í °°ÀÌ ÀÔ·ÂÇÑ ÈÄ OK Çϼ¼¿ä
    Specify the location where to install Zend Optimizer
    -> /usr/local/Zend

    Confirm the location of your php.ini file
    -> /etc/httpd

    Are you using the Apache web server?
    -> Yes

    Specify the location of your Apache root directory
    -> /usr/local/apache

    Install has detected PHP version 4.1.2
    Does this look correct?
    -> Yes

  ¼³Ä¡ ¿Ï·á ¸Þ½ÃÁö ¶á´ÙÀ½ Apache¸¦ Àç½ÃÀÛ ÇØÁÝ´Ï´Ù
    [root@howto ZendOptimizer-1.3.1-Linux_glibc21-i386]# /etc/rc.d/init.d/apachectl restart

10.Apache ¹× PHP °Ë»çÇϱâ
  Apache ¼­¹ö°¡ ±¸µ¿ÁßÀÎ »óÅ¿¡¼­ Apache configure ½Ã --htdocsdir ·Î ÁöÁ¤ÇÑ È¨µð·ºÅ丮(/home/httpd/html)·Î
  À̵¿ÇÏ¿© phpinfo.php ¶ó´Â ÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ ÆíÁýÇÕ´Ï´Ù

    <?
      phpinfo();
    ?>

  ±×·±´ÙÀ½ Ãâ·ÂµÇ´Â ³»¿ëÁß¿¡ mysql, gd, Zend Optimizer ÀÇ ³»¿ëÀÌ ÀÖ´ÂÁö È®ÀÎÇÑ´Ù
    http://localhost/phpinfo.php
  

11.Webalizer ¼³Ä¡
  Webalizer ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÏ¿© configure ¸¦ ´Ù½Ã ÇÕ´Ï´Ù
    [root@howto webalizer-2.01-10]# ./configure --with-language=korean --enable-dns --with-gdlib=/usr/local/gd-1.8.3

  --with-language=korean ´Â webalizerÀÇ À¥Ãâ·Â °á°ú¸¦ ÇѱÛÀ» º¸°íÀÚ ÇÒ¶§»ç¿ëÇÑ´Ù
  --with-gdlib=/usr/local/gd-1.8.3 ´Â gd ±×·¡ÇÈ ¶óÀ̺귯¸®ÀÇ ¶óÀ̺귯¸® ÆÄÀÏÀÇ °æ·Î¸¦ ÁöÁ¤ÇÑ´Ù
  --enable-dns Àº µµ¸ÞÀÎ lookup Äڵ带 »ç¿ëÇÒÁö¸¦ °áÁ¤ÇÏ´Â °ÍÀ¸·Î ÀϹÝÀûÀ¸·Î ÀÌ°ÍÀ» Æ÷ÇÔ ½ÃŲ´Ù

  ÄÄÆÄÀÏ/¼³Ä¡ÇÕ´Ï´Ù
    [root@howto webalizer-2.01-10]#make
    [root@howto webalizer-2.01-10]#make install

  /etc/webalizer.conf ÆÄÀÏÀÌ ¾ø´Ù¸é /etc/webalizer.conf.sample À» ¿­¾î ¾Æ·¡´ë·Î ¹Ù²Ù¾î /etc/webalizer.conf À̸§À¸·Î
  ´Ù½Ã ÀúÀåÇÑ´Ù. óÀ½ /etc/webalizer.conf.sample ¸¦ ¿­¸é ÀüºÎ ÁÖ¼®À¸·Î 󸮵Ǿî ÀÖÀ¸¹Ç·Î ÇÊ¿äÇÑ ¿É¼ÇÀÇ ÁÖ¼®À» ¿­°í °íÄ£´Ù
  
    LogFile      /var/log/httpd/access_log  -> ·Î±×ºÐ¼®ÇÒ ·Î±× ÆÄÀÏ(Apache ·Î±× ÆÄÀÏ)
    LogType      clf  -> ·Î±× ÆÄÀÏÀÇ Çü½ÄÀ» ÁöÁ¤ÇÑ´Ù. clf, ftp, squid°¡ ÀÖÀ¸¸ç ±âº»°ªÀº clfÀÌ´Ù
    OutputDir    /home/www/public_html/usage  -> webalizer·Î ºÐ¼®µÈ °á°ú(index.html·Î ÀÖ´Ù)¸¦ ÀúÀåÇÒ °æ·Î¸¦ ÁöÁ¤ÇÑ´Ù
    ReportTitle  Usage Statistics for  -> Åë°è Ãâ·Â½Ã Á¦¸ñÀ» Àû´Â´Ù
    HostName     www.yoursite.com  -> Åë°è¸¦ ³»´Â »çÀÌÆ®ÀÇ µµ¸ÞÀθíÀ» ³Ö´Â´Ù(ȨÆäÀÌÁö ÁÖ¼Ò)
    PageType  htm*
    PageType  cgi
    PageType  php3
    PageType  php  -> php4 »ç¿ëÀÚ´Â phpµµ Ãß°¡
    HideSite  198.162.*  -> ÁöÁ¤ÇÑ »çÀÌÆ®¿¡ ´ëÇؼ­´Â Åë°è¿¡¼­ ¼û±ä´Ù(count °á°ú´Â Æ÷ÇÔ)
    HideSite  localhost
    HideURL   *.gif  -> ÁöÁ¤ÇÑ ÆÄÀϵé ÂüÁ¶¿¡ ´ëÇؼ­´Â Åë°è¿¡¼­ ¼û±ä´Ù(count °á°ú´Â Æ÷ÇÔ)
    HideURL   *.GIF
    HideURL   *.jpg
    HideURL   *.JPG
    HideURL   *.png
    HideURL   *.PNG
    HideURL   *.ra
    HideURL   *.css
    IgnoreURL /~*  -> ÁöÁ¤ÇÑ URL¿¡ ´ëÇؼ­´Â ¹«½ÃÇÑ´Ù(cout °á°úµµ ¹«½ÃµÈ´Ù).
    IgnoreURL /board/*
  
  À§¿¡¼­ ·Î±×ºÐ¼® °á°ú¸¦ ÀúÀåÇÒ µð·ºÅ丮¸¦ ÁöÁ¤ÇßÀ¸¹Ç·Î /home/www/public_html·Î À̵¿ÇÏ¿© usage µð·ºÅ丮¸¦ ¸¸µé¾î ÁØ´Ù
    [root@howto public_html] mkdir usage

  /usr/bin/webalizer ¸¦ ½ÇÇàÇÏ¿© ·Î±×¸¦ ºÐ¼®ÇÑ ÈÄ http://ÇØ´çURL/usage/index.html ¸¦ ¿­¸é ºÐ¼® °á°ú¸¦ º¼ ¼ö ÀÖ´Ù
  À§¿¡¼­ ¸¸µç ¼³Á¤ÆÄÀÏÀÌ ¾Æ´Ñ ¶Ç´Ù¸¥ À¯ÇüÀÇ ¼³Á¤À» ¸¸µé¾úÀ» °æ¿ì´Â webalizer -c somehost.conf¿Í °°ÀÌ ½ÇÇàÇÒ ¼öµµ ÀÖ´Ù
 
  ¸¸¾à webalizer ¸¦ ½ÇÇàÇßÀ»¶§ "webalizer: error while loading shared libraries: libpng.so.2" ¿¡·¯¸¦ ¸¸³­´Ù¸é
  find / -name libpng.so.2 ¸í·ÉÀ» ½ÇÇàÇÏ¿© libpng.so.2 °¡ À§Ä¡ÇÑ µð·ºÅ丮(´ëºÎºÐ /usr/local/lib)¸¦
  /etc/ld.so.conf ÆÄÀÏ¿¡ Ãß°¡ÇÑ ÈÄ ldconfig ¸í·É¾î¸¦ ½ÇÇàÇØÁØ´Ù
 
  ·Î±× ºÐ¼®¿¡ ´ëÇÑ Åë°èó¸® ÀÛ¾÷À» ÁÖ±âÀûÀ¸·Î ÇÏ·Á¸é cron¿¡ webalizer ½ÇÇàÀ» µî·ÏÇصдÙ
  root¿¡¼­ crontab -eÀ» ÅëÇØ µî·Ï½Ãų ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î 0½Ã 0ºÐ¿¡ webalizer¸¦ ½ÇÇàÇÏ°í ½Í´Ù¸é ´ÙÀ½°ú °°ÀÌ µî·Ï½ÃÅ°¸é µÈ´Ù
    00 00 * * * /usr/local/bin/webalizer






62   [Unix/Linux] [¼Ò½º] top for SunOS 5.x (Solaris 2.x)  ±è¿µ´ë 2004/02/20 15448 1330
61   [Unix/Linux] [°­ÁÂ] ÀÎÅÚ ¼¾Æ®¸®³ë ¹«¼±·£ Ä«µå: ndiswrapper  ±è¿µ´ë 2004/06/27 12541 2189
60   [Unix/Linux] [POSIX IPC] mq_send() function - ¸Þ¼¼ÁöÅ¥  ±è¿µ´ë 2003/03/17 12399 1704
59   [Unix/Linux] [System V IPC] shmget() function - °øÀ¯¸Þ¸ð¸®  ±è¿µ´ë 2003/03/17 11191 1789
58   [Unix/Linux] [¼Ò½º] top for System V Release 4, Intel or Sparc CPU  ±è¿µ´ë 2004/02/20 11164 1288
57   [Unix/Linux] [Thread] pthread_cond_timedwait() function  ±è¿µ´ë 2003/03/17 11093 1875
56   [Unix/Linux] [Thread] pthread_setschedparam() function  ±è¿µ´ë 2003/03/17 10902 1868
55   [Unix/Linux] [System V IPC] shmctl() function - °øÀ¯¸Þ¸ð¸®  ±è¿µ´ë 2003/03/17 9881 1704
54   [Unix/Linux] [°­ÁÂ] Apache + MySQL + PHP4 + Zend Optimizer ¼³Ä¡  ±è¿µ´ë 2003/04/15 8666 1600
  [Unix/Linux] [°­ÁÂ] À¥·Î±×ºÐ¼®À» À§ÇÑ Webalizer + GDlib + PNGlib + Zlib ¼³Ä¡  ±è¿µ´ë 2003/05/04 8521 1513
52   [Unix/Linux] [System V IPC] msgsnd() function - ¸Þ¼¼ÁöÅ¥  ±è¿µ´ë 2003/03/17 8336 1920
51   [Unix/Linux] [POSIX IPC] mq_receive() function - ¸Þ¼¼ÁöÅ¥  ±è¿µ´ë 2003/03/17 8256 1822
50   [Unix/Linux] [POSIX IPC] »ý»êÀÚ/¼ÒºñÀÚ - ¼¼¸¶Æ÷¾î  ±è¿µ´ë 2003/03/17 8117 5691
49   [Unix/Linux] [¼Ò½º] String Çؽ¬(hash) ÇÔ¼ö  ±è¿µ´ë 2003/07/29 8047 1589
48   [Unix/Linux] [Thread] pthread_cancel() function  ±è¿µ´ë 2003/03/17 8046 3802
47   [Unix/Linux] [Thread] »ý»êÀÚ/¼ÒºñÀÚ 2  ±è¿µ´ë 2003/03/17 8004 1533
46   [Unix/Linux] [Thread] pthread_attr_getschedparam() function  ±è¿µ´ë 2003/03/17 7013 8214
45   [Unix/Linux] [System V IPC] msgrcv() function - ¸Þ¼¼ÁöÅ¥  ±è¿µ´ë 2003/03/17 7011 1695
44   [Unix/Linux] [Thread] Àаí/¾²±â  ±è¿µ´ë 2003/03/17 6829 1529
43   [Unix/Linux] [System V IPC] semget() function - ¼¼¸¶Æ÷¾î  ±è¿µ´ë 2003/03/17 6682 1658

1 [2][3][4]
 

Copyright 1999-2024 Zeroboard / skin by zero