PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 08-25-2004, 08:40 AM   #1
aslan
Green Mole
 
Join Date: Aug 2004
Posts: 4
Command Line entry and nothing happens

Read through a lot of posts so I have done the full path to both php and to the spider

/usr/bin/php -f /home/****/public_html/search2/admin/spider.php http://www.*****.com

And nothing happens just goes to the command prompt

So I logged it and the log is empty.

Any help/ideas/insight would be appreciated.

D~
aslan is offline   Reply With Quote
Old 08-25-2004, 09:38 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. You need to add /home/****/public_html/search2 to the first if statement in the config or cd to the admin directory and then /usr/bin/php -f spider.php for it to work.
__________________
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.
Charter is offline   Reply With Quote
Old 08-27-2004, 02:04 PM   #3
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
I'm having same problems too.

I have puTTy to connect to SSH. I am in -jailshell-2.05b
my path is /home/webdiva/public_html/phpDig/admin/spider.php

When I do this:
php -f /home/webdiva/public_html/phpDig/admin/spider.php http://www.domain-to-index.com/

I get message saying "cannot connect to db check connection file"

The config file does have my correct db/user/pass
the first if statement does contain the absoulte path:
/home/webdiva/public_html/phpDig
(no trailing slash)

When doing: cd to /home/webdiva/public_html/phpDig/admin/
-jailshell-2.05b$ /usr/bin/php -f spider.php http://domain-to-index.com
-jailshell-2.05b Could not open input file: /usr/bin/php/home/webdiva/public_html/phpDig/admin/spider.php

So, I then chmod 755 spider.php and still no joy.

Any thoughts? suggestions, please?
WebDiva 2.0 is offline   Reply With Quote
Old 08-27-2004, 02:52 PM   #4
aslan
Green Mole
 
Join Date: Aug 2004
Posts: 4
Quote:
Originally Posted by Charter
Hi. You need to add /home/****/public_html/search2 to the first if statement in the config or cd to the admin directory and then /usr/bin/php -f spider.php for it to work.
This worked for me thanks
aslan is offline   Reply With Quote
Old 08-27-2004, 03:54 PM   #5
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
This is what lives in the first if statement of config file:
Code:
define('ABSOLUTE_SCRIPT_PATH','/home/webdiva/public_html/phpDig'); 
// full path up to but not including admin dir, no end slash

if ((!isset($relative_script_path)) || (($relative_script_path != "/home/webdiva/public_html/phpDig") && 
($relative_script_path != "..") && ($relative_script_path != ABSOLUTE_SCRIPT_PATH))) {
  // echo "\n\nPath not recognized!\n\n";
  exit();
}
I still get error msg saying "cannot connect to database check connection file"

Do you have any idea why this is? I'd really like to index "something" but even so far I cannot do that.
WebDiva 2.0 is offline   Reply With Quote
Old 08-27-2004, 04:00 PM   #6
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
Oh, I did mean to add my web server is:
Apache version 1.3.31 (UNIX)
PHP version 4.3.8
MySQL version 4.0.20-standard

I am at using for my personal computer Windows '98.

I did buy also the search script from heathcosoft.com which too spiders from shell and this script did run just fine except for it does not obey well. You set for the script not to go outside of the domain you wish to index and it does go there anyway. It's not worth the $100 I paid for it.
WebDiva 2.0 is offline   Reply With Quote
Old 08-27-2004, 04:19 PM   #7
WebDiva 2.0
Former Member
 
Join Date: Aug 2004
Posts: 18
I read this thread just now and it did give access to the mysql connect. It began to index the domain I placed there. Then gave an error msg saying it cannot create the file in /text_content/keepalive.txt

Does these files need chmod other than 644?
WebDiva 2.0 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line and ABSOLUTE_SCRIPT_PATH drywall Troubleshooting 30 02-10-2005 10:34 AM
spider from command line twanoo Troubleshooting 3 01-14-2005 11:04 AM
command line using winxp mrgee Troubleshooting 1 11-03-2004 03:20 AM
Command line vs. admin indexing wx3 Troubleshooting 8 09-08-2004 01:31 AM
Indexing by command line... Canadian How-to Forum 4 01-04-2004 07:44 PM


All times are GMT -8. The time now is 02:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.