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 –