![]() |
indexing from command line with text file
I can reindex from the command line with no problem, but it will only reindex the sites allready in the database.
From shell and in the phpdig-admin folder, I enter: "php -f spider.php cronlist.txt" It will reindex the sites allready in the database but not the sites in the text file. If I enter: "php -f spider.php http://www.domain.com" I get the same result. PHP ver is 4.1.2 I also tried to setup the cron job but it's not working. However I would perfet to use the command line. |
Hi. When you run php -f spider.php http://www.newdomain.com what output does PhpDig give?
|
1 Attachment(s)
The atached file (graphic) shows the command and output. When I enter php -f spider.php http://www.150cam.com
If I enter: php -f spider.php all or php -f spider.php text_file.txt or php -f spider.php or php -f spider.php http://www.150cam.com The result is the same. It will reindex the sites in the database but thats all. If the graphic does not show up, it is at lakenormansweb.com/phpdig_index.jpg Also Charter, I'm sorry I put this post in the wrong form. Thanks for your help. |
Hi. Are you able to index that site via the browser interface? A test run via shell gave the following output. Curious. Maybe this is related to the FP issue experienced previously?
Code:
> php -f spider.php http://www.150cam.com |
No problems from the browser interface. This site and many more spidered on my main site. I have phpdig installed on 2 servers, 1 for production and 1 for testing. Spidering from the command line has the same problem on both. Both also have Front Page installed. I'll try to setup a site w/o Front Page and see what happens. Any ideas about what to try if Front Page does apear to be the problem?
|
I setup a new site with a new domain name. I did not install Front Page. It has the same problem as the site with Front Page installed.
|
Hi. Are you getting any errors in your PHP logs when you try and index via shell? Also, can you post a link to your PHP info?
|
Hi. Try setting register_argc_argv to On in the php.ini file.
|
Charter,
Changing register_argc_argv to On in the php.ini file did the trick. IT WORKS GREAT NOW!! THANKS |
All times are GMT -8. The time now is 12:30 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.