Home >Backend Development >PHP Tutorial >Scheduled plan does not execute PHP scripts and solutions PHP file storage solution PHP garbled solution E-commerce solution

Scheduled plan does not execute PHP scripts and solutions PHP file storage solution PHP garbled solution E-commerce solution

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:53:56934browse

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

Solving problems depends on experience and feeling. The more mistakes you make, the stronger your problem-solving ability will be~

').addClass('pre -numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn