by Emma Richardson.
Actually writable by the apache/www data user normally works. Now, I see that Moodle recommends creating your cron job under that user so maybe both are correct.