Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Rename Permission Denied While Reading From Upstream

$
0
0
I recently switched from Apache to Nginx. PHP language underneath and using fastcgi_pass to php7.4-fpm to run all script file. Everything seems to be working fine. Pages are working, PHP is executing, all assets loading fine, etc. However my nginx error log is getting flooded with these errors:


****************************
2020/11/19 06:28:52 [crit] 3332114#3332114: *26646323 rename() "/tmp/0012831123" to "/opt/www/example/web/controller.php" failed (13: Permission denied) while reading upstream, client: 104.220.189.242, server: www.example.com, request: "GET /path1/path2/path3/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "www.example.com", referrer: "https://www.example.com/"
****************************

I have been trying to Google this for a week, and there just is nothing. Tried looking at permissions on nginx cache files, etc, but nothing. I really am stumped at this. I have no idea why some tmp file would be trying to get renamed to an actual file that should be executable. This seems bad, and kind of scary.

Any help or advice on where to look would be greatly appreciated.

Cheers!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>