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 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题
  • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入