新闻资讯

要执行请求的操作,WordPress需要访问您网页服务器的权限

发布日期:2025-02-19 12:56:35浏览量:74

第一、修改wp-config.php文件

define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);

在wp-config.php文件最后添加上面三行。

第二、授权目录

chown -R www-data:www-data /var/www/html
chmod -R 775 /var/www/html
chmod -R 777 /var/www/html/wp-content


Warning: unlink(/www/wwwroot/gysqd.com/wp-content/cache/wpzt_/df/8c553ebb5ee62d1b5158943d734a3a.tpl): Permission denied in /www/wwwroot/gysqd.com/wp-content/themes/wpzt-olivia/vendor/wpzt/cache/driver/File.php on line 290

Warning: file_put_contents(/www/wwwroot/gysqd.com/wp-content/cache/wpzt_/df/8c553ebb5ee62d1b5158943d734a3a.tpl): Failed to open stream: Permission denied in /www/wwwroot/gysqd.com/wp-content/themes/wpzt-olivia/vendor/wpzt/cache/driver/File.php on line 179

相关推荐