いつもお世話になっております。
index.htmlファイルを表示し、そこにあるgifボタンを押し、次の60a11.cgiで項目を入力し、ボタンを押し、67b32.cgiを表示しようとすると、上手く行きません。
67b32.cgiは以下のコードです。
perl
1#!/usr/bin/perl 2use utf8; 3binmode(STDOUT,":utf8"); 4use CGI; 5$query = new CGI; 6use CGI qw(:standard); 7use File::Copy; 8use Encode 'encode'; 9 10$ID =$query->param('ID'); 11$pass =$query->param('pass'); 12$pass2 =$query->param('pass2'); 13$shimei =$query->param('shimei'); 14$kaisyamei =$query->param('kaisyamei'); 15$mail =$query->param('mail'); 16$syouhinmei =$query->param('syouhinmei'); 17$nedan =$query->param('nedan'); 18$q1 =$query->param('q1'); 19$file1 =$query->param('file1'); 20$file2 =$query->param('file2'); 21$file3 =$query->param('file3'); 22$mojijouhou =$query->param('mojijouhou'); 23 24print "Content-type: text/html\n\n"; 25print<<"HTML"; 26<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 27<html> 28<head> 29<title>UPLOAD IS SUCSESS</title> 30</head> 31 <body bgcolor="#000066" text="#ff0000" link="#0000ee" alink="#0000ee" vlink="#551a8b"> 32<form action="6.html"> 33<form> 34Files have been uploaded.<br> 35$sql<br> 36$ID<br> 37$pass<br> 38$shimei<br> 39$kaisyamei<br> 40$mail<br> 41$syouhinmei<br> 42$nedan<br> 43$q1<br> 44$file1<br> 45$file2<br> 46$file3<br> 47$mojijouhou<br> 48$hxq<br> 49<input type="submit" onclick="location.href'6.html'" value="NEXT"><input type="reset" value="RESET"> 50</form> 51<br> 52<br> 53</body> 54</html> 55HTML 56exit;
error_logは以下です。
error_log
1[Thu Sep 27 07:11:39.793985 2018] [cgi:error] [pid 2381] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:55363] AH01215: Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /var/www/cgi-bin/67b32.cgi line 6., referer: http://trm7.mydns.jp/cgi-bin/60a11.cgi 2[Thu Sep 27 07:11:39.794062 2018] [cgi:error] [pid 2381] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:55363] AH01215: BEGIN failed--compilation aborted at /var/www/cgi-bin/67b32.cgi line 6., referer: http://trm7.mydns.jp/cgi-bin/60a11.cgi 3[Thu Sep 27 07:11:39.794069 2018] [cgi:error] [pid 2381] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:55363] End of script output before headers: 67b32.cgi, referer: http://trm7.mydns.jp/cgi-bin/60a11.cgi
原因は何なのでしょうか?よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー