Check folder permissions. You need to grant permissions for the user running apache.
In my case, only the "log" subdirectory did not belong to the current 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/
Wagner bertolini junior
source share