>> Read No. 86 article  
적수님의 board-19990519 버젼 설치 하기...

등록 1999-05-28 01:55:00     조회 5
이름 박석곤    

		php3,,mysql 사용법을 전혀 모른 상태에서 설치를 시도 하다 드디어한번에 설치 되기에 잊어
 먹기전에 설치기를 올립니다..먼저  apache-1.3.6-1kr.i386.rpm + mod_php3-3.0.7-1.i386.rpm + mysql-3.22.22-
1.i386.rpm 을 설치하고 저는 RPM 설치로도 잘 되더군요..잘 안되시는 분들은 정진호님 홈에 가
시면 소스 설치법이 아주 잘 나와 있습니다..RedHat 6.0 server 용으로 설치했을때 php3 컴파일 
할때 에러가 많이 발생하더군요..알짜 5.2a server 용으로 설치 했을때는 에러없이 컴파일이 
아주 잘되었구요..정진호님 자료실에 보면 최신 버젼의 apache+php3+mysql 소스버젼이 있습니다
..설치 하기를 잘 읽고 그대로 설치하면 무난히 설치 되더군요..정진호님 홈페이지 : http://s
era.ditco.cometc/httpd/conf/httpd.conf 파일을다음과 같이 편집했습니다..[root@home /root]# cd /etc/httpd/co
nf[root@home /conf]# vi httpd.conf..LoadModule php3_module modules/libphp3.so  ..AddType application/x-httpd-php3 .php3
 AddType application/x-httpd-php3-source .phps 다음 부분은 제가 더 입력 한것입니다..AddType application/x
-httpd-php3 .htmlAddType application/x-httpd-php3 .htmAddType application/x-httpd-php3 .phtml...:wqapache server 를 재
 실행 시켜 줍니다..[root@home /root]# httpd stop[root@home /root]# httpd start설치하고픈 홈 디랙토리로
 board-19990519_tar.gz 을 카피한후이동하여 다음과 같이 압축을 풀고[root@home /public_html]# uncompres
s board-19990519_tar.gz[root@home /public_html]# tar xvf board-19990519_tar board 라는 디렉토리로 압축이 풀
리면다음과 같이 mysql 이라는 사용자를 추가 하고 그 사용자에게 board 라는 DB를 생성해 주
고 해당 DB 에 모든 권한을 준다 [root@home /public_html]# mysql mysql Reading table information for completion
 of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. 
Commands end with ; or g. Your MySQL connection id is 1961 to server version: 3.22.20a-log Type 'help' for help. mysql> 
insert into user values("localhost','mysql',''),'N','N','N','N','N','N','N','N','N','N','N','N','N','N'); Query OK, 1 ro
w affected (0.00 sec) mysql> insert into db values('localhost','board','mysql','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
 Query OK, 1 row affected (0.00 sec) mysql> q Bye DB를 만들어 줍니다 [root@home /public_html]# mysqladmin create 
board Database "board" created. 서버를 Reload 합니다 [root@home /public_html]# mysqladmin reload 만들어진 사
용자로 MySQL서버에 로그인해 봅니다. [root@home /public_html]# mysql -umysql -p board Welcome to the MySQL m
onitor. Commands end with ; or g. Your MySQL connection id is 1965 to server version: 3.22.20a-log Type 'help' for help.
 mysql>qBye 여기 까지 이상없이 되었다면 성공하신것입니다..다음은 ~~/public_html/board/include/db
.ph 를 편집합니다..[root@home /public_html]# cd board/include[root@home /include]# vi db.ph<?$db_server = "localho
st"; // DB 서버 주소$db_user   = "mysql";     // DB 사용자$db_name   = "board";     // DB 이름$db_pass  
 = ""; // DB 암호?>위와같이 편집하시고[root@home /include]# cd ..// TABLE을 생성 해줍니다[root@home /b
oard]# mysql board < mysql.sql[root@home /board]#위와 같이 아무런 응답이 없으면 잘 된것 입니다.서버
를 Reload 합니다 [root@home /public_html]# mysqladmin reload 브라우져에서 HTTP://도메인/board/index.php3
해보세요..여러개의 게시판을 사용하고 싶으면 mysql.sql 파일의 TABLE 이름만 바꿔 주시면 됩
니다..위의 TABLE 이름은 qa 입니다..webboard 라는 TABLE 을 만들고 싶으면 다음과 같이 편집 하
세요..[root@home /board]#vi mysql.sql# MySQL dump 5.13## Host: localhost    Database: board#------------------------
--------------------------------# Server version	3.22.21## Table structure for table 'qa'#CREATE TABLE webboard (  no i
nt(8) DEFAULT '0' NOT NULL auto_increment,  num int(8) DEFAULT '0' NOT NULL,  date int(11) DEFAULT '0' NOT NULL,  hos
t tinytext,  name tinytext,  passwd varchar(13),  email tinytext,  url tinytext,  title tinytext,  text mediumtext
,  refer int(8) DEFAULT '0' NOT NULL,  reyn int(1) DEFAULT '0' NOT NULL,  reno int(8) DEFAULT '0' NOT NULL,  rede in
t(8) DEFAULT '0' NOT NULL,  reto int(8) DEFAULT '0' NOT NULL,  PRIMARY KEY (no),  KEY num (num),  KEY reno (reno));
위와 같이 하시고 TABLE 을 생성해줍니다..[root@home /board]# mysql board < mysql.sql[root@home /board]# 
서버를 Reload 합니다 [root@home /public_html]# mysqladmin reload 그리고 브라우져에서 HTTP://도메인/boa
rd/list.php3?table=webboard 해보세요..성공들 하세요~~~( 정진호님 classroom:(http://sera.ditco.com/php_love
me/html/classroom_view.html?code=classroom&id=29,,김태훈님의 홈페이지http://love.wonkwang.ac.kr/source/mysql/RE
ADME)에서 참고했습니다..)ps--위 방법으로 제서버에서 3번 해봤는데 이상 없었고..TABLE 이름
만 바꿔서 지금 게시판을 5개 쓰고 있습니다..안되시는 분들 천천히 잘 해보세요...적수님 
고맙게 잘 쓰겠습니다..고마워요~~~박석곤 올림..
이름
암호


>> 관련글
86 적수님의 board-19990519 버젼 설치 하기...  박석곤  1999.05.28  ....
  답장 RE: 적수님의 board-19990519 버젼 설치 하기...  유백호  1999.05.21  ....
  목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.55 초 ] 작업시간: [ 0.03 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791022227
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.