LoginSignup
0
0

More than 1 year has passed since last update.

[WordPress][Docker]インストール直後のおまじない

Last updated at Posted at 2023-03-11

WordPress立ち上げ時に必ずハマるやつまとめます。

またはまるの必至なので。

起きる現象:

  1. ファイルサイズMaxを超えています。
  2. ディレクトリ wp-content/uploads/xxx を作成できません。
  3. httpsの表示がおかしい。
    などなど

おまじない1: php.iniのMaxサイズ変更

php.ini
upload_max_filesize = 30M
post_max_size = 30M

おまじない2: wp-contentフォルダ以下のアクセス権の変更

wp-contentフォルダ
>cd wp-content/
>chmod -R 707 .

おまじない3: wp-config.phpに設定追加

wp-config.php
define('FS_METHOD', 'direct');
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
$_SERVER['HTTPS'] = 'on';

以上。

0
0
0

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
0
0