質問編集履歴
2
ファイルをみたので、記載しました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -31,9 +31,63 @@
|
|
|
31
31
|
何か設定を変えた可能性があります。
|
|
32
32
|
すみませんが、何をしたか覚えていません。
|
|
33
33
|
設定ファイルのどこを変えたのか見当がつかず困っています。
|
|
34
|
+
|
|
35
|
+
[https://qiita.com/leveloper8/items/c4f6a5d4897301e832a7](https://qiita.com/leveloper8/items/c4f6a5d4897301e832a7)
|
|
36
|
+
をみたと思います。
|
|
37
|
+
XAMPPのファイルは丸ごと消してしまいました。
|
|
38
|
+
|
|
34
39
|
phpファイル表示されない原因に考えられることに何がありますでしょうか?
|
|
35
40
|
何かヒントいただけると助かります。
|
|
36
41
|
|
|
42
|
+
/private/etc/apache2/extra/httpd-vhosts.conf の
|
|
43
|
+
httpd-vhosts.confですが、下記のようになっています。
|
|
44
|
+
何かおかしなところがありますでしょうか。
|
|
45
|
+
```
|
|
46
|
+
# Virtual Hosts
|
|
47
|
+
#
|
|
48
|
+
# Required modules: mod_log_config
|
|
49
|
+
|
|
50
|
+
# If you want to maintain multiple domains/hostnames on your
|
|
51
|
+
# machine you can setup VirtualHost containers for them. Most configurations
|
|
52
|
+
# use only name-based virtual hosts so the server doesn't need to worry about
|
|
53
|
+
# IP addresses. This is indicated by the asterisks in the directives below.
|
|
54
|
+
#
|
|
55
|
+
# Please see the documentation at
|
|
56
|
+
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
|
|
57
|
+
# for further details before you try to setup virtual hosts.
|
|
58
|
+
#
|
|
59
|
+
# You may use the command line option '-S' to verify your virtual host
|
|
60
|
+
# configuration.
|
|
61
|
+
|
|
62
|
+
#
|
|
63
|
+
# VirtualHost example:
|
|
64
|
+
# Almost any Apache directive may go into a VirtualHost container.
|
|
65
|
+
# The first VirtualHost section is used for all requests that do not
|
|
66
|
+
# match a ServerName or ServerAlias in any <VirtualHost> block.
|
|
67
|
+
#
|
|
68
|
+
<VirtualHost *:80>
|
|
69
|
+
ServerAdmin webmaster@dummy-host.example.com
|
|
70
|
+
DocumentRoot "/usr/docs/dummy-host.example.com"
|
|
71
|
+
ServerName dummy-host.example.com
|
|
72
|
+
ServerAlias www.dummy-host.example.com
|
|
73
|
+
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
|
|
74
|
+
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
|
|
75
|
+
</VirtualHost>
|
|
76
|
+
|
|
77
|
+
<VirtualHost *:80>
|
|
78
|
+
ServerAdmin webmaster@dummy-host2.example.com
|
|
79
|
+
DocumentRoot "/usr/docs/dummy-host2.example.com"
|
|
80
|
+
ServerName dummy-host2.example.com
|
|
81
|
+
ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
|
|
82
|
+
CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
|
|
83
|
+
</VirtualHost>
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
37
91
|
### 補足情報(FW/ツールのバージョンなど)
|
|
38
92
|
macOS Sierra 10.12.6
|
|
39
93
|
MAMPバージョン 5.3
|
1
誤字になっていました。
title
CHANGED
|
@@ -1,1 +1,1 @@
|
|
|
1
|
-
|
|
1
|
+
MAMPでphpファイルが表示されない。
|
body
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
### 前提・実現したいこと
|
|
2
|
-
macOSで
|
|
2
|
+
macOSでMAMP上でphpファイルが表示したいです。
|
|
3
3
|
|
|
4
4
|
### 発生している問題・エラーメッセージ
|
|
5
|
-
macOSで
|
|
5
|
+
macOSでMAMPで開発を行おうとしています。
|
|
6
6
|
hostsフォルダにphpファイルを置いてみましたが、phpファイルが表示されません。
|
|
7
7
|
8888ポートから、80ポート、81ポートに変更してみましたが、いずれもhostsフォルダに入れたファイルは表示されません。
|
|
8
8
|
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
|
|
37
37
|
### 補足情報(FW/ツールのバージョンなど)
|
|
38
38
|
macOS Sierra 10.12.6
|
|
39
|
-
|
|
39
|
+
MAMPバージョン 5.3
|