[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cpx] Upload Threshold
- Subject: Re: [cpx] Upload Threshold
- From: Rus Berrett <rberrett@xxxxxxxxx>
- Date: Tue, 15 Dec 2009 09:29:08 -0800
On Tue, Dec 15, 2009 at 08:37:14AM -0800, Rae wrote:
>
> Subject: [cpx] Upload Threshold
>
> Does anyone know if there any way to increase the upload threshold in CPX?
> It looks like the maximum file size that can be uploaded is 10MB. I have a
> client trying to upload a 12MB file and it is failing.
>
> Best wishes,
>
> Rae
For future reference, what would you (or anyone else that has an opinion
on the matter) like to see the max upload size set as? I think that we
set 10MB rather arbitrarily, but put it in the neighborhood of PHP5,
which has (by default) an upload_max_filesize set to 8MB.
We are totally open to increasing the limit if that is the consensus.
But to what value?
To immediately change the limit, perform the following steps.
-------------------
For a VPSv2. Open up this file:
/usr/local/cp/lib/ControlPanel.pm
Find this block of code:
55 $self->{req} = Apache::Request->new($_[1],
56 POST_MAX => 1024 * 1024 * 10 + 1024 * 4, # 10 MB plus slop
57 HOOK_DATA => "$sessionid,$epoch",
58 UPLOAD_HOOK => $upload_hook,
59 TEMP_DIR => "/tmp");
on line 55, change the '10' in "1024 * 1024 * 10" to whatever you
want... 12, 15, 20, etc. Save and then restart apache.
-------------------
For a VPSv3 or LinuxVPS, open up this file:
/usr/local/cp/lib/ControlPanel2.pm
Find this block of code:
43 $self->{req} = Apache2::Request->new($_[1],
44 POST_MAX => 1024 * 1024 * 10 + 1024 * 4, # 10 MB plus slop
45 TEMP_DIR => "/tmp");
on line 43, change the '10' in "1024 * 1024 * 10" to whatever you
want... 12, 15, 20, etc. Save and then restart apache.
-------------------
HTH.
cheers.
--rus.
========================================================================
Rus Berrett NTT/Verio
See Perl. See Perl Run. Run Perl, Run!
======================================================================
This is <cpx@xxxxxxxxxxxxx> <http://www.groupmail.org/lists/cpx/>
Before posting a question, please search the archives (see above URL).
Home |
Main Index |
Thread Index