웹솔루션개발 22년 노하우! 해피CGI의 모든것

[해피CGI][cgimall] 최고의 카운터 프로그램 wwwcount 2.6 new Cool!! 본문

웹프로그램밍 자료실/C언어 자료

[해피CGI][cgimall] 최고의 카운터 프로그램 wwwcount 2.6 new Cool!!

해피CGI윤실장 2016. 12. 15. 09:36

wwwcount 2.x 설치법

1. 자신의 계정이 telnet을 지원해야 됩니다.
2. 자신의 계정에서 컴파일을 할수 있는 계정이여야만 합니다.

설치시작
1. 압축 받은 압축파일을 FTP를 이용해서 업로드 합니다.
2. 텔넷에서 tar xvfz 압축파일명 [엔터] 해서 압축을 해제 합니다.

환경설정
1. 텔넷에서  make config.h 을 실행합니다
2. Continue [y|n]? y

*cgi-bin directory [/usr/local/etc/httpd/cgi-bin]: 자신의 cgi-bin의 절대경로를 써줍니다. ex)/home/ocean/public_html/cgi-bin

*Base directory [/usr/local/bin/etc/Counter]: 카운터 위치의 절대경로를 써줍니다. ex)/home/ocean/public_html/cgi-bin/Counter

* Config directory [/usr/local/etc/Counter/conf]: 특별한 경우 아니면 엔터를 칩니다.

* Name of the configuration file [count.cfg]: 특별한 경우 아니면 엔터를 칩니다.

*Data directory [/usr/local/etc/Counter/data]: 특별한 경우 아니면 엔터를 칩니다.

*Digits directory [/usr/local/etc/Counter/digits]: 특별한 경우 아니면 엔터를 칩니다.

*Log directory [/usr/local/etc/Counter/logs]: 특별한 경우 아니면 엔터를 칩니다.

* Name of the log file [Count2.5.log]: 특별한 경우 아니면 엔터를 칩니다.

Everything looks OK [y|n]? y

CgiBinDir=/home/ocean/public_html/cgi-bin
BaseDir= /usr1/home/ocean/html/cgi-work/Counter
D ConfDir= /usr1/home/ocean/html/cgi-work/Counter/conf
ConfFile=count.cfg
DataDir=/home/ocean/public_html/cgi-bin/Counter/data
LogDir=/home/ocean/public_html/cgi-bin/Counter/logs
LogFile=Count2_5.log

이 부분은 사용자마다 다르닌깐
다르다고 걱정할 필요 없습니다.

Great! creating header file src/config.h
creating variables template file ./Config.tmpl for the install program..

이렇게 메시지가 나오면 설정이 완료 된것입니다.

4. 컴파일(아무 입력 필요 없으닌깐 엔터 치시면 됩니다)

5. 텔넷에서 make all 을 입력후 [엔터]

6. 텔넷에서 make install 을 입력후 [엔터]

7.
Continue [y;n]? y
*Do you know te user and group id of httpd' child process[y|n]:? n
(무슨 그룹 지정하는것 같은데 "n" 하세요)
브라우저를 띠워서 "http://자기 홈페이지 주소/cgi-bin/Count.cgi?df=sample.dat"
라고 입력하세요. "8888888"이 나오면 성공하신겁니다.
html 태크속에 아래와 같이 입력하면 됩니다.
<img src="....../Count.cgi?df=데이타베이스명&dd=모양">

멋진 카운터를 달아봅시다~ ^^

 

홈페이지바로가기 

Comments