![]() |
Command line vs. admin indexing
Hi all,
I've installed phpdig, and it seems to work fine, except that I can't get it to index regularly via cron or command line. If I login through the admin interface and click on the green checkbox, phpdig spends about 2-3 minutes indexing the site. When it's done, all the changes to the site are reflected in the search. If I run the spider from the command line: Code:
/usr/local/bin/php -f /usr/www/users/username/search/admin/spider.php forceall 39258: old priority 0, new priority 18 Spidering in progress... ----------------------------- SITE : http://www.mywebsite.com/ Exclude paths : - @NONE@ No link in temporary table links found : 0 Optimizing tables... Indexing complete ! What am I doing wrong? Thanks much, Kevin |
Welcome to the forum, wx3. :D
Try this instead: Substitute your directory name for [PHPDIG_DIR], and of course your domain name, too. Let us know how that works for you. |
Hi, sounds like maybe you need to add the full path to the if statement in the config file?
|
Hi,
Thanks to both of you for the suggestions. I'm pretty sure the path is set correctly in that first IF statement in the config file (the one that checks to see if relative_script_path is valid). I tried adding the URL explicitly like vinyl suggested, and this is the result: Spidering in progress... ----------------------------- SITE : http://www.mywebsite.com/ Exclude paths : - @NONE@ 1:http://www.mywebsite.com/ (time : 00:00:05) No link in temporary table links found : 1 Optimizing tables... Indexing complete ! It found 1 link instead of 0, but still failed to index the site. Any other suggestions? Thanks, Kevin |
What search depth and links per did you use? What happens if you now go update the site?
|
How do you set the depth and linksper from the command line?
Code:
#php -f [PHPDIG_DIR]/admin/spider.php http://host.mydomain.com |
I seem to have the same problem wx3 has. When I go from command line with:
Code:
/usr/bin/php -f /home/sites/www.vematex.nl/web/phpdig/admin/spider.php forceall Code:
<b>Warning</b>: Undefined variable: argv in <b>/home/sites/site6/web/phpdig/admin/spider.php</b> on line <b>36</b><br> |
See around line 25 of the spider.php file.
|
Hi,
I turned on the register_argc_argv on our server. No more 'Undefined variable:'. Instead of 'forceall' I put 2 'spider'lines in the crontab, each pointing to a different dir. That works. For now I'm happy. Thanks! |
All times are GMT -8. The time now is 04:10 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.