質問編集履歴

1

情報追記

2017/12/13 08:23

投稿

SK1
SK1

スコア6

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,33 @@
1
+ ---httpd.conf---
2
+
3
+ ```
4
+
5
+ # probably should define those extensions to indicate media types:
6
+
7
+ #
8
+
9
+ AddType application/x-compress .Z
10
+
11
+ AddType application/x-gzip .gz .tgz
12
+
13
+ AddType application/x-httpd-php .php
14
+
15
+ #
16
+
17
+ # AddHandler allows you to map certain file extensions to "handlers":
18
+
19
+ # actions unrelated to filetype. These can be either built into the server
20
+
21
+ # or added with the Action directive (see below)
22
+
23
+ ```
24
+
25
+
26
+
27
+ httpd.confの一部ですが現在このようになっています。
28
+
29
+
30
+
1
31
  現在CentOS上にappacheとPHPでサーバを構築し、ウェブ上でPHPで表示できるか確認しようとし、URLを打ち込んだところPHPファイルをダウンロードしようとしてしまう事態が発生しました。
2
32
 
3
33
  現状htmlはしっかり表示できているのですが、PHPファイルだけそのような状態になってしまっています。