Uploading large files with PHP and Apache2

I figured this out using some of the PHP docs.

Find your php.ini file (e.g., /etc/php4/apache2/php.ini), choose an n and a k, and update the directives:

upload_max_filesize = n,
post_max_size = n+1,
max_execution_time = k,
max_input_time = 2*k,
memory_limit = n+2

I chose n=256M, and k=1800 seconds.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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