Problem
cron triggers the task regularly, but it is never executed, and there is no corresponding log generated in /var/log/cron
, and there is no error log generated under the log file of php-fpm.
Analysis &&Solution
cron not executed?
No: (
<code>service crond status crond (pid <span>5467</span>) is running...</code>
The file does not have execution permission?
No: (
<code>ls -al -rwxrwxrwx .........</code>
The environment variable does not match?
: )
<code><span>* </span><span>* *</span><span>* *</span> php ........</code>
Changed it to
<code><span>* </span><span>* *</span><span>* *</span> /usr/bin/php .......</code>
It solved~
How do I know you Where is PHP installed?
<code>whereis php <span>php:</span> /usr/bin/php /etc/php<span>.d</span> /etc/php<span>.ini</span> /usr/lib64/php /usr/include/php /usr/share/php /usr/share/man/man1/php<span>.1</span><span>.gz</span></code>
Summary
').addClass('pre -numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });Solving problems depends on experience and feeling. The more mistakes you make, the stronger your problem-solving ability will be~
The above introduces the timing plan does not execute the PHP script and the solution, including the solution and PHP content. I hope it will be helpful to friends who are interested in PHP tutorials.