108
119

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WordPress FTPなしでプラグインダウンロードできる設定

Last updated at Posted at 2012-08-02

この設定を忘れてプラグインをインストールしようとすると、FTPのアカウントの入力がどうのこうのと言われて「FTPなんか使うかアホ!」とWordPressを罵るハメになるので、そうならないためにこれを書きます。

wp-config.php に書きます

wp-config.php
<?php
define('FS_METHOD', 'direct');

下のコードよりも上に書かないと効かないので気をつけてください。

wp-config.php
<?php
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
108
119
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
108
119

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?