cPanel cron jobs发送电子邮件错误

时间:2017-01-21 22:30:15

标签: php cron cpanel

我收到一封错误电子邮件,表示cron jobs和php

有问题

这是错误:

Can't locate Umask/Local.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Mkdir.pm line 10.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Mkdir.pm line 10.
Compilation failed in require at /usr/local/cpanel/Cpanel/CustInfo/Save.pm line 24.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/CustInfo/Save.pm line 24.
Compilation failed in require at /usr/local/cpanel/Cpanel/ContactInfo/Sync.pm line 19.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/ContactInfo/Sync.pm line 19.
Compilation failed in require at /usr/local/cpanel/Cpanel/ContactInfo.pm line 16.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/ContactInfo.pm line 16.
Compilation failed in require at /usr/local/cpanel/Cpanel/QuickInstall.pm line 25.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/QuickInstall.pm line 25.
Compilation failed in require at /usr/local/cpanel/3rdparty/quickinstall/scripts/checkupdates.pl line 8.
BEGIN failed--compilation aborted at /usr/local/cpanel/3rdparty/quickinstall/scripts/checkupdates.pl line 8.

我相信这是在我将php升级到5.6

时发生的 我在cPanel中的cron joob是:

57  1   *   *   *   /usr/local/bin/perl /usr/local/cpanel/3rdparty/quickinstall/scripts/checkupdates.pl
30  *   *   *   *   /opt/php56/bin/php-cgi -q /home/[username]/public_html/backup/cron.php
5   *   *   *   *   /opt/php56/bin/php-cgi -q /home/[username]/public_html/order/crons/cron.php

任何帮助?并提前感谢。

1 个答案:

答案 0 :(得分:1)

登录WHM,转到软件 - >安装perl模块。在那里你可以输入这个模块Umask :: Local,看看是否有任何结果返回。

或者,您可以执行yum搜索Umask并手动安装该程序包。包名称应为:

cpanel-perl-522-Umask-Local.x86_64

当然,在您的情况下可能会有所不同(取决于OS CentOS 6.x或7.x和cPanel / WHM版本)。

那应该为你解决。