php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20404 I get "cannot find server" with file upload (>1.5M)
Submitted: 2002-11-12 17:13 UTC Modified: 2002-11-13 10:01 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:3 of 4 (75.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: gedl at rnl dot ist dot utl dot pt Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.2 OS: Linux 2.4.19
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gedl at rnl dot ist dot utl dot pt
New email:
PHP Version: OS:

 

 [2002-11-12 17:13 UTC] gedl at rnl dot ist dot utl dot pt
When I try to upload a file bigger than 1.5M (no matter if text or binary) i get a "cannot find server" message in Internet Explorer 6.0.
I don't have a clue if this is a Web Server error (apache 2.0) or what...
It works fine with small files.

My php configure line is (LONG !)

'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-12 18:35 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-11-12 19:34 UTC] esunl at 163 dot com
I am a jackeroo.
 [2002-11-12 19:39 UTC] esunl at 163 dot com
I am a jackeroo
 [2002-11-13 03:02 UTC] gedl at rnl dot ist dot utl dot pt
"I am a jackeroo"

This is a serious problem... didn't God give you something to play with ?
 [2002-11-13 03:05 UTC] gedl at rnl dot ist dot utl dot pt
Sniper: I am not allowed to install a different version of PHP.
I did notice that Mozilla gives me the "POST TO LONG" screen.
My post_max_size is 8M and I tried to sumbit a 3M file.
Weird isn't it ?
 [2002-11-13 03:39 UTC] gedl at rnl dot ist dot utl dot pt
I have just realized that the problem is propably from APACHE
Requested content-length of 41781635 is larger than the configured limit of 524288, referer: XXXX

But I have LimitRequestBody set to 0

Anyone knows anything about this ?
 [2002-11-13 10:01 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This indeed looks like a possible apache problem. Keep in mind that PHP also has 2 settings that may prevent files above certain size from being uploaded:
post_max_size = Maximum POST request size
upload_max_filesize = Maximum uploaded file size
max_input_time = Maximum amount of time the script may spend parsing POST/GET/COOKIE request.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC