Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 08:20:52 PM

Pages: [1]   Go Down
  Print  
Author Topic: Increasing Wordpress (PHP) upload limit from 2MB to larger  (Read 2901 times)
altoidboy
Intergalactic Cowboy
*****
Offline Offline

Posts: 54


« on: August 23, 2010, 09:36:42 AM »

I have several add-on domains in my LP hosting account. One add-on domain in particular is running Wordpress. Let's say it's a folder at the root level of my LP account called /mywordpresssite

The default PHP upload limit is 2MB but I'd like to increase that. So I googled for it and found this official article:

http://wordpress.org/support/topic/increasing-max-filesize?replies=8

I tried putting this in the wp-config.php but it made no difference:

define(’WP_MEMORY_LIMIT’, ‘64M’);

Then it said you could put this in the dot-htaccess file:

php_value memory_limit 64M

but if I do that, the entire site stops working.

Any ideas? There are dot-htaccess files in both /mywordpress site and at the root level -- I'm not sure which I should be altering.

I tried a php.ini file both in /mywordpresssite and at the root level but couldn't get them to work.

Any ideas?
Logged
altoidboy
Intergalactic Cowboy
*****
Offline Offline

Posts: 54


« Reply #1 on: August 23, 2010, 09:51:48 AM »

Never mind; I solved it. I had to create this code in the php.ini file but it had to be in the ROOT directory not in the /mywordpresssite directory:

[PHP] {header, obligatory}
upload_max_filesize = 20M
post_max_size = 100M
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: