Perlfect Solutions
 

[Perlfect-search] Problems when uploading the data directory from win 98 to the remote host

morgan cox perlfect-search@perlfect.com
Tue, 22 Apr 2003 14:01:01 +0100
This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C308D7.9B4E59E0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

>From what I've seen the perlfect script seems very good, I am having one =
massive problem however..

I realised quite quickly that i could not index my complete site on-line =
(due to isp restrictions), it also stopped index about 1/2 way through.

I then learnt about apache webserver which i installed on my win98 =
machine. After much messing about i managed to get apache server working =
on my local machine, after installing perl and the DB_File module i =
managed to index the entire site on my local machine, i also tested it =
(locally) and everything was fine.

BUT when i uploaded the data directory to my online host every time i go =
to search it comes up with 500 server error!.

I know it must be something either in the apache setup or the conf.pl as =
i have got the search to work both offline and online, i just need to be =
able to use the index data directory files that i created offline for my =
online site.

I have managed to index parts of the site online (i.e using the noindex =
file to prevent it indexing the larger directories) and as long as i =
index online the search works online. This is not good as i need to =
index the whole site!

One thing to also note is that when i copy the data directory from the =
online site to my local site i cannot search on my local site (i.e - to =
search on my local site I need to index on my local site).

Hope someone out there can help , i've come so far and am being stumped =
at the last hurdle.

* MORE INFO

Hi i've uncommented the #use CGI: :Carp qw(fatalstoBrowser) line in =
search.pl as advised.=20

here are the error messages i have found:

1) when i use the data folder indexed from the online site to my apache =
server i get these errors in my error.log when attempting to search

[Wed Apr 16 16:48:46 2003] [error] [client 127.0.0.1] (OS 2)The system =
cannot find the file specified.  : couldn't create child process: =
720002: search.pl, referer: http://localhost/
[Wed Apr 16 16:48:46 2003] [error] [client 127.0.0.1] (OS 2)The system =
cannot find the file specified.  : couldn't spawn child process: =
C:/home/autobus/cgi-bin/perlfect/search/search.pl, referer: =
http://localhost/

2) when i use the data folder indexed from my local (apache) server and =
uploaded it to the web i get this error message in my browser when =
attempting to search
Software error:
Cannot open /home/autobus/cgi-bin/perlfect/search/data/inv_index: =
Inappropriate file type or format at search.pl line 76.

Is it due to the fact that you can't index a site on a windows machine =
then put it on a webserver???

Any help would be ace!!
------=_NextPart_000_0017_01C308D7.9B4E59E0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>From what I've seen the perlfect script =
seems very=20
good, I am having one massive problem however..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I realised quite quickly that i could =
not index my=20
complete site on-line (due to isp restrictions), it also stopped index =
about 1/2=20
way through.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>I then learnt about apache webserver =
which i=20
installed on my win98 machine. After much messing about i managed to get =
apache=20
server working on my local machine, after installing perl and the =
DB_File module=20
i managed to index the entire site on my local machine, i also tested it =

(locally) and everything was fine.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>BUT when i uploaded the data directory =
to my online=20
host every time i go to search it comes up with 500 server=20
error!.</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I know it must be something either in =
the apache=20
setup or the conf.pl as i have got the search to work both offline and =
online, i=20
just need to be able to use the index data directory files that i =
created=20
offline for my online site.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have managed to index parts of the =
site online=20
(i.e using the noindex file to prevent it indexing the larger =
directories) and=20
as long as i index online the search works online. This is not good as i =
need to=20
index the whole site!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>One thing to also note is that when i =
copy the data=20
directory from the online site to my local site i cannot search on my =
local site=20
(i.e - to search on my local site I need to index on my local=20
site).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hope someone out there can help , i've =
come so far=20
and am being stumped at the last hurdle.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* MORE INFO</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>Hi i've uncommented =
the #use=20
CGI: :Carp qw(fatalstoBrowser) line in search.pl as advised.=20
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>here are the error messages i have=20
found:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1) when i use the data folder indexed =
from the=20
online site to my apache server i get these errors in my error.log when=20
attempting to search</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[Wed Apr 16 16:48:46 2003] [error] =
[client=20
127.0.0.1] (OS 2)The system cannot find the file specified.&nbsp; : =
couldn't=20
create child process: 720002: search.pl, referer: <A=20
href=3D"http://localhost/">http://localhost/</A><BR>[Wed Apr 16 16:48:46 =
2003]=20
[error] [client 127.0.0.1] (OS 2)The system cannot find the file=20
specified.&nbsp; : couldn't spawn child process:=20
C:/home/autobus/cgi-bin/perlfect/search/search.pl, referer: <A=20
href=3D"http://localhost/">http://localhost/</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2)&nbsp;when i use the data folder =
indexed from my=20
local (apache) server and&nbsp;uploaded it to the web i get this error =
message=20
in my browser when attempting to search</FONT></DIV>
<H1>Software error:</H1>
<DIV><CODE>Cannot open =
/home/autobus/cgi-bin/perlfect/search/data/inv_index:=20
Inappropriate file type or format at search.pl line 76.</CODE></DIV>
<DIV><CODE></CODE>&nbsp;</DIV>
<DIV><CODE>Is it due to the fact that you can't index a site on a =
windows=20
machine then put it on a webserver???</CODE></DIV>
<DIV><CODE></CODE>&nbsp;</DIV>
<DIV><CODE>Any help would be=20
ace!!</CODE></DIV></FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0017_01C308D7.9B4E59E0--