Save message history to separate file.
Fix compatibility problem (Apache versions)