I suspect it’s a permissions issue.
try to substitute ww-data by your web user when giving permissions