PHP max_filesize

software development

#1

I am trying to up the maximum uploadable file size to my website. I have tried doing this through .htaccess, but run into some problems.

If I use

AddHandler application/x-httpd-php .php
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M

then I can successfully upload larger files (but nowhere near the 150 MiB you might expect) but it seems to use PHP 4.4.7. On the other hand,

AddHandler phpFive .php
Action phpFive /cgi-system/php5.cgi
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M

keeps me at the latest version of PHP, but does not seem to alter the size.

Any ideas?!

Cheers!


#2

Increase the values in your php.ini (as opposed to the .htaccess method).

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost