I am trying to increase the maximum file size for a multitask installation of WordPress (currently 1 MB). I tried several things to no avail. What I tried:
Adding these files to my php.ini hosts:
memory_limit = 300M post_max_size = 32M upload_max_filesize = 32M
Add them to the functions.php file in the subject:
@ini_set('upload_max_size' , '32M'); @ini_set('post_max_size', '32M'); @ini_set('max_execution_time', '300');
Add them to your .htaccess file:
php_value upload_max_filesize 32M php_value post_max_size 32M
I even tried to check wp-includes / default-constants.php.
Interestingly, I have another WordPress installation (not multisite) on the same server, which seems to work fine (maximum load - 32 MB). Any ideas what to try next?
Thanks.
php wordpress php-ini
Phil
source share