title: Running a php script from cron not picking the $_SERVER['host'] wheras running from CLI works
body: <p>As stated, when I run a direct PHP script like so:</p>
  
  <pre><code># /usr/bin/php path/to/script.php
  </code></pre>
  
  <p>I am able to use environment variables</p>
  
  <p>But when I have this script running from cron:</p>
  
  <pre><code>* * * * * /usr/bin/php path/to/script.php
  </code></pre>
  
  <p>The script runs but all my environment variables are null.</p>
  
  <p>How do I simulate the CLI via the cron?</p>
  
  <p>(on centOS / linux)</p>