installation.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Installation &#8212; Searx Documentation (Searx-1.1.0.tex)</title>
  8. <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
  9. <link rel="stylesheet" type="text/css" href="../_static/searx.css" />
  10. <link rel="stylesheet" type="text/css" href="../_static/tabs.css" />
  11. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  12. <script src="../_static/jquery.js"></script>
  13. <script src="../_static/underscore.js"></script>
  14. <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
  15. <script src="../_static/doctools.js"></script>
  16. <script src="../_static/sphinx_highlight.js"></script>
  17. <link rel="index" title="Index" href="../genindex.html" />
  18. <link rel="search" title="Search" href="../search.html" />
  19. <link rel="next" title="Step by step installation" href="installation-searx.html" />
  20. <link rel="prev" title="Administrator documentation" href="index.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="../genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="../py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="installation-searx.html" title="Step by step installation"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="index.html" title="Administrator documentation"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="../index.html">Searx Documentation (Searx-1.1.0.tex)</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Administrator documentation</a> &#187;</li>
  39. <li class="nav-item nav-item-this"><a href="">Installation</a></li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <section id="installation">
  47. <span id="id1"></span><h1>Installation<a class="headerlink" href="#installation" title="Permalink to this heading">¶</a></h1>
  48. <p><em>You’re spoilt for choice</em>, choose your preferred method of installation.</p>
  49. <ul class="simple">
  50. <li><p><a class="reference internal" href="installation-docker.html#installation-docker"><span class="std std-ref">Docker installation</span></a></p></li>
  51. <li><p><a class="reference internal" href="#installation-scripts"><span class="std std-ref">Installation scripts</span></a></p></li>
  52. <li><p><a class="reference internal" href="installation-searx.html#installation-basic"><span class="std std-ref">Step by step installation</span></a></p></li>
  53. </ul>
  54. <p>The <a class="reference internal" href="installation-searx.html#installation-basic"><span class="std std-ref">Step by step installation</span></a> is good enough for intranet usage and it is a
  55. excellent illustration of <em>how a searx instance is build up</em>. If you place your
  56. instance public to the internet you should really consider to install a
  57. <a class="reference internal" href="../utils/filtron.sh.html#filtron-sh"><span class="std std-ref">filtron reverse proxy</span></a> and for privacy a <a class="reference internal" href="../utils/morty.sh.html#morty-sh"><span class="std std-ref">result proxy</span></a> is mandatory.</p>
  58. <p>Therefore, if you do not have any special preferences, its recommend to use the
  59. <a class="reference internal" href="installation-docker.html#installation-docker"><span class="std std-ref">Docker installation</span></a> or the <a class="reference internal" href="#installation-scripts">Installation scripts</a> from our <a class="reference internal" href="../utils/index.html#toolboxing"><span class="std std-ref">tooling
  60. box</span></a> as described below.</p>
  61. <section id="installation-scripts">
  62. <span id="id2"></span><h2>Installation scripts<a class="headerlink" href="#installation-scripts" title="Permalink to this heading">¶</a></h2>
  63. <aside class="sidebar">
  64. <p class="sidebar-title">Update OS first!</p>
  65. <p>To avoid unwanted side effects, update your OS before installing searx.</p>
  66. </aside>
  67. <p>The following will install a setup as shown in <a class="reference internal" href="architecture.html#architecture"><span class="std std-ref">Architecture</span></a>. First you
  68. need to get a clone. The clone is only needed for the installation procedure
  69. and some maintenance tasks (alternatively you can create your own fork).</p>
  70. <p>For the installation procedure, use a <em>sudoer</em> login to run the scripts. If you
  71. install from <code class="docutils literal notranslate"><span class="pre">root</span></code>, take into account that the scripts are creating a
  72. <code class="docutils literal notranslate"><span class="pre">searx</span></code>, a <code class="docutils literal notranslate"><span class="pre">filtron</span></code> and a <code class="docutils literal notranslate"><span class="pre">morty</span></code> user. In the installation procedure
  73. these new created users do need read access to the clone of searx, which is not
  74. the case if you clone into a folder below <code class="docutils literal notranslate"><span class="pre">/root</span></code>.</p>
  75. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> ~/Downloads
  76. $ git clone https://github.com/searx/searx searx
  77. $ <span class="nb">cd</span> searx
  78. </pre></div>
  79. </div>
  80. <aside class="sidebar">
  81. <p class="sidebar-title">further read</p>
  82. <ul class="simple">
  83. <li><p><a class="reference internal" href="../utils/index.html#toolboxing"><span class="std std-ref">Admin’s tooling box</span></a></p></li>
  84. <li><p><a class="reference internal" href="update-searx.html#update-searx"><span class="std std-ref">How to update</span></a></p></li>
  85. <li><p><a class="reference internal" href="update-searx.html#inspect-searx"><span class="std std-ref">How to inspect &amp; debug</span></a></p></li>
  86. </ul>
  87. </aside>
  88. <p><strong>Install</strong> <a class="reference internal" href="../utils/searx.sh.html#searx-sh"><span class="std std-ref">searx service</span></a></p>
  89. <p>This installs searx as described in <a class="reference internal" href="installation-searx.html#installation-basic"><span class="std std-ref">Step by step installation</span></a>.</p>
  90. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ sudo -H ./utils/searx.sh install all
  91. </pre></div>
  92. </div>
  93. <p><strong>Install</strong> <a class="reference internal" href="../utils/filtron.sh.html#filtron-sh"><span class="std std-ref">filtron reverse proxy</span></a></p>
  94. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ sudo -H ./utils/filtron.sh install all
  95. </pre></div>
  96. </div>
  97. <p><strong>Install</strong> <a class="reference internal" href="../utils/morty.sh.html#morty-sh"><span class="std std-ref">result proxy</span></a></p>
  98. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ sudo -H ./utils/morty.sh install all
  99. </pre></div>
  100. </div>
  101. <p>If all services are running fine, you can add it to your HTTP server:</p>
  102. <ul class="simple">
  103. <li><p><a class="reference internal" href="installation-apache.html#installation-apache"><span class="std std-ref">Install with apache</span></a></p></li>
  104. <li><p><a class="reference internal" href="installation-nginx.html#installation-nginx"><span class="std std-ref">Install with nginx</span></a></p></li>
  105. </ul>
  106. <div class="admonition tip">
  107. <p class="admonition-title">Tip</p>
  108. <p>About script’s installation options have a look at chapter <a class="reference internal" href="../utils/index.html#toolboxing-setup"><span class="std std-ref">Tooling box setup</span></a>. How to brand your instance see chapter <a class="reference internal" href="settings.html#settings-global"><span class="std std-ref">Global Settings</span></a>. To
  109. <em>stash</em> your instance’s setup, <a class="reference external" href="https://git-scm.com/docs/git-stash">git stash</a> your clone’s <a class="reference external" href="https://github.com/searx/searx/blob/master/Makefile">Origin: Makefile</a>
  110. and <a class="reference external" href="https://github.com/searx/searx/blob/master/.config.sh">Origin: .config.sh</a> file .</p>
  111. </div>
  112. </section>
  113. </section>
  114. <div class="clearer"></div>
  115. </div>
  116. </div>
  117. </div>
  118. <span id="sidebar-top"></span>
  119. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  120. <div class="sphinxsidebarwrapper">
  121. <p class="logo"><a href="../index.html">
  122. <img class="logo" src="../_static/searx_logo_small.png" alt="Logo"/>
  123. </a></p>
  124. <h3>Project Links</h3>
  125. <ul>
  126. <li><a href="https://searx.github.io/searx/blog/index.html">Blog</a>
  127. <li><a href="https://github.com/searx/searx">Source</a>
  128. <li><a href="https://github.com/searx/searx/wiki">Wiki</a>
  129. <li><a href="https://twitter.com/Searx_engine">Twitter</a>
  130. <li><a href="https://github.com/searx/searx/issues">Issue Tracker</a>
  131. </ul><h3>Navigation</h3>
  132. <ul>
  133. <li><a href="../index.html">Overview</a>
  134. <ul>
  135. <li><a href="index.html">Administrator documentation</a>
  136. <ul>
  137. <li>Previous: <a href="index.html" title="previous chapter">Administrator documentation</a>
  138. <li>Next: <a href="installation-searx.html" title="next chapter">Step by step installation</a></ul>
  139. </li>
  140. </ul>
  141. </li>
  142. </ul>
  143. <div id="searchbox" style="display: none" role="search">
  144. <h3 id="searchlabel">Quick search</h3>
  145. <div class="searchformwrapper">
  146. <form class="search" action="../search.html" method="get">
  147. <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
  148. <input type="submit" value="Go" />
  149. </form>
  150. </div>
  151. </div>
  152. <script>document.getElementById('searchbox').style.display = "block"</script>
  153. </div>
  154. </div>
  155. <div class="clearer"></div>
  156. </div>
  157. <div class="footer" role="contentinfo">
  158. &#169; Copyright 2015-2022, Adam Tauber, Noémi Ványi.
  159. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
  160. </div>
  161. <script src="../_static/version_warning_offset.js"></script>
  162. </body>
  163. </html>