You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stefan Mueller <ma...@s-mueller.ch> on 2004/08/23 18:10:11 UTC
[users@httpd] Parameters aren't passed to the CGI-program
Hi
On one webserver I have a very strange phenomena. After apache is
running for awhile CGI-Scripts are no longer getting their parameters
from the browser. It's like the script was called directly, without
using the html-form. I can't remember that i changed something on the
server that could be related to this in the time period this problem
started. no updates nothing.
System:
- Sun Cobalt Raq4
- Linux Kernel 2.2.16C37_III
- There where many paches, so the Version number of apache may not
represent the real version.
What I found out:
- Tried CGI's written in Perl and C . no difference.
- Internet Explorer, Mozilla, Firefox: everywhere the same.
- PHP is not affected.
- It only happends when using POST. GET works perfekt. (same formular,
same content)
- The server isn't under heavy load. around 1.0 loadavg.
- stopping and starting apache helps
- It happens sometime hours, sometimes minutes, after re-/starting apache.
- In the access log is the "Bytes, send, excl. HTTP headers" higher when
it works, and lower if the parameters are missing! (see at the end of
this mail)
- We have an other almost identical raq4 system, without problems.
(checked: httpd and mod_cgi binaries are identical)
- The form-data is sent correctly and arrives at the server correctly
(sniffing with tcpdump)
[root]# ulimit -a
core file size (blocks) 0
data seg size (kbytes) unlimited
file size (blocks) unlimited
max memory size (kbytes) unlimited
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 2000
pipe size (512 bytes) 8
open files 1024
virtual memory (kbytes) 2105343
[root]# httpd -V
Server version: Apache/1.3.20 Sun Cobalt (Unix)
Server built: Oct 17 2003 01:56:22
Server's Module Magic Number: 19990320:10
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_SYSVSEM_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT_XFERLOG="/var/log/httpd/access_log"
-D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"
[root]# cat access
...
xxxx.ch 80.218.234.000 - - [12/Aug/2004:20:11:40 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:21:14:48 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.chh/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:21:41:11 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:23:03:22 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:23:52:48 +0200] "POST /testA.cgi
HTTP/1.1" 200 253 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:23:54:00 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:23:55:51 +0200] "POST /testA.cgi
HTTP/1.1" 200 253 "http://xxxx.ch/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
xxxx.ch 80.218.234.000 - - [12/Aug/2004:23:56:08 +0200] "POST /testA.cgi
HTTP/1.1" 200 775 "http://xxxx.chh/testA.html" "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
...
I realy hope someone has an idea...
Stefan Mueller
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Parameters aren't passed to the CGI-program
Posted by Joshua Slive <js...@gmail.com>.
On Mon, 23 Aug 2004 18:10:11 +0200, Stefan Mueller
<ma...@s-mueller.ch> wrote:
> Server version: Apache/1.3.20 Sun Cobalt (Unix)
I'm sure you won't like this answer, but Cobalt is notorious (at least
in my opinion) for distributing a hacked-up apache that has little
resemblence to the one from httpd.apache.org. Then add to that the
fact that the version number indicates something from 2001, and I
really couldn't even start to guess what might be happening.
If at all possible, I'd start by upgrading to the most recent apache
from httpd.apache.org.
If that's not possible, you may be out of luck. But I'd start by
disabling any "weird-looking" modules. Specifically, disable any
modules that are not listed here:
http://httpd.apache.org/docs/mod/
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org