質問編集履歴
15
誤字訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
CentOS7でPerlを実行しようとしても実行できません。CGIは/var/www/cgi-bin/ で実行可能であるということでそこに置きましたが、実行すると、
|
2
2
|
「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」とエラー表示されます。/var/www/cgi-bin/60a11.cgiが存在するにも関わらずです。Apacheも起動し chmod 700 /var/www/cgi-bin/60a11.cgi も実行しました。
|
3
|
-
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。ドキュメントルートは /
|
3
|
+
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。ドキュメントルートは /var/www/html です。
|
4
4
|
|
5
5
|
ご回答がありました、ありがとうございました。しかし、cgi-bin を html配下に置いても問題は解決されませんでした。
|
6
6
|
|
14
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
```
|
28
28
|
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じっさいには60a11.cgiは存在するのにこの表示が出ます。
|
29
29
|
|
30
|
-
perlの次に実行しようとしている「
|
30
|
+
perlの次に実行しようとしている「60a11.cgi」のコードです。
|
31
31
|
```perl
|
32
32
|
#!/usr/bin/perl
|
33
33
|
use strict;
|
13
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -112,7 +112,21 @@
|
|
112
112
|
exit;
|
113
113
|
```
|
114
114
|
実行したときのerror_logです。
|
115
|
-
```
|
115
|
+
```error_log
|
116
|
+
|
117
|
+
[Tue Jul 03 02:52:49.352453 2018] [core:error] [pid 4850] (13)Permission denied: [client 127.0.0.1:60556] AH00035: access to /buhin/btn056_09_6.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
118
|
+
[Tue Jul 03 02:52:49.394916 2018] [core:error] [pid 4846] (13)Permission denied: [client 127.0.0.1:60555] AH00035: access to /buhin/btn056_09_5.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
119
|
+
[Tue Jul 03 02:52:49.384311 2018] [core:error] [pid 4880] (13)Permission denied: [client 127.0.0.1:60554] AH00035: access to /buhin/btn056_09_4.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
120
|
+
[Tue Jul 03 02:52:49.407106 2018] [core:error] [pid 4852] (13)Permission denied: [client 127.0.0.1:60557] AH00035: access to /buhin/btn056_09_7.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
121
|
+
[Tue Jul 03 02:52:55.165134 2018] [mime_magic:error] [pid 4882] [client 127.0.0.1:60558] AH01512: mod_mime_magic: can't read `/var/www/cgi-bin/60a11.cgi', referer: http://127.0.0.1/
|
122
|
+
[Tue Jul 03 02:52:55.301730 2018] [cgi:error] [pid 4882] [client 127.0.0.1:60558] AH01215: (13)Permission denied: exec of '/var/www/cgi-bin/60a11.cgi' failed, referer: http://127.0.0.1/
|
123
|
+
[Tue Jul 03 02:52:55.316256 2018] [cgi:error] [pid 4882] [client 127.0.0.1:60558] End of script output before headers: 60a11.cgi, referer: http://127.0.0.1/
|
124
|
+
[Tue Jul 03 02:56:58.496028 2018] [core:error] [pid 4881] (13)Permission denied: [client 127.0.0.1:60571] AH00035: access to /buhin/btn056_09_6.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
125
|
+
[Tue Jul 03 02:56:58.539093 2018] [core:error] [pid 4848] (13)Permission denied: [client 127.0.0.1:60570] AH00035: access to /buhin/btn056_09_5.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
126
|
+
[Tue Jul 03 02:56:58.553854 2018] [core:error] [pid 4885] (13)Permission denied: [client 127.0.0.1:60569] AH00035: access to /buhin/btn056_09_4.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
127
|
+
[Tue Jul 03 02:56:58.892290 2018] [core:error] [pid 4883] (13)Permission denied: [client 127.0.0.1:60572] AH00035: access to /buhin/btn056_09_7.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/
|
128
|
+
[Tue Jul 03 02:57:06.890120 2018] [mime_magic:error] [pid 4884] [client 127.0.0.1:60573] AH01512: mod_mime_magic: can't read `/var/www/cgi-bin/60a11.cgi', referer: http://127.0.0.1/
|
129
|
+
[Tue Jul 03 02:57:06.914866 2018] [cgi:error] [pid 4884] [client 127.0.0.1:60573] AH01215: (13)Permission denied: exec of '/var/www/cgi-bin/60a11.cgi' failed, referer: http://127.0.0.1/
|
116
130
|
[Tue Jul 03 02:57:06.920432 2018] [cgi:error] [pid 4884] [client 127.0.0.1:60573] End of script output before headers: 60a11.cgi, referer: http://127.0.0.1/
|
117
131
|
```
|
118
132
|
|
12
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,9 +27,9 @@
|
|
27
27
|
```
|
28
28
|
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じっさいには60a11.cgiは存在するのにこの表示が出ます。
|
29
29
|
|
30
|
-
|
30
|
+
perlの次に実行しようとしている「a6011.cgi」のコードです。
|
31
|
+
```perl
|
31
32
|
#!/usr/bin/perl
|
32
|
-
|
33
33
|
use strict;
|
34
34
|
use utf8;
|
35
35
|
|
@@ -111,7 +111,8 @@
|
|
111
111
|
HTML
|
112
112
|
exit;
|
113
113
|
```
|
114
|
-
|
114
|
+
実行したときのerror_logです。
|
115
|
+
```
|
115
116
|
[Tue Jul 03 02:57:06.920432 2018] [cgi:error] [pid 4884] [client 127.0.0.1:60573] End of script output before headers: 60a11.cgi, referer: http://127.0.0.1/
|
116
117
|
```
|
117
118
|
|
11
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,84 +25,94 @@
|
|
25
25
|
# Require all granted
|
26
26
|
#</Directory>
|
27
27
|
```
|
28
|
+
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じっさいには60a11.cgiは存在するのにこの表示が出ます。
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<
|
40
|
-
|
41
|
-
|
42
|
-
<
|
43
|
-
|
44
|
-
<
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<
|
49
|
-
<
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
</
|
56
|
-
<
|
57
|
-
|
58
|
-
</
|
59
|
-
<
|
60
|
-
|
61
|
-
</
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
</
|
74
|
-
<
|
75
|
-
|
76
|
-
|
77
|
-
</
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<
|
82
|
-
|
83
|
-
|
84
|
-
</
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
</
|
97
|
-
|
98
|
-
|
99
|
-
<
|
100
|
-
|
101
|
-
</
|
102
|
-
|
103
|
-
|
104
|
-
|
30
|
+
```perlの次に実行しようとしている「a6011.cgi」のコードです。
|
31
|
+
#!/usr/bin/perl
|
32
|
+
|
33
|
+
use strict;
|
34
|
+
use utf8;
|
35
|
+
|
36
|
+
print "Content-type: text/html\n\n";
|
37
|
+
print <<"HTML";
|
38
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
39
|
+
<html>
|
40
|
+
<head>
|
41
|
+
<title>ユーザーアカウント登録</title>
|
42
|
+
</head>
|
43
|
+
<body bgcolor="#000066" text="#000000" link="#0000ee" alink="#0000ee"
|
44
|
+
vlink="#551a8b">
|
45
|
+
<form method="post" form action="67b32.cgi" ENCTYPE="multipart/form-data">
|
46
|
+
<form>
|
47
|
+
<table border="0">
|
48
|
+
<tbody>
|
49
|
+
<table>
|
50
|
+
<tr>
|
51
|
+
<td><font color="#ff0000"><label for="ID">希望ユーザーID</label></font></td>
|
52
|
+
<td><input type="text" name="ID" size="40" maxlength="30"><br></td>
|
53
|
+
</tr><tr>
|
54
|
+
<td><font color="#ff0000"><label for="pass">希望パスワード</label></font></td>
|
55
|
+
<td><input type="password" name="pass" size="40" maxlength="30"><br></td>
|
56
|
+
</tr><tr>
|
57
|
+
<td><font color="#ff0000"><label for="pass2">パスワード確認</label></font></td>
|
58
|
+
<td><input type="password" name="pass2" size="40" maxlength="30"><br></td>
|
59
|
+
</tr><tr>
|
60
|
+
<td><font color="#ff0000"><label for="shimei">氏名</label></font></td>
|
61
|
+
<td><input type="text" name="shimei" size="40" maxlength="30"><br></td>
|
62
|
+
</tr><tr>
|
63
|
+
<td><font color="#ff0000"><label for="kaisyamei">会社名</label></font></td>
|
64
|
+
<td><input type="text" name="kaisyamei" size="40" maxlength="30"><br></td>
|
65
|
+
</tr><tr>
|
66
|
+
<td><font color="#ff0000"><label for="mail">メールアドレス</label></font></td>
|
67
|
+
<td><input type=""text"" name="mail" size="40" maxlength="30"><br></td>
|
68
|
+
</tr><tr>
|
69
|
+
<td><font color="#ff0000"><label for="syouhinmei">商品名</label></font></td>
|
70
|
+
<td><input type="text" name="syouhinmei" size="40" maxlength="30"><br></td>
|
71
|
+
</tr><tr>
|
72
|
+
<td><font color="#ff0000"><label for="nedan">商品値段</label></font></td>
|
73
|
+
<td><input type="text" name="nedan" size="40" maxlength="30"><br></td>
|
74
|
+
</tr><tr>
|
75
|
+
<td><font color="#ff0000"><label for="q1">商品カテゴリー</label></font></td>
|
76
|
+
<td><input type="radio" name="q1" value="【書籍(実物商品)】"><font color="#ff0000">書籍</font>
|
77
|
+
<input type="radio" name="q1" value="【CD(実物商品)】"><font color="#ff0000">CD</font>
|
78
|
+
<input type="radio" name="q1" value="【DVD(実物商品)】"><font color="#ff0000">DVD</font>
|
79
|
+
<input type="radio" name="q1" value="【ソフトウェア(実物商品)】"><font color="#ff0000">
|
80
|
+
ソフトウェア(実物)</font>
|
81
|
+
<input type="radio" name="q1" value="【ビデオゲーム(実物商品)】"><font color="#ff0000">ビデオゲーム(実物)</font>
|
82
|
+
<input type="radio" name="q1" value="【電子書籍(電子ファイル)】"><font color="#ff0000">電子書籍</font>
|
83
|
+
<input type="radio" name="q1" value="【ソフトウェア(電子ファイル)】"><font color="#ff0000">ソフトウェア(電子ファイル)</font>
|
84
|
+
<input type="radio" name="q1" value="【音楽(電子ファイル)】"><font color="#ff0000">音楽(電子ファイル)</font>
|
85
|
+
<input type="radio" name="q1" value="【ビデオゲーム(電子ファイル)】"><font color="#ff0000">ビデオゲーム(電子ファイル)</font>
|
86
|
+
<input type="radio" name="q1" value="【動画(電子ファイル)】"><font color="#ff0000">動画(電子ファイル)</font><br></td>
|
87
|
+
</tr><tr>
|
88
|
+
<td><font color="#ff0000">ファイル1:画像ファイル(jpg/gif/png/bmpファイル)<br>ファイル2:中身立ち読みファイル(pdfファイル)(無い人はアップロードする必要はありません)<br>ファイル3:売り物となるコンテンツ(実物商品を扱う場合はアップロードする必要はありません)をアップロードしてください</font><br></td>
|
89
|
+
</tr><tr>
|
90
|
+
<td><font color="#ff0000">ファイル1を選択:</font></td>
|
91
|
+
<td><font color="#ff0000"><input type="file" name="file1"></font><br></td>
|
92
|
+
</tr><tr>
|
93
|
+
<td><font color="#ff0000">ファイル2を選択:</font></td>
|
94
|
+
<td><font color="#ff0000"><input type="file" name="file2"></font><br></td>
|
95
|
+
</tr><tr>
|
96
|
+
<td><font color="#ff0000">ファイル3を選択:</font></td>
|
97
|
+
<td><font color="#ff0000"><input type="file" name="file3"></font><br></td>
|
98
|
+
</tr><tr>
|
99
|
+
<td><textarea name="mojijouhou" rows="4" cols="40">商品情報をご記入ください。</textarea><br></td>
|
100
|
+
</tr><tr>
|
101
|
+
<td><input type="submit" onclick="location.href'67b32.cgi'" value="送信">
|
102
|
+
<input type="reset" value="リセット"></td>
|
103
|
+
</tr>
|
104
|
+
</table>
|
105
|
+
</tbody>
|
106
|
+
</form>
|
107
|
+
<br>
|
108
|
+
<br>
|
109
|
+
</body>
|
110
|
+
</html>
|
111
|
+
HTML
|
112
|
+
exit;
|
105
113
|
```
|
114
|
+
```実行したときのerror_logです。
|
106
|
-
|
115
|
+
[Tue Jul 03 02:57:06.920432 2018] [cgi:error] [pid 4884] [client 127.0.0.1:60573] End of script output before headers: 60a11.cgi, referer: http://127.0.0.1/
|
116
|
+
```
|
107
117
|
|
108
118
|
解決策よろしくお願い致します。
|
10
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,8 @@
|
|
27
27
|
```
|
28
28
|
|
29
29
|
|
30
|
+
```httpd.conf
|
30
|
-
|
31
|
+
#(以下は変更しました無視してかまいません)
|
31
32
|
ServerRoot "/etc/httpd"
|
32
33
|
Listen 80
|
33
34
|
Include conf.modules.d/*.conf
|
9
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,8 @@
|
|
23
23
|
# AllowOverride None
|
24
24
|
# Options None
|
25
25
|
# Require all granted
|
26
|
-
#</Directory>
|
26
|
+
#</Directory>
|
27
|
+
```
|
27
28
|
|
28
29
|
|
29
30
|
```httpd.conf(以下は変更しました無視してかまいません)
|
8
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,17 +7,25 @@
|
|
7
7
|
httpd.confの設定は以下の通りです。
|
8
8
|
|
9
9
|
```httpd.conf
|
10
|
-
<Directory "/var/www/
|
10
|
+
<Directory "/var/www/cgi-bin">
|
11
|
-
|
11
|
+
Options FollowSymLinks
|
12
|
-
|
12
|
+
Options +ExecCGI
|
13
|
-
|
13
|
+
AddHandler cgi-script .cgi
|
14
|
-
|
14
|
+
AllowOverride None
|
15
|
-
|
15
|
+
# Options None
|
16
|
-
|
16
|
+
Require all granted
|
17
|
-
</Directory>
|
17
|
+
</Directory>
|
18
|
-
```
|
19
18
|
|
19
|
+
#<Directory "/var/www/html/cgi-bin">
|
20
|
+
#Options FollowSymLinks
|
21
|
+
#Options +ExecCGI
|
22
|
+
#AddHandler cgi-script .cgi
|
23
|
+
# AllowOverride None
|
24
|
+
# Options None
|
25
|
+
# Require all granted
|
26
|
+
#</Directory>```
|
20
27
|
|
28
|
+
|
21
29
|
```httpd.conf(以下は変更しました無視してかまいません)
|
22
30
|
ServerRoot "/etc/httpd"
|
23
31
|
Listen 80
|
7
情報付加
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,6 +7,18 @@
|
|
7
7
|
httpd.confの設定は以下の通りです。
|
8
8
|
|
9
9
|
```httpd.conf
|
10
|
+
<Directory "/var/www/html/cgi-bin">
|
11
|
+
Options FollowSymLinks
|
12
|
+
Options +ExecCGI
|
13
|
+
AddHandler cgi-script .cgi
|
14
|
+
AllowOverride None
|
15
|
+
Options None
|
16
|
+
Require all granted
|
17
|
+
</Directory>
|
18
|
+
```
|
19
|
+
|
20
|
+
|
21
|
+
```httpd.conf(以下は変更しました無視してかまいません)
|
10
22
|
ServerRoot "/etc/httpd"
|
11
23
|
Listen 80
|
12
24
|
Include conf.modules.d/*.conf
|
6
語句の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -81,6 +81,6 @@
|
|
81
81
|
IncludeOptional conf.d/*.conf
|
82
82
|
|
83
83
|
```
|
84
|
-
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じ
|
84
|
+
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じっさいには60a11.cgiは存在するのにこの表示が出ます。
|
85
85
|
|
86
86
|
解決策よろしくお願い致します。
|
5
気になる点を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -81,17 +81,6 @@
|
|
81
81
|
IncludeOptional conf.d/*.conf
|
82
82
|
|
83
83
|
```
|
84
|
+
そこで気がかりなのが「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」というエラーメッセージが出るところです。じsっさいには60a11.cgiは存在するのにこの表示が出ます。
|
84
85
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
86
|
解決策よろしくお願い致します。
|
4
新たな情報付加
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,4 +4,94 @@
|
|
4
4
|
|
5
5
|
ご回答がありました、ありがとうございました。しかし、cgi-bin を html配下に置いても問題は解決されませんでした。
|
6
6
|
|
7
|
+
httpd.confの設定は以下の通りです。
|
8
|
+
|
9
|
+
```httpd.conf
|
10
|
+
ServerRoot "/etc/httpd"
|
11
|
+
Listen 80
|
12
|
+
Include conf.modules.d/*.conf
|
13
|
+
User apache
|
14
|
+
Group apache
|
15
|
+
ServerAdmin root@trm7.mydns.jp
|
16
|
+
ServerName trm7.mydns.jp:80
|
17
|
+
<Directory />
|
18
|
+
AllowOverride none
|
19
|
+
Require all denied
|
20
|
+
</Directory>
|
21
|
+
DocumentRoot "/var/www/html"
|
22
|
+
<Directory "/var/www">
|
23
|
+
AllowOverride None
|
24
|
+
# Allow open access:
|
25
|
+
Require all granted
|
26
|
+
</Directory>
|
27
|
+
<Directory "/var/www/html">
|
28
|
+
Options FollowSymLinks
|
29
|
+
Options +ExecCGI
|
30
|
+
AddHandler cgi-script .cgi
|
31
|
+
AllowOverride None
|
32
|
+
Require all granted
|
33
|
+
</Directory>
|
34
|
+
<IfModule dir_module>
|
35
|
+
DirectoryIndex index.html
|
36
|
+
</IfModule>
|
37
|
+
<Files ".ht*">
|
38
|
+
Require all denied
|
39
|
+
</Files>
|
40
|
+
ErrorLog "logs/error_log"
|
41
|
+
LogLevel warn
|
42
|
+
|
43
|
+
<IfModule log_config_module>
|
44
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
45
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
46
|
+
|
47
|
+
<IfModule logio_module>
|
48
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
49
|
+
</IfModule>
|
50
|
+
CustomLog "logs/access_log" combined
|
51
|
+
</IfModule>
|
52
|
+
<IfModule alias_module>
|
53
|
+
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
54
|
+
|
55
|
+
</IfModule>
|
56
|
+
|
57
|
+
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
58
|
+
|
59
|
+
<Directory "/var/www/cgi-bin">
|
60
|
+
Options +ExecCGI
|
61
|
+
Addhandler cgi-script .cgi .pl
|
62
|
+
</Directory>
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
<IfModule mime_module>
|
69
|
+
TypesConfig /etc/mime.types
|
70
|
+
AddType application/x-compress .Z
|
71
|
+
AddType application/x-gzip .gz .tgz
|
72
|
+
AddType text/html .shtml
|
73
|
+
AddOutputFilter INCLUDES .shtml
|
74
|
+
</IfModule>
|
75
|
+
AddDefaultCharset UTF-8
|
76
|
+
|
77
|
+
<IfModule mime_magic_module>
|
78
|
+
MIMEMagicFile conf/magic
|
79
|
+
</IfModule>
|
80
|
+
EnableSendfile on
|
81
|
+
IncludeOptional conf.d/*.conf
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
7
97
|
解決策よろしくお願い致します。
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
CentOS7でPerlを実行しようとしても実行できません。CGIは/var/www/cgi-bin/ で実行可能であるということでそこに置きましたが、実行すると、
|
2
|
-
「Not Found
|
2
|
+
「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」とエラー表示されます。/var/www/cgi-bin/60a11.cgiが存在するにも関わらずです。Apacheも起動し chmod 700 /var/www/cgi-bin/60a11.cgi も実行しました。
|
3
3
|
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。ドキュメントルートは /war/www/html です。
|
4
4
|
|
5
5
|
ご回答がありました、ありがとうございました。しかし、cgi-bin を html配下に置いても問題は解決されませんでした。
|
2
問題が解決されなかった旨
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,7 @@
|
|
1
1
|
CentOS7でPerlを実行しようとしても実行できません。CGIは/var/www/cgi-bin/ で実行可能であるということでそこに置きましたが、実行すると、
|
2
2
|
「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」とエラー表示されます。/var/www/cgi-bin/60a11.cgiが存在するにも関わらずです。Apacheも起動し chmod 700 /var/www/cgi-bin/60a11.cgi も実行しました。
|
3
|
-
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。
|
3
|
+
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。ドキュメントルートは /war/www/html です。
|
4
|
+
|
5
|
+
ご回答がありました、ありがとうございました。しかし、cgi-bin を html配下に置いても問題は解決されませんでした。
|
6
|
+
|
7
|
+
解決策よろしくお願い致します。
|
1
詳細記述
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
CentOS7でPerlを実行しようとしても実行できません。
|
2
|
-
「Not Found
|
1
|
+
CentOS7でPerlを実行しようとしても実行できません。CGIは/var/www/cgi-bin/ で実行可能であるということでそこに置きましたが、実行すると、
|
2
|
+
「Not Found The requested URL /var/www/cgi-bin/60a11.cgi was not found on this server.」とエラー表示されます。/var/www/cgi-bin/60a11.cgiが存在するにも関わらずです。Apacheも起動し chmod 700 /var/www/cgi-bin/60a11.cgi も実行しました。
|
3
|
+
実行方法は、まずはFireFoxで /var/www/html/index.htmlを「http://127.0.0.1/」とURLを指定して開きindex.html内にあるボタンを押し“http://127.0.0.1/var/www/cgi-bin/60a11.cgi”を開こうとすると「60a11.cgi」は表示されずにエラーメッセージが出る、というところです。解決策よろしくお願い致します。
|