关于wordpess下载插件更新主题出现ftp验证问题

在服务器终端扫描 wp-config.php 文件在什么位置

复制代码
sudo find / -name wp-config.php 2>/dev/null

扫描结果 :(每个人的存放都不一样,这里只是演示)

复制代码
/opt/1panel/apps/openresty/openresty/www/sites/index.com/index/wordpress/wp-config.php

使用 vim 打开 wp-config.php文件

复制代码
sudo vim /opt/1panel/apps/openresty/openresty/www/sites/index.com/index/wordpress/wp-config.php

在wp-config.php文件 底部加上代码 保存退出,

复制代码
// 设置权限0777
define("FS_METHOD", "direct");  
define("FS_CHMOD_DIR", 0777);  
define("FS_CHMOD_FILE", 0777); 

示例图片:

执行 sudo chmod 777 -R 这后面的地址是你刚刚扫描出来的wp-config.php的根目录地址,只需要存放wp-config.php文件目录,不需要wp-config.php文件名

复制代码
示例:
sudo chmod 777 -R /opt/1panel/apps/openresty/openresty/www/sites/index.com/index/wordpress/
相关推荐
~黄夫人~3 分钟前
Ansible 自动化运维:从 “手动输密码” 到 “一键免密管理”
linux·运维·自动化·ansible
cui__OaO9 分钟前
Linux驱动--基于驱动设备分离的按键中断驱动
linux·运维·服务器·嵌入式
littlegirll11 分钟前
ssh远程调用图形程序
运维·ssh·x11forwarding·远程调用图形界面
星期五不见面36 分钟前
虚拟机使用外部WPN网络
linux
OnlyEasyCode1 小时前
Linux下载Navicat、特定版本Mysql
linux·运维·服务器
宇宙帅猴1 小时前
【Ubuntu踩坑及解决方案(一)】
linux·运维·ubuntu·go
济6171 小时前
linux 系统移植(第七期)----U-Boot 图形化配置及其原理-- Ubuntu20.04
linux·运维·服务器
_Xiaosz1 小时前
Photo-SLAM / ORB-SLAM3 编译报错解决:undefined reference to DUtils::Random
linux·ubuntu
kida_yuan2 小时前
【Linux】文件系统与 fsck.ext4 修复 - 我踩过的坑与总结
linux·运维·网络
Star Learning Python2 小时前
MySQL基础知识的总结
运维