Roshan Book

My Tech Notebook

Increase activeCollab upload limit using htaccess


for activecollab

Source:http://www.tildemark.com/increase-activecollab-upload-limit-using-htaccess/

 

From hostgator

http://forums.hostgator.com/php-file-upload-limit-t13618.html

General
http://api.tweetmeme.com/button.js?url=http%3A//www.alvinpoh.com/edit-htaccess-to-increase-phps-max-file-upload/&&source=vinpoh&style=normal&service=bit.ly&b=2&o=http%3A//www.google.co.in/url%3Fsa%3Dt%26rct%3Dj%26q%3Dincrease%2520upload%2520size%2520limit%2520through%2520.htaccess%2520file%26source%3Dweb%26cd%3D10%26ved%3D0CHAQFjAJ%26url%3Dhttp%253A%252F%252Fwww.alvinpoh.com%252Fedit-htaccess-to-increase-phps-max-file-upload%252F%26ei%3DSw0YT_f0NtCrrAfJ88XVDQ%26usg%3DAFQjCNHj8gRDEuLEdLV_EYqjvX99w5uygg

To increase the upload file size limit on your website, you need to edit PHP’s configuration settings. Unfortunately, not everyone has their own web server, so most of the time people are constrained by the limits of shared hosting. But you can still modify your base php.ini file by creating your own php.ini with the edits that you want.

Your php.ini file needs to be in every folder that’s going to be affected, or at least in the folder where the php script is being called from. Unfortunately if you have dozens of folders that need this edit, then you’ll need dozens of php.ini files.

An alternative is to then use .htaccess. By just placing a.htaccess file in your root folder, all folders beneath it will also have the change. The code to change your PHP max file upload size is:

RewriteEngine On
php_value post_max_size 1000M
php_value upload_max_filesize 1000M
php_value max_execution_time 6000000

You can edit it to suit your needs. 1000M = 1GB, so edit accordingly. Do note that your host will need to allow PHP edits though.

Source: http://www.alvinpoh.com/edit-htaccess-to-increase-phps-max-file-upload/

Source: http://www.maheshchari.com/increase-php-file-upload-limit/

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: