Author Topic: Error 500 when trying to upload file  (Read 411 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error 500 when trying to upload file
« on: December 10, 2019, 12:11:28 AM »
Hey,

I'm getting "500 Internal" error when trying to upload file. There are other internet sites on the server, but I do not have problems uploading files other websites.

I checked:

.htaccess
chmod & chown
upload folder


What could be the reason?

Offline
*
Re: Error 500 when trying to upload file
« Reply #1 on: December 10, 2019, 12:14:47 AM »
Error log:

Code: [Select]
2019/12/10 00:00:44 [crit] 22773#0: *2904 open() "/var/lib/nginx/tmp/client_body/0000000010" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /sistem/Upload.php HTTP/1.1", host: "**domain**"
2019/12/10 00:00:48 [crit] 22776#0: *2915 open() "/var/lib/nginx/tmp/client_body/0000000011" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /upload.php HTTP/1.1", host: "**domain**", referrer: "**domain**/test4.php"
2019/12/10 00:03:30 [crit] 22777#0: *3369 open() "/var/lib/nginx/tmp/client_body/0000000012" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /test4.php HTTP/1.1", host: "**domain**", referrer: "**domain**/test4.php"
2019/12/10 00:05:27 [crit] 22774#0: *3672 open() "/var/lib/nginx/tmp/client_body/0000000013" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /test4.php HTTP/1.1", host: "**domain**", referrer: **domain**/test4.php"
2019/12/10 00:05:47 [crit] 22776#0: *3729 open() "/var/lib/nginx/tmp/client_body/0000000014" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /sistem/Upload.php HTTP/1.1", host: "**domain**"
2019/12/10 00:05:52 [crit] 22775#0: *3740 open() "/var/lib/nginx/tmp/client_body/0000000015" failed (13: Permission denied), client: 192.168.1.102, server: **domain**, request: "POST /test4.php HTTP/1.1", host: "**domain**", referrer: "**domain**test4.php"



Code: [Select]
[root@serve tmp]# ls -lh
total 16K
drwxrwxrwx 2 nobody root 4.0K Oct 27 04:34 client_body
drwx------ 2 nobody root 4.0K Oct 27 04:34 fastcgi
drwx------ 2 nobody root 4.0K Oct 27 04:34 scgi
drwx------ 2 nobody root 4.0K Oct 27 04:34 uwsgi
« Last Edit: December 10, 2019, 12:16:46 AM by Gezegenler »

Offline
*
Re: Error 500 when trying to upload file
« Reply #2 on: December 10, 2019, 12:47:49 PM »
I solved:

Code: [Select]
chmod +x /var/lib/nginx -R