title: Execute PHP script in cron job
body: <p>In our centos6 server. I would like to execute a php script in cron job as apache user but unfortunately it does not work.</p>
  
  <p>here is the edition of crontab (crontab -uapache -e)</p>
  
  <pre><code>24 17 * * * php /opt/test.php
  </code></pre>
  
  <p>and here is the source code of "test.php" file which works fine with "apache" user as owner.</p>
  
  <pre><code>&lt;?php exec( 'touch /opt/test/test.txt');?&gt;
  </code></pre>
  
  <p>I try to replace php with full path of php (/usr/local/php/bin/php) but also it doesn't work</p>
  
  <p>Thanks in advance,
  Please Help me</p>