Added www-data write permission on the log dir.