2

I have my LAMP application hosted on AWS EC2 Linux 2 instance. I can see requests logs in /var/log/httpd/access_log but there is no POST data there. I could figure out that I can use mod_dumpio or mod_security but I cannot get it to work.

I am new to both Apache and Linux therefore I need help with step-by-step instructions on how to get it done.

I have tried to use the a2enmod command but it doesn't seem to work on my version of linux.

Any help is really appreciated as I am unable to do it on my own.

1 Answers1

1

Your question duplicates https://stackoverflow.com/questions/989967/best-way-to-log-post-data-in-apache

Steps to log HTTP request body in Apache:

  1. Enable dumpio module for Apache.
  2. Set the LogLevel to dumpio:trace7 and DumpIOInput On.
  3. Restart Apache for the changes to take effect.

See also: