PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : große files uploaden



$kuLL
10.07.03, 16:36
hallo

ich hab nen php upload script das nur bei kleinen dateien funktioniert
größer 500kb kann ich keine dateien uploaden

upload_max_filesize und post_max_size sind auf 25mb




Request entity too large!

The POST method does not allow the data transmitted, or the data volume exceeds the capacity limit.

If you think this is a server error, please contact the webmaster
Error 413

wildsmile.dyndns.org
Thu 10 Jul 2003 01:16:50 PM CEST
Apache/2.0.40 (Red Hat Linux)


das kommt beim upload großer files
was muss ich da noch umstellen?

thx4help
gruß

Spike05
10.07.03, 16:45
Wenn mich nicht alles täuscht dann mußt du noch etwas an deiner php.ini verändern!

Versuch mal bei folgenden Zeilen eine Änderung:



max_execution_time = 30 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)


oder hier:




; Maximum size of POST data that PHP will accept.
post_max_size = 8M


bzw. hier:


; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


Könnte nur an einer Einstellung hängen, evtl. an der untersten, aber evtl. mußt du noch die Zeit ein bißchen hochsetzen!
cu

Jochen

$kuLL
10.07.03, 16:48
hi
also alle die einstellungen sind auf 25mb und die execution time is 1800sek
muss an was anderem liegen

$kuLL
10.07.03, 17:19
ein tail -f error.log sagt folgendes:

[Thu Jul 10 17:16:21 2003] [error] [client 192.168.0.19] Requested content-length of 5125420 is larger than the configured limit of 524288

hab in /etc/imrc den wert erhöht aber er hat das nicht übernommen *verzweifel*
kennt sich da jmd aus?

$kuLL
11.07.03, 16:45
das ist ein redhat 8/9 problem in verbindung mit apache 2.x

Lösung:



LimitRequestBody 524288

dieser wert muss in /etc/httpd/conf.d/php.conf erhöht werden um das problem zu fixen

bye, $kuLL