gzip -dc httpd-2.0.52.tar.gz | tar xvf -
gzip -dc php-4.3.9.tar.gz | tar xvf -
gzip -dc expat-1.95.5.tar.gz | tar xvf -
gzip -dc gdbm-1.8.3.tar.gz | tar xvf -
gzip -dc libiconv-1.8.tar.gz | tar xvf -

cd expat-1.95.5
./configure
make
su
make install

cd gdbm-1.8.3
./configure
make
su
make install

cd libiconv-1.8
./configure
make
su
make install

cd httpd-2.0.52
./configure
make
su
make install

./configure --with-apach2=../httpd-2.0.52 \
   --with-apxs2=/usr/local/apache2/bin/apxs \
   --enable-mbstring --enable-mbregex
make
su
make install

  • ServerName?
    ServerName tanuzou.com:80
  • User nobody
    Group "#-1"
    
    User nobody
    Group nogroup
  • LoadModule php4_module modules/libphp4.so
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

  • /usr/local/apache2/bin/apachectl start 
  • /usr/local/apache2/bin/apachectl stop 
  • /usr/local/apache2/bin/apachectl restart

  • Solaris
    • #!/sbin/sh
      
      APACHE_HOME=/usr/local/apache2
      CONF_FILE=/usr/local/apache2/conf/httpd.conf
      LD_LIBRARY_PATH=/usr/local/lib:/usr/ccs/lib:/usr/lib
      export LD_LIBRARY_PATH
      #PIDFILE=/var/run/httpd.pid
      PIDFILE=${APACHE_HOME}/logs/httpd.pid
      
      if [ ! -f ${CONF_FILE} ]; then
              exit 0
      fi
      
      case "$1" in
      start)
              /bin/rm -f ${PIDFILE}
              cmdtext="starting"
              ;;
      restart)
              cmdtext="restarting"
              ;;
      stop)
              cmdtext="stopping"
              ;;
      *)
              echo "Usage: $0 {start|stop|restart}"
              exit 1
              ;;
      esac
      
      echo "httpd $cmdtext."
      
      /bin/sh -c "${APACHE_HOME}/bin/apachectl $1" 2>&1 &
      status=$?
      
      if [ $? != 0 ]; then
              echo "$status"
              exit 1
      fi
      exit 0
    • cd /etc/rc0.d
      mv K16apache _K16apache
      ln -s ../init.d/apache K16apache
      cd /etc/rc1.d
      mv K16apache _K16apache
      ln -s ../init.d/apache K16apache
      cd /etc/rc2.d
      mv K16apache _K16apache
      ln -s ../init.d/apache K16apache
      cd /etc/rc3.d
      mv S50apache _S50apache
      ln -s ../init.d/apache S50apache
      cd /etc/rcS.d
      mv K16apache _K16apache
      ln -s ../init.d/apache K16apache
      
  • Linux
    su
    cd /etc/init.d
    ln -s /usr/local/apache2/bin/apachectl apache
    cd /etc/rc0.d
    ln -s ../init.d/apache K16apache
    cd /etc/rc1.d
    ln -s ../init.d/apache K16apache
    cd /etc/rc2.d
    ln -s ../init.d/apache K16apache
    cd /etc/rc3.d
    ln -s ../init.d/apache S16apache
    cd /etc/rc4.d
    ln -s ../init.d/apache S16apache
    cd /etc/rc5.d
    ln -s ../init.d/apache S16apache
    cd /etc/rc6.d
    ln -s ../init.d/apache K16apache
    cd /etc/rcS.d
    ln -s ../init.d/apache K16apache

mod_rewrite

  • AddDefaultCharset?
    AddDefaultCharset shift_jis





トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: Tue, 12 Oct 2021 00:58:40 JST (1117d)