Set post_max_size for PHP

Hello! I'm trying to setup my Wordpress site, and I need to set postmaxsize value. Default value is 8 mb, and I'm trying to make it bigger. I've setup it everywhere I found:

sudo rgrep post_max_size
Binary file usr/sbin/php-fpm7.0 matches
Binary file usr/lib/cgi-bin/php7.0 matches
usr/lib/php/7.0/php.ini-production:post_max_size = 128M
usr/lib/php/7.0/php.ini-development:post_max_size = 128M
usr/lib/php/7.0/php.ini-production.cli:post_max_size = 128M
Binary file usr/bin/php-cgi7.0 matches
Binary file usr/bin/php7.0 matches
etc/php/7.0/cgi/php.ini:post_max_size = 128M
etc/php/7.0/fpm/php.ini:post_max_size = 128M
etc/php/7.0/cli/php.ini:post_max_size = 128M

But phpinfo() always return 8Mb. What should I do wrong? I use 7.0 fpm and Nginx. How can I fix it? Thanks in advance!

1 Reply

phpinfo() should also return the path of the php.ini file it is reading its configuration from. Go to the location of that file and change the max post size there and you should be good to go.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct