doudou_3636 2014-05-13 10:24
浏览 41
已采纳

IIS 7.5 Windows 2008服务器上的cron.php

i'm running the suitecrm 7.1.1 on IIS 7.5 on windows 2008 server. trying to run the cron.php to make the AOD works; The Cron batch file is killing me guys; from the admin>scheduler i put all the 11 jobs to inactive and kept only 2 jobs to active ( Perform lucene Index and Optimize AOD Index ) just the jobs required for the AOD to work in global search. i created a cron batch file with the following lines:

 cd c:\Program Files (x86)\PHP\v5.3
 php-cgi.exe -f c:\suitecrm\cron.php

I tested these two line with cmd prompt and the out put was cron.php is CLI Only i find in some threads that the workaround for this issue is to comment out these lines from the cron.php file with // as follows:

//$sapi_type = php_sapi_name();
//if (substr($sapi_type, 0, 3) !='cli') {
// sugar_die("cron.php is CLI only.");

When running with the cmd prompt don't show any message, nothing in the log file but the windows task scheduler results is (0xFF) after each time is executed. Now. i don't know if the cron is running or not and if this setup is correct and nothing is missing? can anyone tried this cron on windows help me please!

  • 写回答

2条回答 默认 最新

  • douya7282 2014-05-13 12:56
    关注

    Try php.exe -f c:\suitecrm\cron.php instead of php-cgi.exe

    Full documentation for working with Schedulers is available at the SugarCRM Website at Sugar Community Edition 6.5 Administration Guide.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵