質問編集履歴
2
ファイルをみたので、記載しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,9 +64,117 @@
|
|
64
64
|
|
65
65
|
設定ファイルのどこを変えたのか見当がつかず困っています。
|
66
66
|
|
67
|
+
|
68
|
+
|
69
|
+
[https://qiita.com/leveloper8/items/c4f6a5d4897301e832a7](https://qiita.com/leveloper8/items/c4f6a5d4897301e832a7)
|
70
|
+
|
71
|
+
をみたと思います。
|
72
|
+
|
73
|
+
XAMPPのファイルは丸ごと消してしまいました。
|
74
|
+
|
75
|
+
|
76
|
+
|
67
77
|
phpファイル表示されない原因に考えられることに何がありますでしょうか?
|
68
78
|
|
69
79
|
何かヒントいただけると助かります。
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
/private/etc/apache2/extra/httpd-vhosts.conf の
|
84
|
+
|
85
|
+
httpd-vhosts.confですが、下記のようになっています。
|
86
|
+
|
87
|
+
何かおかしなところがありますでしょうか。
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
# Virtual Hosts
|
92
|
+
|
93
|
+
#
|
94
|
+
|
95
|
+
# Required modules: mod_log_config
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
# If you want to maintain multiple domains/hostnames on your
|
100
|
+
|
101
|
+
# machine you can setup VirtualHost containers for them. Most configurations
|
102
|
+
|
103
|
+
# use only name-based virtual hosts so the server doesn't need to worry about
|
104
|
+
|
105
|
+
# IP addresses. This is indicated by the asterisks in the directives below.
|
106
|
+
|
107
|
+
#
|
108
|
+
|
109
|
+
# Please see the documentation at
|
110
|
+
|
111
|
+
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
|
112
|
+
|
113
|
+
# for further details before you try to setup virtual hosts.
|
114
|
+
|
115
|
+
#
|
116
|
+
|
117
|
+
# You may use the command line option '-S' to verify your virtual host
|
118
|
+
|
119
|
+
# configuration.
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
#
|
124
|
+
|
125
|
+
# VirtualHost example:
|
126
|
+
|
127
|
+
# Almost any Apache directive may go into a VirtualHost container.
|
128
|
+
|
129
|
+
# The first VirtualHost section is used for all requests that do not
|
130
|
+
|
131
|
+
# match a ServerName or ServerAlias in any <VirtualHost> block.
|
132
|
+
|
133
|
+
#
|
134
|
+
|
135
|
+
<VirtualHost *:80>
|
136
|
+
|
137
|
+
ServerAdmin webmaster@dummy-host.example.com
|
138
|
+
|
139
|
+
DocumentRoot "/usr/docs/dummy-host.example.com"
|
140
|
+
|
141
|
+
ServerName dummy-host.example.com
|
142
|
+
|
143
|
+
ServerAlias www.dummy-host.example.com
|
144
|
+
|
145
|
+
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
|
146
|
+
|
147
|
+
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
|
148
|
+
|
149
|
+
</VirtualHost>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<VirtualHost *:80>
|
154
|
+
|
155
|
+
ServerAdmin webmaster@dummy-host2.example.com
|
156
|
+
|
157
|
+
DocumentRoot "/usr/docs/dummy-host2.example.com"
|
158
|
+
|
159
|
+
ServerName dummy-host2.example.com
|
160
|
+
|
161
|
+
ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
|
162
|
+
|
163
|
+
CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
|
164
|
+
|
165
|
+
</VirtualHost>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
```
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
70
178
|
|
71
179
|
|
72
180
|
|
1
誤字になっていました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
MA
|
1
|
+
MAMPでphpファイルが表示されない。
|
test
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
macOSでMA
|
3
|
+
macOSでMAMP上でphpファイルが表示したいです。
|
4
4
|
|
5
5
|
|
6
6
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
8
|
|
9
|
-
macOSでMA
|
9
|
+
macOSでMAMPで開発を行おうとしています。
|
10
10
|
|
11
11
|
hostsフォルダにphpファイルを置いてみましたが、phpファイルが表示されません。
|
12
12
|
|
@@ -74,4 +74,4 @@
|
|
74
74
|
|
75
75
|
macOS Sierra 10.12.6
|
76
76
|
|
77
|
-
MA
|
77
|
+
MAMPバージョン 5.3
|