![]() |
I got the above working, well kind of,
I set the cron job up, and set it to send me the results, which come back to me and the say successfull. But when i look to see if they have actually been added, they havent, so i have no extra sites in my search engine, Any Ideas |
Cron Job Tip
What happens if you try to run your cron in a shell.
The best way to make sure any cron is going to work is to first try the command in a shell. If that works then use the command in a cron I have been running the above code in a shell for about 3 days non-stop with no problem. I am still unsure of why I still can not do the same thing from a txt file but this seems to work well. There is no doubt that every server has there own personality its all a matter of finding out what works best on your server. Which sometimes can be nerve wrecking. Thank You 2-surf.net |
Hi,
Unfortionatly i dont have shell access i dont think, i dont really know what it is, But the cron is working as i get the report email saying that is has done what it should be doing. But nevermind thanks anyway |
Hey.. i'm having problems with both of these scripts. At the moment i'm trying to get the .pl one to work
it executes and says its completed with no error.. but it comes up instantly.. does this mean its not working. Also.. the url's aren't been added to the site. |
ps.. i have shell axx
|
.pl Above
The pl above will not show errors if there is errors like doucment already indexed or reasons why phpdig does not completely index sites according to your config file they will not show with this pl.
Its shows finished indexing when the spider.php is finished with the url reguardless of what the spider did. On thing you can do to test the script is run this commmand php -f /path/to/admin/spider.php http://www.somedomain.com If the results are good then the script should be working fine. Just for referance I am currently indexing 1 level and 1 link. and it takes average of 30 seconds to complete one site. Thanks 2-surf.net |
ok.. it takes like .5 of a second. lol
something is up.. but i don't have a clue what. i've added sites to the db.. but when it runs.. it just deletes them and doesn't add to the site =/ |
Right there is a indexing prob.
Yes,
There is a problem indexing if it is doing it in that small amount of time. Sounds like the pl is working if it is deleting the urls. What happens when you index from shell command php -f /path/to/admin/spider.php http://www.somedomain.com Thanks 2-Surf.net |
aphrodite# php -f /usr/nfs/domains/f/****MASKED****/html/admin/spider.php http://www.url.com
aphrodite# straight away |
my provider installed php on that box for me.. just basic pack. cos this shell server is nfs'd to another box for web.
So.. that line is executed on one machine.. but the website runs off another. Do i need any extentions added to php on that machine? |
Results
That response does not look correct.
when you index in the shell it should look like the same results as if you were indexing it through the web browser. Thank you, 2-surf.net |
All times are GMT -8. The time now is 10:54 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.