LoginSignup
4
2

More than 5 years have passed since last update.

WordPress : Nginx 413 Request Entity Too Largeというエラー

Last updated at Posted at 2017-12-18

php.ini の修正

sudo vi /etc/php/7.0/fpm/php.ini

# post_max_size を変更する
post_max_size = 20M  ←★変えたい数値に変更

# upload_max_filesize を変更
upload_max_filesize = 20M  ←★変えたい数値に変更

# 再起動
sudo service php7.0-fpm restart

Nginx の設定

sudo vi  /usr/local/nginx/conf/nginx.conf


http {
〜〜〜略〜〜〜
    client_max_body_size 20M;  ←★変えたい数値に変更
〜〜〜略〜〜〜
}

# 再起動
sudo service nginx restart
4
2
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
4
2