Posts tagged “Apache”

Parsing timestamps from Apache log files in Python

October 29, 2013 – tagged Apache, Programming

Timestamps in Apache access log files have, by default, the format > 27/Oct/2013:06:33:40 +0100 This can not be parsed in Python using the strptime() function from the time/datetime modules because there is no %z placeholder in strptime() to match the timezone (only %Z). Also, using the parse() function from dateutil.parser ...

Apache core dumps on Ubuntu

August 03, 2011 – tagged Apache, Ubuntu, Howto, Debugging

...need apport installed and running, otherwise the core won't be dumped. To make the description complete: 1. Add CoreDumpDirectory /tmp/apachedumps/ to apache2.conf. 2. Create the directory and sudo chown www-data /tmp/apachedumps it. 3. sudo apt-get install apport and edit /etc/default/apport to start apport automatically. 4. Add the line `www-data - ...