Php Cron作业在centos 6.6中不起作用

Php Cron作业在centos 6.6中不起作用,php,cron,centos,crontab,Php,Cron,Centos,Crontab,我有专门的服务器,有centos 6.6和centos webpanel。现在我正试图从centos web面板设置cron作业。我曾经尝试过很多命令来每分钟运行一个php文件,但cron job并没有让我的文件每分钟运行一次。进一步配置:内核版本:2.6.32-26-pve,平台:i686,发行名:CentOS 6.6版(最终版),MySQL版本:5.1.73,PHP版本:5.4.27,Apache版本:Apache/2.2.27。 下面是我尝试过的所有命令的列表。请帮我做cron工作。谢谢

我有专门的服务器,有centos 6.6和centos webpanel。现在我正试图从centos web面板设置cron作业。我曾经尝试过很多命令来每分钟运行一个php文件,但cron job并没有让我的文件每分钟运行一次。进一步配置:内核版本:2.6.32-26-pve,平台:i686,发行名:CentOS 6.6版(最终版),MySQL版本:5.1.73,PHP版本:5.4.27,Apache版本:Apache/2.2.27。 下面是我尝试过的所有命令的列表。请帮我做cron工作。谢谢

* * * * * public_html/run.php
* * * * * /public_html/run.php
* * * * * /bin/php -q /home/user_name/public_html/run.php
* * * * * run.php
* * * * * /run.php
* * * * * /public_html/run.php
* * * * * user_name/public_html/run.php
* * * * * ~user_name/public_html/run.php
* * * * * user_name /public_html/run.php
* * * * * user_name public_html/run.php
* * * * * user_name /run.php
* * * * * user_name run.php
* * * * * user_name /home/user_name/public_html/run.php
* * * * * user_name home/user_name/public_html/run.php
* * * * * /bin/php -q /home/user_name/public_html/run.php
* * * * * user_name /bin/php -q /home/user_name/public_html/run.php
* * * * * /usr/local/php -q /home/user_name/public_html/run.php
* * * * * user_name /usr/local/php -q /home/user_name/public_html/run.php
* * * * * /home/user_name/public_html/run.php
* * * * * home/user_name/public_html/run.php
* * * * * /usr/local/php -q home/user_name/public_html/run.php
我可以从浏览器运行此文件,它也会给出预期的结果,但cron job无法运行此文件。此外,我还可以通过两种方式访问此文件,首先使用域名,如
www.example.com/run.php
和另一种方法,如
http://my_ip_address/~user/run.php

试试看:

exampledomain=“exampledomain.com”


php-q/home/exampledomain/public_html/filepath/filepath/result.php

虽然这个问题与编程有关,但它可能更适合于。请告诉我需要做什么?我认为命令有问题,而不是服务器有问题