3
我想安装一些插件,但显示无法安装插件和主题
Installation failed: Could not create directory.
,我找到了一些解决方案添加一些代码WP-配置
//* FTP Settings **/
/** wp-content path */
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/');
define('FTP_CONTENT_DIR', '/wp-content/');
define('FTP_PLUGIN_DIR', '/wp-content/plugins/');
define('FTP_USER', 'ftpuser');
define('FTP_PASS', 'ftppewd');
define('FTP_HOST', 'domain.com');
define('FTP_SSL', false);
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
该错误消息变化
安装失败:无法连接到文件系统。请 确认您的凭证
。 我使用IIS 8 使用ftp客户端ftp帐户拥有完全访问权限
为什么你同时使用ftpext和'FS_METHOD'只有一个足够直接或者ftpext?我建议你使用'define(“FS_METHOD”,“direct”);'删除其他常量 –
如果没有添加任何错误show>安装失败:无法找到WordPress内容目录(wp-content)。 – petercheung
http://wordpress.stackexchange.com/questions/206022/unable-to-locate-wordpress-content-directory-wp-content –