Just finished installing Chevereto, but quickly met another problem when uploading.
It seems like folder permission problem, but I never touch anything about them.
It seems like folder permission problem, but I never touch anything about them.
Code:
Stack trace:
#0 unknown file(unknown line): G\errorsAsExceptions()
#1 /app/lib/classes/class.upload.php(311): tempnam()
#2 /app/lib/classes/class.upload.php(329): CHV\Upload::getTempNam()
#3 /app/lib/classes/class.upload.php(99): CHV\Upload->fetchSource()
#4 /app/lib/classes/class.image.php(504): CHV\Upload->exec()
#5 /app/lib/classes/class.image.php(647): CHV\Image::upload()
#6 /app/routes/route.json.php(88): CHV\Image::uploadToWebsite()
#7 /lib/G/classes/class.handler.php(230): G\Handler->{closure}()
#8 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#9 /app/web.php(411): G\Handler->__construct()
#10 /app/loader.php(230)" while reading response header from upstream, client: 223.198.113.201, server: img.lun.im, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php-fpm-img.lun.im.sock:", host: "img.lun.im", referrer: "https://img.lun.im/upload"
2021/07/18 00:09:06 [error] 97569#97569: *100 FastCGI sent in stderr: "PHP message:
Aw, snap! Internal Server Error [debug @ error_log] - https://chv.to/debug
** errorId #23b1020d146cb3c4 **
>> ErrorException [0]: tempnam(): open_basedir restriction in effect. File(/home/admin/tmp) is not within the allowed path(s): (/home/admin/web/img.lun.im/public_html:/home/admin/web/img.lun.im/tmp)
At /app/lib/classes/class.upload.php:311