WordPress自动更新、升级主题、插件等设置,绕过FTP
首先在wp-config.php中加入下面代码(解决FTP问题):
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
后将wp-content 和 wp-include 文件夹的权限改为777:
chmod -R 777 filename
首先在wp-config.php中加入下面代码(解决FTP问题):
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
后将wp-content 和 wp-include 文件夹的权限改为777:
chmod -R 777 filename