Check folder permissions.
You need to give permissions for the user that is running apache.
In my case just the sub directory "log" was not owned by the running apache user.
My apache user is bitnami:daemon...
So for me the solution was:
sudo chmod -R 777 var/
sudo chown -R bitnami:daemon var/