title: AWS S3 cp command works manually, but not with crontab
body: <p>I have a PHP script that uploads files to an S3 bucket using the PHP <code>exec()</code> call. It works perfectly when I run it manually. However, when I run the script through crontab, I get an error</p>
  
  <blockquote>
    <p>sh: 1: s3: not found</p>
  </blockquote>
  
  <p>in my log file.</p>
  
  <p>I am not sure what exactly is going wrong. My cronjob is run as ubuntu and my <code>.aws</code> configuration directory is in <code>/home/ubuntu/.aws</code>. I have set all the permissions to the max.</p>