lighttpd 上传被拒绝,"directory does not exist" 但确实如此

lighttpd upload denied, "directory does not exist" but it does

我为此搜索了很多,很多帖子都提到必须创建上传目录并具有适当的权限。确实如此。

服务器不是 运行 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)

这看起来像是一年前在 lighttpd 中修复的错误。然而,lighttpd 1.4.35 已经超过三年了。最新的 lighttpd 是 1.4.45(并且是 Debian Stretch 的一部分)。请使用较新版本的 lighttpd 进行测试。