title: Cron centOS "Could not open input file" error
body: <p>I'm trying to run php file by cron, but it doesn't work. When I enter the url of my script in the browser, it works. So I think the problem is in the cron. My OS is centOS.</p>
  
  <p>This is crontab.</p>
  
  <pre><code>* * * * *  /usr/bin/php /var/www/htdocs/wordpress/text.php
  </code></pre>
  
  <p>The content of text.php is ""</p>
  
  <p>The email from cron says,</p>
  
  <pre><code>X-Cron-Env: &lt;LANG=en_US.UTF-8&gt;
  X-Cron-Env: &lt;SHELL=/bin/sh&gt;
  X-Cron-Env: &lt;HOME=/root&gt;
  X-Cron-Env: &lt;PATH=/usr/bin:/bin&gt;
  X-Cron-Env: &lt;LOGNAME=root&gt;
  X-Cron-Env: &lt;USER=root&gt;
  Status: RO
  
  Could not open input file: /var/www/htdocs/wordpress/text.php
  </code></pre>
  
  <p>And this is "ls -l /var/www/htdocs"</p>
  
  <pre><code>-rw-r--r--.  1 root root     50  1 29 22:04 2014 index.html~
  -rw-r--r--.  1 root root     22  1 29 22:04 2014 index.php
  drwxr-xr-x. 13 root apache 4096  1 30 14:36 2014 phpmyadmin
  drw-rw-rwx.  8 root root   4096  1 30 20:11 2014 wordpress
  </code></pre>
  
  <p>Could you tell me how to solve this?</p>