以下为出错日志 [/usr/local/nginx/logs/error.log] :
2019/10/03 14:41:57 [crit] 25021#0: *8853 open() "/usr/local/nginx/fastcgi_temp/9/08/0000000089" failed (13: Permission denied) while reading upstream, client: 194.156.120.157, server: www.starx.ink, request: "GET /wp-admin/load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,jquery-ui-core,jquery-&load%5B%5D=ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,underscore,wp-util,wp-sanitize,wp-a11y,dashboard,thickbox,plugin-install,up&load%5B%5D=dates,shortcode,media-upload,svg-painter&ver=5.2.3 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "www.starx.ink", referrer: "https://www.starx.ink/wp-admin/"
Code language: PHP (php)
由于我的Nginx是预编译的版本,
可能复制到新机子上的权限有问题。
我们通过重新设置Nginx所有子目录的所属者以解决问题:
chown www-data:www-data -R /usr/local/nginx/
至此问题解决。
了解 Starx's Home 的更多信息
Subscribe to get the latest posts sent to your email.
0 条评论