PDA

View Full Version : command line indexing that actually works


carlaron
11-06-2006, 08:48 PM
I tried about every suggestion in this forum, and I could not get a command-line index updating to work... the documentation says to run spider with /usr/bin/php -f, several people suggested usign wget or lynx to simulate loading it via the web... nothing worked. It would not give any errors, it just never did ANYTHING to the index.

Finally, instead of putting the /usr/bin/php -f in front of my /path/to/phpdig/admin/spider.php, I just set the permissions on spider.php to 744 (owner can execute, everyone else can only read) and called it directly, like this...

/path/to/phpdig/admin/spider.php all

and it works like a charm... I was able to put that simple command into cron and it re-indexes every night now.