| mnoGoSearch 3.3.14 reference manual: Full-featured search engine software | ||
|---|---|---|
| Prev | Chapter 2. Installing mnoGoSearch | Next |
Starting from the version 3.3.7, it is possible to run search.cgi as an inetd / xinetd service without having to install a HTTP server (such as Apache) on the search machine.
To start using search.cgi as an inetd / xinetd service, choose an available TCP port (say 9999) and do the following:
Add this line to /etc/services:
mnogosearch 9999/tcp
In case of xinetd create a new file with name mnogosearch with this content:
# 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
}
and put it into /etc/xinetd.d/.
In case of inetd, add this line into /etc/inetd:
mnogosearch stream tcp nowait root /usr/local/mnogosearch/bin/search.cgi search.cgi -x
Run "killall -HUP xinetd" or "killall -HUP inetd".
Note: For security purposes you can also use a non-privileged user instead of root on step 2.
Note: You can use another port on your choice instead of 9999. In this case change the port number on the steps 1 and 2.