2009-10-24 5 views
0

웹 페이지 서버 "192.168.50.29/cgi-bin/tinyPL.cgi"에 액세스하려고하면 오류 메시지가 나타납니다. 다음과 같습니다내부 서버 오류

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. 

More information about this error may be available in the server error log. 
Apache/2.2.11 (Fedora) Server at 192.168.50.29 Port 80 

ERROR_LOG :

[Sat Oct 24 21:30:47 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) 
[Sat Oct 24 21:30:47 2009] [notice] Digest: generating secret for digest authentication ... 
[Sat Oct 24 21:30:47 2009] [notice] Digest: done 
[Sat Oct 24 21:30:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations 
[Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] (13)Permission denied: exec of '/var/www/cgi-bin/tinyPL.cgi' failed 
[Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] Premature end of script headers: tinyPL.cgi 

어떤 일이 나를 도울 수!

+0

서버 오류 로그의 내용은 무엇입니까? –

+0

무엇을 도와 드릴까요? –

+0

이것은 더 많은 ServerFault에 속하는 것 같습니다. – Twisol

답변

0

로그 파일에 오류에 대한 자세한 정보가 있지만 CGI 스크립트의 내부 서버 오류는 일반적으로 서버가 CGI 프로그램을 실행하려고 할 때 예상 헤더가 없음을 의미합니다. 펄 스크립트에서

, 그 (예를 들어) 다음과 같습니다

use CGI qw(:standard); 
print header(); 

과 같이 출력됩니다 어떤 :

Content-type: text/html 

시도를하고 명령 줄에서 CGI 스크립트를 실행하고 있는지 확인 그 라인을 출력합니다. 다른 문제점은 액세스 권한 때문일 수 있습니다. Apache가 스크립트를 실행할 수 없습니다.