Skip to content
Advertisement

Maximum upload file size not reflecting to phpinfo()

My problem is that when I check to wp-admin/media-new.php I see Maximum upload file size: 8 MB. Now I change the php.ini located at /usr/lib/php.ini I change the upload_max_filesize to 64M and post_max_size 64M. Then when I checked back to wp-admin/media-new.php it is now ‘Maximum upload file size: 15M’ it should be 64M

I even try following this http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/ but it doesn’t help it. it looks like it is limited to 15M? I try to change the post_max_size to 14M then it reads now on wp-admin/media-new.php to ‘Maximum upload file size: 14M’ it looks like it only limits to 15M. I restarted the apache but still it won’t work and it only shows 15M

I checked the phpinfo() and the file loaded is correct which is /usr/lib/php.ini

Is there any settings in wordpress that is limiting the upload file size except on the network setting? no right? What could be the problem?

Advertisement

Answer

I Fixed my issues. Here are what I’ve learned:

1) Make sure there are no conflict with your php.ini.. I checked my phpinfo() and the file loaded is /usr/local/lib/php.ini however there is php.ini placed in the wp-admin/ folder so I deleted it and this cause overriding the setting.

2) If you are running multisite make sure that ‘Max upload file size’ option in wp-admin/network/settings.php is correct based on your desire cause this will reflect in the main site.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement