1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【GCP】The uploaded file exceeds the upload_max_filesize directive in php.ini.が出た際の対処法

Posted at

Wordpress on GCEで以下のエラーが出た際に手こずったので、メモ。

The uploaded file exceeds the upload_max_filesize directive in php.ini.

php.initはいくつかあるが、以下のファイルが正解。

vi /etc/php/8.1/fpm/php.ini

お好きな値に変更する

# php.init

upload_max_filesize' , 'XXM'
post_max_size', 'XXM'

apacheを再起動

sudo service php8.1-fpm restart
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?