<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Running search.cgi from inetd / xinetd </TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.8 reference manual" HREF="index.html"><LINK REL="UP" TITLE="Installing mnoGoSearch " HREF="msearch-install.html"><LINK REL="PREVIOUS" TITLE="Installing mnoGoSearch " HREF="msearch-installing.html"><LINK REL="NEXT" TITLE="Possible installation problems " HREF="msearch-installproblem.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="mnogo.css"><META NAME="Description" CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META NAME="Keywords" CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD ><BODY CLASS="sect1" BGCOLOR="#EEEEEE" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000" ><!--#include virtual="body-before.html"--><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >mnoGoSearch</SPAN > 3.3.8 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-installing.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 2. Installing <SPAN CLASS="application" >mnoGoSearch</SPAN > <A NAME="AEN519" ></A ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="msearch-installproblem.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="inetd" >Running <SPAN CLASS="application" >search.cgi</SPAN > from <SPAN CLASS="application" >inetd</SPAN > / <SPAN CLASS="application" >xinetd</SPAN ></A ></H1 ><P > Starting from the version <TT CLASS="literal" >3.3.7</TT >, it is possible to run <SPAN CLASS="application" >search.cgi</SPAN > as an <SPAN CLASS="application" >inetd</SPAN > / <SPAN CLASS="application" >xinetd</SPAN > service without having to install a <ACRONYM CLASS="acronym" >HTTP</ACRONYM > server (such as <SPAN CLASS="application" >Apache</SPAN >) on the search machine. </P ><P >To start using <SPAN CLASS="application" >search.cgi</SPAN > as an <SPAN CLASS="application" >inetd</SPAN > / <SPAN CLASS="application" >xinetd</SPAN > service, choose an available <ACRONYM CLASS="acronym" >TCP</ACRONYM > port (say <TT CLASS="literal" >9999</TT >) and do the following: <P ></P ><OL TYPE="1" ><LI ><P >Add this line to <TT CLASS="filename" >/etc/services</TT >: <PRE CLASS="programlisting" > mnogosearch 9999/tcp </PRE > </P ></LI ><LI ><P > In case of <SPAN CLASS="application" >xinetd</SPAN > create a new file with name <TT CLASS="filename" >mnogosearch</TT > with this content: <PRE CLASS="programlisting" > # default: on # description: The MNOGOSEARCH service allows remote users # to access the \ # mnoGoSearch search front-end without having # to run a \ # HTTP server service mnogosearch { disable = no port = 9999 socket_type = stream wait = no user = root server = /usr/local/mnogosearch/bin/search.cgi server_args = -x log_on_failure += USERID protocol = tcp } </PRE > and put it into <TT CLASS="filename" >/etc/xinetd.d/</TT >. </P ><P > In case of <SPAN CLASS="application" >inetd</SPAN >, add this line into <TT CLASS="filename" >/etc/inetd</TT >: <PRE CLASS="programlisting" > mnogosearch stream tcp nowait root /usr/local/mnogosearch/bin/search.cgi search.cgi -x </PRE > </P ></LI ><LI ><P > Run "<KBD CLASS="userinput" >killall -HUP xinetd</KBD >" or "<KBD CLASS="userinput" >killall -HUP inetd</KBD >". </P ></LI ></OL > Now you can point your browser to <TT CLASS="filename" >http://hostname:9999/search.htm</TT >. The file name part in the <ACRONYM CLASS="acronym" >URL</ACRONYM > tells <SPAN CLASS="application" >search.cgi</SPAN > which template file to open. For example, the above <ACRONYM CLASS="acronym" >URL</ACRONYM > will tell <SPAN CLASS="application" >search.cgi</SPAN > to open <TT CLASS="filename" >search.htm</TT > as its template. </P ><P > <DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > For security purposes you can also use a non-privileged user instead of <TT CLASS="literal" >root</TT > on step <TT CLASS="literal" >2</TT >. </P ></BLOCKQUOTE ></DIV > <DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > You can use another port on your choice instead of <TT CLASS="literal" >9999</TT >. In this case change the port number on the steps <TT CLASS="literal" >1</TT > and <TT CLASS="literal" >2</TT >. </P ></BLOCKQUOTE ></DIV > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="msearch-installing.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="msearch-installproblem.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Installing <SPAN CLASS="application" >mnoGoSearch</SPAN > <A NAME="AEN690" ></A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="msearch-install.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Possible installation problems <A NAME="AEN952" ></A ></TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >