php - WHM Unable to Change Wordpress Max Upload Size -


i have several wordpress installs in whm environment. whm php(5.6) max upload size set 100mb & php max post size 150mb. check multiphp ini editor , max upload size same. reason wordpress installs have max upload size of 8mb. cannot change.

i've tried following:

  • added php.ini file, not help/change
  • added php code .htaccess, causes internal server error
  • added php code theme's function.php, causes internal sever error
  • spoke hostgator customer server couple hours , not able help.

any ideas?

hi try add these lines in theme functions.php

@ini_set( 'upload_max_size' , '64m' ); @ini_set( 'post_max_size', '64m'); 

or verify php.ini files , change these values

upload_max_filesize = 64m post_max_size = 64m 

or add in .htaccess files

php_value upload_max_filesize 64m php_value post_max_size 64m 

you should restart apache server after changing php.ini file take effect on hosting.

if using wordpress multisites can have restriction wordpress find under settings -> network settings -> maximum file size


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -