1
votes

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?

2
Are you using Wordpress MU?kav
Check your theme functions file for lines like these @ini_set( 'upload_max_size' , '15M' ); @ini_set( 'post_max_size', 15M');Mihai
@unixarmy Did you mean if I use multisite? Yes I used multisite and the issue is in the main site and not in the subsite.Kimchuy
@Mihai I already checked but I have not seen that code on my theme functions.Kimchuy

2 Answers

2
votes

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.

0
votes

You can use this cod ein .htaccess file.

<IfModule mod_php5.c>
php_value post_max_size           128M
php_value upload_max_filesize     128M
php_value memory_limit            500M
</IfModule>

Change file size as your requirement.

I hope this will work for you.