title: Symfony unable to create the logs directory
body: <p>I am deploying Symfony to a web server, and once deployed I want to clear the cache. I am using a umask of 0000 for now to get around any potential permission issues (I am doing the clear under the deploument user and running the site under the apache user).</p>
  
  <p>I am using <code>/var/symfony/cache/projectname/branchname/environment</code> and <code>/var/symfony/log/projectname/branchname/environment</code> as the <code>dirs</code> to save the cache and logs. These are configured in the <code>AppKernel.php</code> file.</p>
  
  <p>When I deploy (using 'php bin/console cache:clear --env=prod --no-debug') I get a message that says:</p>
  
  <blockquote>
    <p>[RuntimeException]
        Unable to create the logs directory ()</p>
  </blockquote>
  
  <p>I have done a touch to create a file in the /var/symfony/log/ dir and it worked fine, so any idea why the cache clear command is failing?</p>
  
  <p>We are using a sticky bit from the <code>/var/symfony/</code> dir up to set permissions as <code>drwxrws--t</code> so that when we do the cache clear as the deployment user, it can set user as apache and group as www with them both in the www group.</p>