upload_max_filesize in .htaccess

132 views
Skip to first unread message

Bochenn

unread,
Jul 17, 2008, 10:55:13 PM7/17/08
to ResourceSpace
I'm hosting at dreamhost and these are the values for php.ini in the
server.

==
PHP.INI value for 'memory_limit' 90M WARNING: should be 200M or
greater
PHP.INI value for 'post_max_size' 8M WARNING: should be 100M or
greater
PHP.INI value for 'upload_max_filesize' 7M WARNING: should be 100M or
greater
==

can i change these values using a .htaccess file?
how should i do it?

Thanks

Dan Huby

unread,
Jul 18, 2008, 4:17:43 AM7/18/08
to ResourceSpace
You may be able to put the following in a .htaccess file in the web
root (it depends on how the server has been set up). The first two
lines correct an issue with SWFUpload an Apache's mod_security which
ISP's sometimes install.

SecFilterEngine Off
SecFilterScanPOST Off
php_value memory_limit 200M
php_value post_max_size 100M
php_value upload_max_filesize 100M

Dan
Reply all
Reply to author
Forward
0 new messages