$_POST suddenly empty; $_GET and _$REQUEST fine



I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD 6.2. It's worked quite well for over a year now. However, as of some time last night, phpBB broke; upon investigation, I realized that the problem was that $_POST was never getting populated, even on properly formed HTML forms.

Testing this to try to find the issue, I used the following script:

<?php
print "Testvar: " . $_POST['testvar'] . "<br/>\n";
?>

<form method="POST" action=http://www.newmars.com/test.php name=formname enctype="multipart/form-data">
<input type=text name=testvar><br/>
<input type=submit value=Submit><br/>
</form>

It works like a charm on a different machine with an essentially identical config (it's a newer version of FreeBSD, but that's about it); however, it never displays the contents of $_POST['testvar'] on the machine that suddenly quit functioning right last night.

Meanwhile, the rest of PHP seems to be working fine, as the phpBB forum is accessible in a read-only fashion.

I've searched all over, and done things like restarting Apache; checking phpinfo() for the POST data (it's not there on the broken server, but it is on the functional one); writting a quick Perl script that took POST input to verify that my browser was sending such data properly (it is); and scouring the Apache/PHP error logs. The worst part is, I didn't touch the config at all between when it worked and when it didn't. So now I'm at a total loss as to what could be causing this, or how I should go about troubleshooting.

Any thoughts on this would be greatly appreciated.

Alex Kirk


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
.



Relevant Pages

  • FreeBSD 6.2-STABLE && apache 2.2.4 = bad performance. Help!
    ... php5-5.2.3 PHP Scripting Language (Apache Module and CLI) ... CPU: IntelXeonCPU 2.66GHz ... FreeBSD versions on dual cpus running the same code don't exhibit this ...
    (freebsd-questions)
  • FreeBSD 6.2-STABLE && apache 2.2.4 = bad performance. Help!
    ... php5-5.2.3 PHP Scripting Language (Apache Module and CLI) ... CPU: IntelXeonCPU 2.66GHz ... FreeBSD versions on dual cpus running the same code don't exhibit this ...
    (freebsd-hackers)
  • FreeBSD 6.2-STABLE && apache 2.2.4 = bad performance. Help!
    ... php5-5.2.3 PHP Scripting Language (Apache Module and CLI) ... CPU: IntelXeonCPU 2.66GHz ... FreeBSD versions on dual cpus running the same code don't exhibit this ...
    (freebsd-performance)
  • FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault
    ... I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. ... So far, my experience with FreeBSD 6 has been great, but I appear to have bumped into a problem with running Apache 2 and php4 together. ... However, whenever I try to load a page that needs to go through the PHP interpreter, I get a segmentation fault: ... php4-bz2-4.4.2_1 The bz2 shared extension for php ...
    (freebsd-questions)
  • Help with php5 install under windows
    ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
    (php.general)