学习是一个逐步发现自己无知的过程!

wordpress上传文件报错

1、检查nginx.conf

检查启动用户权限,有个设置user的地方,修改为你自己的用户:

user  root root;
worker_processes  1;

2、php-fpm.conf里面有句话指定了php配置文件的存放位置

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
include=/etc/php-fpm.d/*.conf

2.1、检查php-fpm.d/www.conf

; Start a new pool named 'www'.
[root]

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = root
; RPM: Keep a group allowed to write in log dir.
group = root

 

检查修改后重启服务即可

 

 

 

赞(0)
未经允许不得转载:劉大帥 » wordpress上传文件报错

你的评论可能会一针见血! 抢沙发

登录

找回密码

注册