質問編集履歴
1
ソースコードをすべて記載し、パーミッションとエラーログについて追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,16 +40,248 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
+
<?php
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
/** This file is part of KCFinder project
|
48
|
+
|
49
|
+
*
|
50
|
+
|
51
|
+
* @desc Base configuration file
|
52
|
+
|
53
|
+
* @package KCFinder
|
54
|
+
|
55
|
+
* @version 3.12
|
56
|
+
|
57
|
+
* @author Pavel Tzonkov <sunhater@sunhater.com>
|
58
|
+
|
59
|
+
* @copyright 2010-2014 KCFinder Project
|
60
|
+
|
61
|
+
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
|
62
|
+
|
63
|
+
* @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
|
64
|
+
|
65
|
+
* @link http://kcfinder.sunhater.com
|
66
|
+
|
67
|
+
*/
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
|
72
|
+
|
73
|
+
even if you are using session configuration.
|
74
|
+
|
75
|
+
See http://kcfinder.sunhater.com/install for setting descriptions */
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
return array(
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
// GENERAL SETTINGS
|
86
|
+
|
87
|
+
|
88
|
+
|
43
89
|
'disabled' => false,
|
44
90
|
|
91
|
+
'uploadURL' => "/storage/",
|
92
|
+
|
45
|
-
'upload
|
93
|
+
'uploadDir' => "",
|
46
|
-
|
47
|
-
'uploadDir' => "/user/laravel/public/js/kcfinder/upload",
|
48
94
|
|
49
95
|
'theme' => "default",
|
50
96
|
|
51
97
|
|
52
98
|
|
99
|
+
'types' => array(
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
// (F)CKEditor types
|
104
|
+
|
105
|
+
'files' => "",
|
106
|
+
|
107
|
+
'flash' => "swf",
|
108
|
+
|
109
|
+
'images' => "*img",
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
// TinyMCE types
|
114
|
+
|
115
|
+
'file' => "",
|
116
|
+
|
117
|
+
'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
|
118
|
+
|
119
|
+
'image' => "*img",
|
120
|
+
|
121
|
+
),
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
// IMAGE SETTINGS
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
'imageDriversPriority' => "imagick gmagick gd",
|
132
|
+
|
133
|
+
'jpegQuality' => 90,
|
134
|
+
|
135
|
+
'thumbsDir' => ".thumbs",
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
'maxImageWidth' => 0,
|
140
|
+
|
141
|
+
'maxImageHeight' => 0,
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
'thumbWidth' => 100,
|
146
|
+
|
147
|
+
'thumbHeight' => 100,
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
'watermark' => "",
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
// DISABLE / ENABLE SETTINGS
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
'denyZipDownload' => false,
|
162
|
+
|
163
|
+
'denyUpdateCheck' => false,
|
164
|
+
|
165
|
+
'denyExtensionRename' => false,
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
// PERMISSION SETTINGS
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
'dirPerms' => 0755,
|
176
|
+
|
177
|
+
'filePerms' => 0644,
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
'access' => array(
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
'files' => array(
|
186
|
+
|
187
|
+
'upload' => true,
|
188
|
+
|
189
|
+
'delete' => true,
|
190
|
+
|
191
|
+
'copy' => true,
|
192
|
+
|
193
|
+
'move' => true,
|
194
|
+
|
195
|
+
'rename' => true
|
196
|
+
|
197
|
+
),
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
'dirs' => array(
|
202
|
+
|
203
|
+
'create' => true,
|
204
|
+
|
205
|
+
'delete' => true,
|
206
|
+
|
207
|
+
'rename' => true
|
208
|
+
|
209
|
+
)
|
210
|
+
|
211
|
+
),
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6",
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
// MISC SETTINGS
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
'filenameChangeChars' => array(/*
|
226
|
+
|
227
|
+
' ' => "_",
|
228
|
+
|
229
|
+
':' => "."
|
230
|
+
|
231
|
+
*/),
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
'dirnameChangeChars' => array(/*
|
236
|
+
|
237
|
+
' ' => "_",
|
238
|
+
|
239
|
+
':' => "."
|
240
|
+
|
241
|
+
*/),
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
'mime_magic' => "",
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
'cookieDomain' => "",
|
250
|
+
|
251
|
+
'cookiePath' => "",
|
252
|
+
|
253
|
+
'cookiePrefix' => 'KCFINDER_',
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
'_sessionVar' => "KCFINDER",
|
264
|
+
|
265
|
+
'_check4htaccess' => true,
|
266
|
+
|
267
|
+
'_normalizeFilenames' => false,
|
268
|
+
|
269
|
+
'_dropUploadMaxFilesize' => 10485760,
|
270
|
+
|
271
|
+
//'_tinyMCEPath' => "/tiny_mce",
|
272
|
+
|
273
|
+
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
|
274
|
+
|
275
|
+
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
);
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
53
285
|
です。
|
54
286
|
|
55
287
|
|
@@ -60,7 +292,11 @@
|
|
60
292
|
|
61
293
|
uploadURLの値をいろいろ変えてみましたが、状況は変わりませんでした。
|
62
294
|
|
63
|
-
この設定で「/
|
295
|
+
この設定で「/root/laravel/public/storage/files/」にファイルがアップされます。
|
296
|
+
|
297
|
+
「/root/laravel」内のすべてのパーミッションは「777」にしています。です。
|
298
|
+
|
299
|
+
エラーログには特にエラーはありませんでした。
|
64
300
|
|
65
301
|
解決方法をご存じの方がおられましたらご教示願います。
|
66
302
|
|