Problem with changing post_max_size
Posted by: PlasticBag (---.mpynet.fi)
Date: March 29, 2020 04:26PM

Hello,

I have installed WordPress to my Wamp Server.

I'm trying to change these:
post_max_size from 8M to 64M.
upload_max_filesize from 2M to 64M
max_input_time from 60 to 120.

A while ago they worked normally but today I checked out that they won't work.
I have changed those values in php.ini, WordPress's .htaccess file and wp-config file.
But my WordPress still says that I have old values.

What could I do?

Best Regards
PB

Options: ReplyQuote
Re: Problem with changing post_max_size
Posted by: Otomatic (Moderator)
Date: March 29, 2020 04:52PM

Hi,

> I have changed those values in php.ini,

What is the full path to the php.ini file you modified?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Problem with changing post_max_size
Posted by: PlasticBag (---.mpynet.fi)
Date: March 29, 2020 05:19PM

The full path is C:\wamp\bin\php\php7.3.12\php.ini.
If I change the memory_limit, it changes in WordPress too, but those I already told won't work.

Options: ReplyQuote
Re: Problem with changing post_max_size
Posted by: Otomatic (Moderator)
Date: March 29, 2020 06:11PM

Hi,

> The full path is C:\wamp\bin\php\php7.3.12\php.ini.
You haven't noticed at all that at the beginning of this file it is noted:
; **************************************************************
; ****** DO NOT EDIT THIS FILE **** DO NOT EDIT THIS FILE ******
; * This file is only use by PHP CLI (Command Line Interface)  *
; * that is to say by Wampserver internal PHP scripts          *
; * THE CORRECT FILE TO EDIT is Wampmanager Icon->PHP->php.ini *
; * that is wamp/bin/apache/apache2.x.y/bin/php.ini            *
; **************************************************************
It is however a very visible and readable "paving stone"!

Besides, what's the point of giving you the tools you need to modify most PHP configuration directives very easily, simply and without making mistakes!
Left-Click wampmanager tray icon -> PHP -> PHP Settings ->
and then you choose the directive you want to change and then the value you want!

It couldn't be simpler.

Or maybe you wanted to apply the adage, "Why make it simple when you can make it complicated"...

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Problem with changing post_max_size
Posted by: PlasticBag (---.mpynet.fi)
Date: March 29, 2020 07:07PM

Now I edited it from /wamp/bin/apache/apache2.x.y/bin/php.ini
but it still didn't change on Wordpress.

Options: ReplyQuote
Re: Problem with changing post_max_size
Posted by: Otomatic (Moderator)
Date: March 29, 2020 07:26PM

Hi,

I don't give a damn that it doesn't change in Wordpress, the only Justice of the Peace is what phpinfo() says.:
'http://localhost/' the phpinfo()

And then, I don'tsaid to change directly in php.ini Apache, but using the Wampmanager menus:
Left-Click wampmanager tray icon -> PHP -> PHP Settings ->

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.