I did the following to try to set mod_dumpio up properly:
- Used a2enmod to enable mod_dumpio
- Changed LogLevel to "debug" in apache2.config
- Added "DumpIOInput On", "DumpIOOutput On" and "DumpIOLogLevel debug" to apache2.config
- Issued "/etc/init.d/apache2 restart" to restart Apache
- Issued "apache2ctl -t -D DUMP_MODULES" to make sure mod_dumpio was loaded
I'm watching /var/log/apache2/error.log, but not seeing much there, and certainly not a dump of all input and output.
Can anyone help?
Nobody talks about Windows (easyphp, xampp, etc) but the configuration is slightly different:
Edit "httpd.conf" apache configuration file :
Add section:
Change "LogLevel warn" to "LogLevel warn dumpio:trace7"
NM...got it!
The problem was apparently that just one of my VirtualHosts (as defined in /etc/apache2/sites-enabled) had a LogLevel declared that was something other than debug, thus interfering with the overall behavior of mod_dumpio for reasons that escape me :)
I hope someone else finds this helpful.
Typically the debug level is set to
warn
in yoursites-enabled/default*
, so the following code might help (e.g. as/etc/apache2/conf.d/dumpio.conf
):Or to change the log level in your
sites-enabled/default
fromLogLevel warn
toLogLevel debug
.Mirroring @bland328 I had the same problem, my sub-conf file had "LogLevel debug" and this over-rode the global "LogLevel dumpio:trace7" that seems to be required for Apache 2.4.7. Note that much of the online help is in reference to earlier Apaches and 2.4 has some different syntax.
For reference using an out-of-the-box install on Ubuntu 13.04 I've got a vhosts conf and this is where I had to add the 3 DumpIO lines:
After this a
sudo service apache2 restart
and acurl
with--data
caused a lot of debug lines to appear in\var\log\apache2\error.log
including the POST body, looking like: