Everytime i想要update我的wordpress网站上的特定页面,页面被冻结,并且不允许我使用该构建器。在Wordpress仪表板上,我看到以下消息:用以下目录/文件写入权限问题 Elementor上载目录。
当我检查错误日志时,我发现以下内容:
`[error] 14605#14605: *52603 FastCGI sent in stderr: "PHP message: PHP Warning:
file_put_contents(/var/www/corvettes2.performancecorvettes.com/public/wp-content/uploads/elementor/css/post-701.css):
failed to open stream:
Permission denied in /var/www/corvettes2.performancecorvettes.com/public/
wp-content/plugins/elementor/core/files/base.php`
到目前为止我尝试过的:
;
user nginx;
worker_processes auto;
worker_rlimit_nofile 20000;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
multi_accept on;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_requests 100000;
keepalive_timeout 5;
send_timeout 10;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_vary off;
gzip_types text/plain text/css text/xml application/xml application/rss+xml application/atom+xml application/x-font-ttf application/font-woff application/vnd.ms-fontobject application/javascript application/json application/x-javascript application/x-httpd-php application/x-httpd-fastphp application/x-httpd-eruby image/svg+xml text/javascript text/mathml;
gzip_min_length 1000;
gzip_disable "MSIE [1-6]\.";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
client_max_body_size 20M;
}
检查上传目录及其文件的所有权。它们很可能是由root或其他用户拥有的。如果是这样,请使用chmod将其更改为nginx用户。