Refactor log file as const, and storing log file in tmp/logs/.
This should fix warning PHP Warning:  fopen(piwik-master/plugins/LoginLdap/data/ldap.log): failed to open stream: Permission denied in piwik-master/plugins/LoginLdap/LdapAuth.php on line 60