Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I enable non-error server logging on MAMP (or, am I totally blind, and is it already enabled by default?)

So far, I can only find the error logs for Apache, MySQL and PHP in /Applications/MAMP/logs. But I'd like to access the server log (ie, the rawest data that the server processes, all of the HTTP requests that it received/served, etc.)

share|improve this question
up vote 7 down vote accepted

I found the answer here:

The Apache HTTP Server access logs are disabled by default. To enable them, do the following:

Open the Apache HTTP configuration at /Applications/MAMP/conf/apache/httpd.conf Find this line.

#CustomLog logs/access_log combined

Note that if you simply enable this directive, Apache will write the access logs to /Applications/MAMP/Library/logs/access_log , which is probably not what you want. It is better to store the access_log to /Applications/MAMP/logs/ , which is where the MySQL logs, PHP logs and Apache error logs are kept.

Change the line to say the following. This will write your access logs to the default log directory, using the 'LogFormat' named 'combined'. This 'combined' log format follows some common conventions.

CustomLog /Applications/MAMP/logs/apache_access_log combined

After doing this, restart your MAMP Apache server.

share|improve this answer

All is explained at Use LogFormat to define a format, CustomLog to define a location.

share|improve this answer

I had success with adding this to the "Additional parameters for <VirtualHost>"

CustomLog "/Applications/MAMP/logs/mySiteName_access.log" combined

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.