質問編集履歴

9

fix

2018/03/12 13:48

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <?php phpinfo(); ?>
12
12
 
13
- 補足
13
+ #補足
14
14
 
15
15
  FreeBSD11.1
16
16
 

8

fix

2018/03/12 13:48

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -84,4 +84,28 @@
84
84
 
85
85
  #追記の追記 /usr/local/etc/apache24/Includes/php56.confの内容
86
86
 
87
+ AddType application/x-httpd-php .php
88
+
89
+ AddType application/x-httpd-php-source .phps
90
+
91
+ AddType text/html .php
92
+
93
+ DirectoryIndex index.html index.htm index.php
94
+
95
+ <FilesMatch ".php$">
96
+
97
+ SetHandler application/x-httpd-php
98
+
99
+ </FilesMatch>
100
+
101
+ <FilesMatch ".php$">
102
+
103
+ SetHandler application/x-httpd-php-source
104
+
105
+ </FilesMatch>
106
+
107
+
108
+
87
109
  Includesの中身
110
+
111
+ no-accf.conf php.conf php56.conf

7

2018/03/12 13:39

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,7 @@
81
81
  #which httpdの結果
82
82
 
83
83
  /usr/local/sbin/httpd
84
+
85
+ #追記の追記 /usr/local/etc/apache24/Includes/php56.confの内容
86
+
87
+ Includesの中身

6

2018/03/12 13:38

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  #問題
2
2
 
3
- FreeBSD11.1でPHP5.6がインストールされているかの確認を[このサイト](http://freebsd.server-manual.com/freebsd9_apache2_php5.html)の一番下の画像を出すことで行いたかったのですが、上手くいきませんでした。php.infoの記述内容がそのまま表示されるという結果になります。この原因が何かわかる方いますか?回答お願いします。足りない情報があれば随時追記します。
3
+ FreeBSD11.1でPHP5.6がインストールされているかの確認を[このサイト](http://freebsd.server-manual.com/freebsd9_apache2_php5.html)の一番下の画像を出すことで行いたかったのですが、上手くいきませんでした。info.phpの記述内容がそのまま表示されるという結果になります。echoコマンドで確認しても、パスが表示されるわけではなくinfo.phpの内容がそのまま表示されてしまいます。この原因が何かわかる方いますか?回答お願いします。足りない情報があれば随時追記します。
4
4
 
5
5
  #/usr/local/www/apache24/data/info.phpの内容
6
6
 

5

fix

2018/03/12 09:51

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,62 @@
22
22
 
23
23
  #追記 httpd -Mの結果
24
24
 
25
+ Loaded Modules:
26
+
27
+ core_module (static)
28
+
29
+ so_module (static)
30
+
31
+ http_module (static)
32
+
33
+ mpm_prefork_module (shared)
34
+
35
+ authn_file_module (shared)
36
+
37
+ authn_core_module (shared)
38
+
39
+ authz_host_module (shared)
40
+
41
+ authz_groupfile_module (shared)
42
+
43
+ authz_user_module (shared)
44
+
45
+ authz_core_module (shared)
46
+
47
+ access_compat_module (shared)
48
+
49
+ auth_basic_module (shared)
50
+
51
+ reqtimeout_module (shared)
52
+
53
+ filter_module (shared)
54
+
55
+ mime_module (shared)
56
+
57
+ log_config_module (shared)
58
+
59
+ env_module (shared)
60
+
61
+ headers_module (shared)
62
+
63
+ setenvif_module (shared)
64
+
65
+ version_module (shared)
66
+
67
+ unixd_module (shared)
68
+
69
+ status_module (shared)
70
+
71
+ autoindex_module (shared)
72
+
73
+ dir_module (shared)
74
+
75
+ alias_module (shared)
76
+
77
+ php5_module (shared)
78
+
25
79
 
26
80
 
27
81
  #which httpdの結果
82
+
83
+ /usr/local/sbin/httpd

4

2018/03/12 08:10

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -19,3 +19,9 @@
19
19
  PHP5.6
20
20
 
21
21
  mod_php56
22
+
23
+ #追記 httpd -Mの結果
24
+
25
+
26
+
27
+ #which httpdの結果

3

2018/03/12 08:09

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,5 @@
17
17
  Apache2.4.29
18
18
 
19
19
  PHP5.6
20
+
21
+ mod_php56

2

fix

2018/03/11 14:44

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  #/usr/local/www/apache24/data/info.phpの内容
6
6
 
7
- <?php phpinfo()
7
+ <?php phpinfo(); ?>
8
8
 
9
9
  #http://<サーバのIPアドレス>/info.phpにアクセスした時の画面
10
+
11
+ <?php phpinfo(); ?>
10
12
 
11
13
  #補足
12
14
 

1

2018/03/11 08:05

投稿

aiueoaiueoaiue
aiueoaiueoaiue

スコア94

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  #http://<サーバのIPアドレス>/info.phpにアクセスした時の画面
10
10
 
11
- 細く
11
+ 補足
12
12
 
13
13
  FreeBSD11.1
14
14