|
12-17-2004, 04:10 AM | #1 |
Green Mole
Join Date: Feb 2004
Posts: 9
|
same issue here
hi,
i am having the same issue here after an upgrade from 1.8.0 to 1.8.6. All works as expected when running the spider from the webbrowser, but when i try to run it from the commandline by cgi (something that was no problem using 1.8.0): Ik think i know what the problem is but i am not sure and unfamiliar of how to fix it... Code:
cd /path/to/phpdig-1.8.6/ /usr/local/bin/php -q -f admin/spider.php http://www.sitetoindex.com/ Warning: main(): Unable to access ../includes/config.php in /path/to/phpdig-1.8.6/admin/spider.php on line 90 and a bunch of other errors... Code:
Warning: Cannot modify header information - headers already sent by (output started at /path/to/phpdig-1.8.6/includes/config.php:1) in /path/to/phpdig-1.8.6/libs/auth.php on line 62 I just did a test, by uploading an unmodified version of config.php, using pico to edit it via the shell works partially. (Other then anoying working with pico) The redrect (in auth) now works fine, but the running via cgi still produces the same errors. ohh, phpdig is currently installed in just one directory (as downloaded) so i did not add a relative path in the config... i hope this info helps... please contact me if you need more info, i really need this working via cron... tanks Last edited by baskamer; 12-17-2004 at 04:16 AM. Reason: additions / error |
12-17-2004, 05:15 AM | #2 |
Green Mole
Join Date: Feb 2004
Posts: 9
|
solution
it seems that this was the culprit;
cd to the admin dir, instead of phpdig... Code:
instead of cd /path/to/phpdig/ use cd /path/to/phpdig/admin/ /usr/local/bin/php -q -f ./spider.php http://www.yoursite.com |
12-18-2004, 01:33 PM | #3 |
Orange Mole
Join Date: Jan 2004
Posts: 30
|
I was using a cron job and had to change the code on line 88 in spider.php
FROM Code:
// echo $relative_script_path; $relative_script_path = '..'; Code:
// echo $relative_script_path; $relative_script_path = '/home/username/www/phpdig'; |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pdftotext issue | JonnyNoog | External Binaries | 6 | 07-15-2006 12:40 AM |
Config file problems. | Dave A | Troubleshooting | 3 | 12-28-2005 02:57 AM |
Spidering issue | cefiro | How-to Forum | 0 | 02-28-2005 10:01 AM |
Indexing Issue | tajmahal | Troubleshooting | 8 | 02-19-2005 12:03 PM |
pdf config under windows - is this right? | scuba303 | External Binaries | 4 | 10-24-2003 10:23 AM |