View Single Post
Old 11-06-2006, 08:48 PM   #1
carlaron
Green Mole
 
Join Date: Nov 2006
Posts: 1
command line indexing that actually works

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.
carlaron is offline   Reply With Quote