title: Laravel Cron problems in Elastic Beanstalk
body: <p>I am trying to execute cron jobs on my Elastic Beanstalk environment but the .ebextensions script does not seem to be working.</p>
  <p>This is the code I am using in the config file:</p>
  <pre><code>files:
    &quot;/etc/cron.d/schedule_run&quot;:
    mode: &quot;000644&quot;
    owner: root
    group: root
    content: |
      * * * * * root ./opt/elasticbeanstalk/support/envvars &amp;&amp; /usr/bin/php  /var/www/html/artisan schedule:run 1&gt;&gt; /var/laralog.log 2&gt;&amp;1
  
  commands:
    remove_old_cron:
      command: &quot;rm -fr /etc/cron.d/*.bak&quot;
      ignoreErrors: true
  </code></pre>
  <p>Does anyone know why this is not working?</p>