質問編集履歴

8

行った処理の追記

2020/03/23 07:16

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -122,6 +122,26 @@
122
122
 
123
123
  ```
124
124
 
125
+
126
+
127
+ /etc/httpd/conf/httpd.confへ追記したところ、エラーが500から403へ変わりました。
128
+
129
+ ```ここに言語を入力
130
+
131
+ <Directory "/var/www/html/html2/programs">
132
+
133
+ AllowOverride None
134
+
135
+ Options None
136
+
137
+ Order allow,deny
138
+
139
+ Allow from All
140
+
141
+ </Directory>
142
+
143
+ ```
144
+
125
145
  環境
126
146
 
127
147
  ・windows10 pro

7

誤字修正

2020/03/23 07:16

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- phpファイル上に埋め込まれたCGIが実行される時に、ブラウザ上にえらーが表示されCGIが動作しないので、なんとか動くようにしたい状況です。
1
+ phpファイル上に埋め込まれたCGIが実行される時に、ブラウザ上にエラーが表示されCGIが動作しないので、なんとか動くようにしたい状況です。
2
2
 
3
3
  以下、ブラウザ上に表示されたエラーメッセージです。
4
4
 

6

行った処理の追記

2020/03/23 05:45

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -64,6 +64,64 @@
64
64
 
65
65
 
66
66
 
67
+ ブラウザのURLは、
68
+
69
+ http://192.168.0.5/html2/exp.php?expno=1-2-1
70
+
71
+ と指定して表示しています。
72
+
73
+ exp.phpの中身は↓です。
74
+
75
+ ```ここに言語を入力
76
+
77
+ <?PHP
78
+
79
+ include("./exp.inc");
80
+
81
+
82
+
83
+ if(!isset($_GET['expno'])){
84
+
85
+ $expno = "";
86
+
87
+ } else {
88
+
89
+ $expno = $_GET['expno'];
90
+
91
+ }
92
+
93
+
94
+
95
+ ?>
96
+
97
+ <HTML>
98
+
99
+
100
+
101
+ <HEAD>
102
+
103
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=EUC-JP">
104
+
105
+ <TITLE><?PHP echo GetTitleByMenuArray($arr_menu,$expno); ?></TITLE>
106
+
107
+ </HEAD>
108
+
109
+
110
+
111
+ <FRAMESET>
112
+
113
+ <FRAME SRC="./menu.html">
114
+
115
+ <FRAME SRC="./exp<?PHP echo $expno; ?>.php">
116
+
117
+ </FRAMESET>
118
+
119
+
120
+
121
+ </HTML>
122
+
123
+ ```
124
+
67
125
  環境
68
126
 
69
127
  ・windows10 pro

5

環境の追記

2020/03/23 05:38

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,5 @@
71
71
  ・virtualBox6.1.4 r136177(Qt5.6.2)
72
72
 
73
73
  ・CentOS-6.8-x86_64-minimal.iso
74
+
75
+ ・Server version: Apache/2.2.15

4

行った処理の追記

2020/03/23 05:18

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,13 @@
61
61
  その「html」ディレクトリのパーミッションは、Filezillaで繋いで右クリック->
62
62
 
63
63
  「パーミッションの変更(F)」->「属性値(N)」の項目を755にしています。
64
+
65
+
66
+
67
+ 環境
68
+
69
+ ・windows10 pro
70
+
71
+ ・virtualBox6.1.4 r136177(Qt5.6.2)
72
+
73
+ ・CentOS-6.8-x86_64-minimal.iso

3

行った処理の追記

2020/03/23 04:33

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,10 @@
50
50
 
51
51
  </Directory>
52
52
 
53
+
54
+
55
+ AddType applications/x-httpd-cgi .cgi
56
+
53
57
  ```
54
58
 
55
59
  PHPファイルやCGIファイルはまとめて「html」という名前のディレクトリに入っています。

2

行った処理の追記

2020/03/23 04:21

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -51,3 +51,9 @@
51
51
  </Directory>
52
52
 
53
53
  ```
54
+
55
+ PHPファイルやCGIファイルはまとめて「html」という名前のディレクトリに入っています。
56
+
57
+ その「html」ディレクトリのパーミッションは、Filezillaで繋いで右クリック->
58
+
59
+ 「パーミッションの変更(F)」->「属性値(N)」の項目を755にしています。

1

行った処理の追記

2020/03/23 04:18

投稿

hoshi_no_senshi
hoshi_no_senshi

スコア48

test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,29 @@
25
25
 
26
26
 
27
27
  そのほかの情報は以下に追記します。
28
+
29
+
30
+
31
+ /etc/httpd/conf/httd.confの関連していそうな箇所
32
+
33
+ ```ここに言語を入力
34
+
35
+ <Directory />
36
+
37
+ #Options FollowSymLinks
38
+
39
+ Options FollowSymLinks ExecCGI
40
+
41
+ AllowOverride None
42
+
43
+ </Directory>
44
+
45
+ <Directory />
46
+
47
+ Options +ExecCGI
48
+
49
+ AddHandler cgi-script .cgi .pl
50
+
51
+ </Directory>
52
+
53
+ ```