Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Corona on April 21, 2002, 07:34:01 PM

Title: Cant upload more then 1MB, on to a server via PHP
Post by: Corona 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?
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Darrell May on April 21, 2002, 10:30:36 PM
http://myezserver.com
/downloads
/mitel
/howto
/webmail-attachment-size-howto.html

Regards,

Darrell
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Corona on April 24, 2002, 12:45:15 AM
I dont get it =/
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Corona 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.
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Greg O 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.
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: DINCLAUX laurent on January 13, 2003, 08:46:53 AM
http://forums.contribs.org/index.php?topic=12730.msg47838#msg47838
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: The Darkside 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
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Laurent DINCLAUX 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
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: David Davis 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!
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Andy MacDonald 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.
Title: Re: Cant upload more then 1MB, on to a server via PHP
Post by: Derek 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