![]() |
|
![]() |
#1 |
Green Mole
Join Date: Feb 2004
Location: france
Posts: 6
|
shell indexing problem
Hi everybody,
I encounter a small problem. It doesn"t seem to be difficult to solve, but I don't manage to find on my own. Here's the problem. I want to cron a daily indexing. But, first, I try on command line : --- $ php-cgi /[...absolute path...]/spider.php Content-type: text/html X-Powered-By: PHP/4.3.1 $ --- That's all !!! I get nothing else. I watched into the spider.php and discovered that the auth is not used when in command line. But, I discovered that the script stops running at the line : PHP Code:
So, I don't get what happen. Thanks by advance for you help. |
![]() |
![]() |
![]() |
#2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. You need to add the absolute path to the if statement in the config file. See this for an example.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
#3 |
Green Mole
Join Date: Feb 2004
Location: france
Posts: 6
|
Hi, Thanks for the answer.
I studied the case, but, the absolute path was right, so, I know it was nt from there. To an other hand, I modified the if statement, and now, it's working. I'm not at office right now, but if you're interrested, I can come back and write the modified line here for further assistance. Thank you. |
![]() |
![]() |
![]() |
#4 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Please do post your modification. It might help the next person.
![]() |
![]() |
![]() |
![]() |
#5 |
Green Mole
Join Date: Feb 2004
Location: france
Posts: 6
|
OK,
I'll post it on Monday Morning. Bye. |
![]() |
![]() |
![]() |
#6 |
Green Mole
Join Date: Feb 2004
Location: france
Posts: 6
|
Hi,
Oops, sorry, it's tuesday, but here is my modification : //in the config.php file if ((!isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) { print "Path not recognized"; exit(); } ![]() |
![]() |
![]() |
![]() |
#7 | |
Green Mole
Join Date: Mar 2004
Posts: 20
|
Quote:
Can you post your fix... I too am having the same issue. Thanks LH |
|
![]() |
![]() |
![]() |
#8 |
Green Mole
Join Date: Mar 2004
Posts: 20
|
To confirm....
the only way i could get the cron working, was to remove the entire if statement altogether..... Can anyone confirm if this will cause problems...? At the moment, everything seems to work fine ! LH |
![]() |
![]() |
![]() |
#9 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. It's not a good idea to remove the if statement. All you need to do is add to the if statement the path that is not there.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Indexing problem... | afrim_05 | Troubleshooting | 3 | 11-24-2005 03:51 AM |
shell indexing problem | Patrick_2a | Troubleshooting | 1 | 11-06-2005 10:30 AM |
Shell command no indexing | noel | Troubleshooting | 3 | 10-27-2005 10:22 AM |
Shell Spidering Quits After Indexing A Few Pages | vinyl-junkie | Troubleshooting | 11 | 10-09-2004 06:08 PM |
auto indexing without shell command | takpoli | How-to Forum | 1 | 04-29-2004 07:26 AM |