Changing limit of upload size

I am trying to increase the limit for my uploads. After reading up on this. I change first the php.ini at the webroot level & put this in it

upload_max_filesize = 250M
post_max_size = 250M

didn’t work.
I went to look at the htaccess this is what i have now

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


# END WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

when i tried adding

php_value upload_max_filesize 250M
php_value post_max_size 250M
php_value memory_limit 250M

I crashed the site regardless of where i tried to insert it. Where should i put that in the htacess file. Or can anyone here suggest another way? Thank you
D

AFAIK there is no way to add PHP configuration to an htaccess file
(though there can be PHP related settings in the httpd.conf file)

If adding to php.ini doesn’t work (which it should if you can restart) then try ini_set in files as needed

http://php.net/manual/en/function.ini-set.php

k, thank you.
Boy sometimes wp really sucks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.