title: Laravel daily log created with wrong permissions
body: <p>I have a script that I run using php artisan (with <strong>root</strong> user), and sometimes it causes the daily log file to be created before the apache <strong>www-data</strong> user does - which means that when a real user uses my web application, I get the folder permission error:</p>
  
  <blockquote>
    <p>Failed to open stream: Permission denied</p>
  </blockquote>
  
  <p>I change the permissions back to <strong>www-data</strong> everytime but I want to solve this by having the log file always created with the correct permissions.</p>
  
  <p>I've considered creating a cron job that creates the file or touches it to make sure it has the right permission everyday, but I'm looking for a better solution that doesn't rely on another script.</p>
  
  <p>We've also considered wrapping php artisan in another script to make sure that it is always run with the <strong>www-data</strong> credentials, but somethings that we want to do are actually <strong>root</strong> procedures that apache should not be allowed to do. </p>
  
  <p>Any more suggestions?</p>