我搜索了很多,很多帖子都提到必须创建上传目录并拥有适当的权限。确实如此。
服务器没有在chroot中运行lighttpd,因为有些问题。
尝试上传大型[1]文件时,我在日志中收到此错误:
denying upload as opening to temp-file for upload failed:
/var/cache/lighttpd/uploads, /var/cache/lighttpd/uploads/lighttpd-upload-Lo00Am
No such file or directory
[1]大:21KB附件很好,81KB不是。
lighttpd.conf:
server.document-root = "/var/www/rma"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/support.error.log"
accesslog.filename = "/var/log/lighttpd/support.access.log"
server.pid-file = "/var/run/lighttpd.pid"
server.max-request-size = 1000000000
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
该文件夹存在:
# ls -ld /var/cache/lighttpd/uploads
drwxrwxrwx 2 www-data www-data 4096 Jun 7 10:01 /var/cache/lighttpd/uploads
# uname -a
Linux somehostname 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
# lighttpd -v
lighttpd/1.4.35 (ssl) - a light and fast webserver
Build-Date: Aug 2 2016 09:50:21
# php5-fpm -v
PHP 5.6.30-0+deb8u1 (fpm-fcgi) (built: Feb 8 2017 08:51:18)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
否则网站很好(osTicket)
答案 0 :(得分:0)
这看起来像是一年前在lighttpd中修复的错误。但是,lighttpd 1.4.35已经超过三年了。最新的lighttpd是1.4.45(并且是Debian Stretch的一部分)。请使用较新版本的lighttpd进行测试。