Jump to:

10845 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Queued Jobs Lucene Cron

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 530 Views
  • somerider
    Avatar
    Community Member
    3 Posts

    Queued Jobs Lucene Cron Link to this post

    Has anyone successfully set up the lucene reindex and ProcessJobQueueTask crons necessary to automate lucene indexing from cpanel? I'm on a shared host and this is what I'm running...

    php sapphire/cli-script.php reindexsearch

    php sapphire/cli-script.php dev/tasks/ProcessJobQueueTask

    Jumped through a few _SS_environment.php hoops with the first one but am now stuck on this:
    Cron output: Undefined index: SERVER_PORT in ..../sapphire/core/control/Director.php on line 404

    Any clues?

    Cheers in advance.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Queued Jobs Lucene Cron Link to this post

    Looks like it assumes $_SERVER['SERVER_PORT'] is set in the code and perhaps not set in your cli mode. Perhaps try defining it in your _ss_environment file - $_SERVER['SERVER_PORT'] = 80;

  • Marcus
    Avatar
    Administrator
    85 Posts

    Re: Queued Jobs Lucene Cron Link to this post

    You might also try using php-cli from the commandline - some shared hosts make the cli available via a separate binary

    530 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.