2004년 8월 4일 수요일

mysql4+php4.3.8+apache1.3.31 설치

mkdir -p ~/local/src/
mkdir -p ~/public_html/

1. mysql을 설치한다. (binary로 설치하면 간편함)

http://synergy.kaist.ac.kr/~ilashman/bbs/view.php?id=tips&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&keyword=mysql&select_arrange=headnum&desc=asc&no=54

.bashrc에 다음 내용을 추가
export PATH=/home/st/local/mysql/bin:$PATH
export LD_LIBRARY_PATH=/home/st/local/mysql/lib/:$LD_LIBRARY_PATH

cd ~/local/src
tar xzvf apache_1.3.31.tar.gz
tar xzvf php-4.3.8.tar.gz

cd ~/local/src/apache_1.3.31
./configure --prefix=/home/st/local/apache_1.3.31

cd ~/local/src/php-4.3.8
./configure --prefix=/home/st/local/php-4.3.8 --with-mysql=/home/st/local/mysql --with-apache=../apache_1.3.31
make -j 4
make install

cd ~/local/src/apache_1.3.31
./configure --prefix=/home/st/local/apache_1.3.31 --activate-module=src/modules/php4/libphp4.a

make -j 4
make install

ln -s /home/st/local/php-4.3.8 /home/st/local/php
ln -s /home/st/local/apache_1.3.31 /home/st/local/apache

/home/st/local/apache/conf
vi httpd.conf
Port 80 => Port 8000으로 변경(원하는 대로.)

363번째 줄의
    362 <IfModule mod_dir.c>
    363     DirectoryIndex index.html
    364 </IfModule>

    362 <IfModule mod_dir.c>
    363     DirectoryIndex index.html index.php
    364 </IfModule>
로 변경한다.

807번째 줄의
    807     #AddHandler type-map var
    808
    809 </IfModule>

    807     #AddHandler type-map var
    808
    809     AddType application/x-httpd-php .php .php4 .php3 .html
    810     AddType application/x-httpd-php-source .phps
    811
    812 </IfModule>
로 변경한다.

아파치 시작
/home/st/local/apache/bin/apachectl start

아파치 종료
/home/st/local/apache/bin/apachectl stop

참고
http://www.imaso.co.kr/hotissue/article.html?id=5247&forum=0

댓글 없음:

댓글 쓰기