2022-06-14 10:02:50 +02:00
|
|
|
.. _installation scripts:
|
|
|
|
|
|
|
|
===================
|
|
|
|
Installation Script
|
|
|
|
===================
|
|
|
|
|
2022-06-21 14:48:46 +02:00
|
|
|
.. sidebar:: Update the OS first!
|
2022-06-14 10:02:50 +02:00
|
|
|
|
|
|
|
To avoid unwanted side effects, update your OS before installing SearXNG.
|
|
|
|
|
|
|
|
The following will install a setup as shown in :ref:`the reference architecture
|
2022-06-21 14:48:46 +02:00
|
|
|
<arch public>`. First you need to get a clone of the repository. The clone is only needed for
|
2022-06-14 10:02:50 +02:00
|
|
|
the installation procedure and some maintenance tasks.
|
|
|
|
|
|
|
|
.. sidebar:: further read
|
|
|
|
|
|
|
|
- :ref:`toolboxing`
|
|
|
|
|
|
|
|
Jump to a folder that is readable by *others* and start to clone SearXNG,
|
|
|
|
alternatively you can create your own fork and clone from there.
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
$ cd ~/Downloads
|
|
|
|
$ git clone https://github.com/searxng/searxng.git searxng
|
|
|
|
$ cd searxng
|
|
|
|
|
|
|
|
.. sidebar:: further read
|
|
|
|
|
|
|
|
- :ref:`inspect searxng`
|
|
|
|
|
|
|
|
To install a SearXNG :ref:`reference setup <use_default_settings.yml>`
|
|
|
|
including a :ref:`uWSGI setup <architecture uWSGI>` as described in the
|
|
|
|
:ref:`installation basic` and in the :ref:`searxng uwsgi` section type:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
$ sudo -H ./utils/searxng.sh install all
|
|
|
|
|
|
|
|
.. attention::
|
|
|
|
|
|
|
|
For the installation procedure, use a *sudoer* login to run the scripts. If
|
|
|
|
you install from ``root``, take into account that the scripts are creating a
|
2022-06-21 14:48:46 +02:00
|
|
|
``searxng`` user. In the installation procedure this new created user does
|
2023-04-20 03:39:03 +02:00
|
|
|
need to have read access to the cloned SearXNG repository, which is not the case if you clone
|
2022-06-21 14:48:46 +02:00
|
|
|
it into a folder below ``/root``!
|
2022-06-14 10:02:50 +02:00
|
|
|
|
|
|
|
.. sidebar:: further read
|
|
|
|
|
|
|
|
- :ref:`update searxng`
|
|
|
|
|
|
|
|
.. _caddy: https://hub.docker.com/_/caddy
|
|
|
|
|
|
|
|
When all services are installed and running fine, you can add SearXNG to your
|
2023-04-20 03:39:03 +02:00
|
|
|
HTTP server. We do not have any preferences regarding the HTTP server, you can use
|
2022-06-14 10:02:50 +02:00
|
|
|
whatever you prefer.
|
|
|
|
|
|
|
|
We use caddy in our :ref:`docker image <installation docker>` and we have
|
|
|
|
implemented installation procedures for:
|
|
|
|
|
|
|
|
- :ref:`installation nginx`
|
|
|
|
- :ref:`installation apache`
|