質問編集履歴
2
ls -ld /Users/username/ の結果を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
apacheの設定は下記URLを参考にして設定しています。
|
27
|
+
apacheの設定は下記URLを参考にして設定しています。(ユーザ名は伏字でusernameにしています)
|
28
28
|
|
29
29
|
http://qiita.com/mazgi/items/42458878e75bf1abc1c4
|
30
30
|
|
@@ -103,3 +103,13 @@
|
|
103
103
|
?>
|
104
104
|
|
105
105
|
```
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
○ ls -ld /Users/username/ の結果
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
drwxr-xr-x+ 31 username staff 1054 8 20 12:20 /Users/username/
|
114
|
+
|
115
|
+
```
|
1
codeタグの指定
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,8 @@
|
|
34
34
|
|
35
35
|
○ /etc/apache2/httpd.conf の変更
|
36
36
|
|
37
|
+
```apache
|
38
|
+
|
37
39
|
167 LoadModule userdir_module libexec/apache2/mod_userdir.so
|
38
40
|
|
39
41
|
170 LoadModule php5_module libexec/apache2/libphp5.so
|
@@ -42,7 +44,13 @@
|
|
42
44
|
|
43
45
|
|
44
46
|
|
47
|
+
```
|
48
|
+
|
49
|
+
|
50
|
+
|
45
51
|
○ /etc/apache2/extra/httpd-userdir.conf の内容
|
52
|
+
|
53
|
+
```apache
|
46
54
|
|
47
55
|
UserDir enabled
|
48
56
|
|
@@ -56,9 +64,13 @@
|
|
56
64
|
|
57
65
|
</IfModule>
|
58
66
|
|
67
|
+
```
|
68
|
+
|
59
69
|
|
60
70
|
|
61
71
|
○ /etc/apache2/users/username.conf の内容
|
72
|
+
|
73
|
+
```apache
|
62
74
|
|
63
75
|
<Directory "/Users/username/Sites/eccube/test/htdocs/">
|
64
76
|
|
@@ -76,12 +88,18 @@
|
|
76
88
|
|
77
89
|
</Directory>
|
78
90
|
|
91
|
+
```
|
92
|
+
|
79
93
|
|
80
94
|
|
81
95
|
○ /Users/username/Sites/eccube/test/htdocs/phpinfo.php(パーミッション777,所有者:username,グループ:staff)
|
96
|
+
|
97
|
+
```PHP
|
82
98
|
|
83
99
|
<?php
|
84
100
|
|
85
101
|
phpinfo();
|
86
102
|
|
87
103
|
?>
|
104
|
+
|
105
|
+
```
|