I have a local WordPress installation at my work place using Wamp, and I had a max upload size of 3 MB.
Following the solution I found, I edited the php.ini file from the wamp menu, increased post_max_size to 32M and upload_max_filesize to 64M and restarted the servers.
The max upload size increased in the WordPress admin area to 10 MB, which isn’t enough, and I can’t tell where that number is coming from.
I searched for the phrase 10M
in the wamp’s php.ini file but didn’t find any.
Any idea where that number might be coming from?
Quote from the PHP manual
So your
post_max_filesize
need to be large enough to cope with theAlso you need to check that
memory_limit
is big enough to cope as wellThe correct php.ini file
It is also worth noting that WAMPServer, like most Apache/PHP installations has 2 different php.ini files. Maybe you are editng the wrong one?
There is one in
wampbinphpphp{version}php.ini
this is used by the PHP CLI ( Command Line Inteface ) and soes not affect PHP used under Apache.The one you need to edit to affect Apache/PHP is
wampbinapacheapache{version}binphp.ini
but the easiest way to do that is to use the wampmanager menus.Find the wampmanager icon in the system tray and left click then follow the menus
This will open the correct
php.ini
file, the one used by PHP when run with apache. Make the changes in this file.Create a
.htaccess
file into the WordPress root and insert the following:Then check if the values have been changed inside
wp-admin
. If they have, there is some otherphp.ini
being loaded instead of the one you’ve been editing.Still ran into this problem today. Fix that worked for me:
Click WAMP tray icon and select PHP/php.ini
This will open the php.ini file in the editor you chose when installing WAMP. Note that php.ini is a shortcut to the file C:wampDirbinphpphp7.2.14phpForApache.ini. Presumably this will vary between installs.
What I found was that the upload max in WP is the lesser of these 2 settings in the php.ini file:
and
Easy! (after over an hour of searching) ;(