>> Edit article
이름
제목
패스워드
6.1 을 쓰다가 이번에 7.1 을 새로 깔면서 바뀐 게 많아 고생하고 있네 요. 특히 /usr/local/apache 에 거의 모든 것이 있다가 /var 나 /etc/httpd/ 등으로 분산되면서 뒤죽 박죽... 입니다. 저는 Perl 을 사용해 본 적이 없고, 저희 회사의 사용자 분 중에서 Perl 을 이용하시는 분이 있는데, (놀고 있는 서버를 이용해 무료 호스팅 비슷하게 하고 있습니다. ^^;) 그 분의 홈페이지를 위해 Perl 을 다시 돌아가게 하고 싶습니다. (왠만큼 하고 그만 하는 게 어떠냐는 윗분의 꾸지람이... --;;; 그래서 더 이상 시간 끌 수가 없어 여러분께 도움 청합니다.) 현재 설정은 다음과 같고, DocumentRoot 인 /kr 에서는 Perl 로 짠 CGI 가 작동합니다. 그런데 /home/~anih/public_html/index.cgi 는 작동하지 않네요. Internal Server Error 가 뜹니다. ############################################################## # 서버 환경 ############################################################## RedHat Wod Linux 7.1 Apache 1.3.19 (7.1 깔면서 설치된 그대로) mod_perl.c (7.1 깔면서 설치된 그대로) ############################################################## # httpd.conf ############################################################## User apache Group apache <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/kr"> // DocumentRoot Options Includes FollowSymLinks MultiViews ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> UserDir public_html <Directory /home/*/public_html> AllowOverride None Options Includes FollowSymLinks MultiViews ExecCGI <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> AddHandler cgi-script .cgi .pl ############################################################## # /var/log/httpd/error.log (LogLevel 은 debug 입니다.) ############################################################## [Thu May 17 16:07:06 2001] [error] [client 210.96.8.130] Premature end of script headers: /home/anih/public_html/index.cgi ############################################################## # /var/log/httpd/suexec.log ############################################################## [2001-05-17 16:07:06]: info: (target/actual) uid: (anih/anih) gid: (apache/apache) cmd: index.cgi [2001-05-17 16:07:06]: crit: cannot run as forbidden gid (48/index.cgi) 디렉토리의 권한은 둘 다 750 이고, 각각 anih.apache / kr.apache 로 되어 있습니다. /home/~anih/anih/public_html 을 777 로도 주어 보고 apache.apache 로도 주어 보았는데, 어떤 차이가 있어서 /kr 에서만 되는지 모르겠습니다. 혹시 index.cgi 의 내용 쪽에 문제가 있을 지도 모르는데, 답변 달아 주시면 소스를 보내드릴 수도 있습니다. (정확한 답변을 위해 이 글과 함께 게시판에 올리고 싶지만 사용자 분의 소스를 마음대로 할 수는 없으니까요. ^^;) -- The
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved