Koozali.org: home of the SME Server

Cant upload more then 1MB, on to a server via PHP

Corona

Cant upload more then 1MB, on to a server via PHP
« on: April 21, 2002, 07:34:01 PM »
When I try to upload more then 1 MB via a website that is in PHP language (http://rcs.valve-erc.com - http://rcs.valve-erc.com/frames/compile.php?action=compilation_overview)
I get the following error:

------------------------------
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://rcs.valve-erc.com/frames/compile.php?

The following error was encountered:

    * The request or reply is too large.

      If you are making a POST or PUT request, then your request body (the thing you are trying to upload) is too large. If you are making a GET request, then the reply body (what you are trying to download) is too large. These limits have been established by the Internet Service Provider who operates this cache. Please contact them directly if you feel this is an error.

Your cache administrator is Q@Q.com.
Generated Sun, 21 Apr 2002 14:36:01 GMT by Lunix(<-- our server) (Squid/2.3.STABLE4)

------------------------------------
The file is 1.2 MB, so I think the limit is 1MB since I can upload smaller files.
Our network goes like this: ---> LAN ---> ----> Internet --->

Does anyone know what I should do to fix this?

Darrell May

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #1 on: April 21, 2002, 10:30:36 PM »
http://myezserver.com
/downloads
/mitel
/howto
/webmail-attachment-size-howto.html

Regards,

Darrell

Corona

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #2 on: April 24, 2002, 12:45:15 AM »
I dont get it =/

Corona

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #3 on: April 27, 2002, 12:18:51 AM »
I already changed this in PHP.ini:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
 
max_execution_time = 1000000     ; Maximum execution time of each script, in seconds
memory_limit = 8M                       ; Maximum amount of memory a script may consume (8MB)
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads    = On                            ; Whether to allow HTTP file uploads
;upload_tmp_dir =                       ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize = 2000M                 ; Maximum allowed size for uploaded files

--------------
Then I rebooted Http.

Greg O

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #4 on: May 20, 2002, 04:13:28 PM »
I've got a similar problem (I think) since I performed the PHP upgrade to fix that vulnerability back in February. Now in webmail, I can't email files larger than some pitiful size (~50KB)!

bash-2.04$ rpm -q php
php-4.1.1-2
bash-2.04$ rpm -q e-smith-php
e-smith-php-1.5.0-03


Cheers,
Greg.


The Darkside

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #6 on: January 16, 2003, 06:14:33 PM »
Hello ...,

please tell mw how to modify the php upload limit step by step because i´m a newbie !

i found a php.ini file in /etc/ or do i have to modify /etc/e-smith/templates/etc/php.ini/60FileUploads ?????

Im totally confused now .....

please help


Greetz
Darkside

Laurent DINCLAUX

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #7 on: January 17, 2003, 12:43:06 AM »
You must change also the settings in squid

# pico /etc/e-smith/templates-custom/etc/squid/squid.conf/70request_body_max_size

Then type:
'request_body_max_size 30 MB'

expand the squid.conf

then: #squid -K shutdown
         #squid

David Davis

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #8 on: December 29, 2003, 05:37:04 PM »
I am having this same problem.  Can you tell me how to make this change to squid in version 6.03 Final?  Thanks!

Andy MacDonald

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #9 on: January 04, 2004, 12:57:55 AM »
Go and get the Twiggi .rpm and install it.
In the settings regarding twiggi you'll be able to increase the allowances from the Control panel.

Derek

Re: Cant upload more then 1MB, on to a server via PHP
« Reply #10 on: January 15, 2004, 06:09:48 AM »
I am trying to upload movie files larger than 1MB using Gallery and i get  error page, according to their faq section and forums i had to fix the max file size limit for apache
i have fixed php using twiggi and also done the squid fix
but i am still failing
any thoughts on this
thanks

Derek