粗暴点的方法,修改所有文件权限为777,后续改回部分重要文件的权限为755(只有所有者可以写入),在var/www/html下执行chmod -R 777 ./
wp-config.php里加入下面代码:
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
引用自:http://www.aitilife.com/2011/04/10/wordpress-error-about-permissions/
发表回复