/run/lock and not /var/ run/lock
permissions for rewrite mode to write to /var/lock/apache2 (link to /run/lock)