Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] installation instructions - launch SearXNG by python -m (#6078)

Markus Heiser09829b1ccc07
diff --git a/docs/build-templates/searxng.rst b/docs/build-templates/searxng.rst
index 68cf3ef32..0474aafe3 100644
--- a/docs/build-templates/searxng.rst
+++ b/docs/build-templates/searxng.rst
@@ -169,7 +169,7 @@ ${fedora_build}
$ sudo -H -u ${SERVICE_USER} -i
(${SERVICE_USER})$ cd ${SEARXNG_SRC}
(${SERVICE_USER})$ export SEARXNG_SETTINGS_PATH=\"${SEARXNG_SETTINGS_PATH}\"
- (${SERVICE_USER})$ python searx/webapp.py
+ (${SERVICE_USER})$ python -m searx.webapp
# disable debug
$ sudo -H sed -i -e \"s/debug : True/debug : False/g\" \"$SEARXNG_SETTINGS_PATH\"
diff --git a/utils/searxng.sh b/utils/searxng.sh
index ccf9f34eb..24add5928 100755
--- a/utils/searxng.sh
+++ b/utils/searxng.sh
@@ -661,7 +661,7 @@ searxng.instance.localtest() {
tee_stderr 0.1 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 | prefix_stdout "$_service_prefix"
export SEARXNG_SETTINGS_PATH="${SEARXNG_SETTINGS_PATH}"
cd ${SEARXNG_SRC}
-timeout 10 python searx/webapp.py &
+timeout 10 python -m searx/webapp &
sleep 3
curl --location --verbose --head --insecure ${SEARXNG_INTERNAL_HTTP}
EOF