在CentOS上运行cron作业时不会执行File〜/ .cronfile?

在CentOS 7上,我需要为PATHvariables预先设置一个自定义path。 我正在使用下面的~/.profile文件,它工作正常:

 export PATH=/my/custom/path:$PATH 

我的cron作业(运行PHP脚本)应该使用相同的PATHvariables。 我可以轻松地做到以下几点:

 * * * * * souce ~/.profile; php path/to/my/script.php 

…但是每次我写一个新的cron工作时,我都需要记得预备source ,但是我不知道。

~/.cronfile应该做的伎俩,但不工作,我怎么能检查为什么不执行?

 [ -f ~/.profile ] && source ~/.profile