Error pdf articel eror The PDF file is empty, i.e. its size is zero bytes

2024/06/04 15:46:22 [error] 120165#0: *99870 directory index of "/www/wwwroot/jurnal.ummi.ac.id/public/journals/10/" is forbidden, client: 182.2.143.146, server: jurnal.ummi.ac.id, request: "GET /public/journals/10/ HTTP/2.0", host: "www.jurnal.ummi.ac.id", referrer: "https://www.jurnal.ummi.ac.id/index.php/peka/article/view/1456"
2024/06/04 15:49:46 [error] 120165#0: *99899 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /www/wwwroot/jurnal.ummi.ac.id/lib/pkp/classes/file/FileManager.inc.php on line 310" while reading response header from upstream, client: 66.249.68.70, server: jurnal.ummi.ac.id, request: "GET /index.php/perseda/article/view/1686 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "www.jurnal.ummi.ac.id"
2024/06/04 15:49:46 [error] 120165#0: *99901 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /www/wwwroot/jurnal.ummi.ac.id/lib/pkp/classes/file/FileManager.inc.php on line 310" while reading response header from upstream, client: 52.167.144.203, server: jurnal.ummi.ac.id, request: "GET /index.php/mae/article/view/1430 HTTP/2.0", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "www.jurnal.ummi.ac.id"

when I access the pdf it finds that the pdf cannot be opened which displays an error

The PDF file is empty, i.e. its size is zero bytes.

does anyone have the same problem

@Dennis_Saputra,

It looks like you may have configured your files_dir to be inside your web root. See config.inc.php. This is a dangerous configuration and will get your site hacked!

Regards,
Alec Smecher
Public Knowledge Project Team

hallo @asmecher
I did not make any file changes, to prevent ‘config.inc.php’ from being hacked how, and to fix ‘files_dir’ how

@asmecher

If the error log is like this, why?

2024/06/04 23:12:27 [error] 920#0: *8527 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /www/wwwroot/jurnal.ummi.ac.id /lib/pkp/classes/file/FileManager.inc.php on line 310"while reading response header from upstream, client: 66.249.68.71, server: Jurnal.ummi.ac.id, request: "GET /index.php/ JUT/issue/view/15 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "www.jurnal.ummi.ac.id"
2024/06/04 23:12:33 [error] 920#0: *8529 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /www/wwwroot/jurnal.ummi.ac.id /lib/pkp/classes/file/FileManager.inc.php on line 310"while reading response header from upstream, client: 66.249.68.70, server: Jurnal.ummi.ac.id, request: "GET /index.php/ jift/issue/view/184 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-72.sock:", host: "www.jurnal.ummi.ac.id"

Hi @Dennis_Saputra,

See config.inc.php for a note about this. Check to make sure your files_dir is configured somewhere outside the web root, and if you have to change it to make that happen, then you’ll also have to move the existing contents of that directory to the new location.

Regards,
Alec Smecher
Public Knowledge Project Team

image
It turns out I saw that there was a premission that had access to 0 and I changed it to 755, but found the latest problem

PDF can be downloaded but does not display PDF text on the page

error log:
2024/06/05 08:26:42 [error] 920#0: *12391 directory index of "/www/wwwroot/jurnal.ummi.ac.id/public/journals/9/" is forbidden, client: 114.122.6.144, server: jurnal.ummi.ac.id, request: "GET /public/journals/9/ HTTP/2.0", host: "www.jurnal.ummi.ac.id", referrer: "https://www.jurnal.ummi.ac.id/index.php/JUT/article/view/2235"

check permission for the plugin folder and inside the plugin folder. look and the plugin/generic folder permission.

same like this problem