| 
				
			 | 
			
			
				@@ -40,7 +40,7 @@ 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				40
			 | 
			
			
				           <div class="body" role="main"> 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				41
			 | 
			
			
				              
			 | 
		
	
		
			
			| 
				42
			 | 
			
				42
			 | 
			
			
				   <div class="section" id="installation"> 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				
			 | 
			
			
				-<h1><a class="toc-backref" href="#id2">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				43
			 | 
			
			
				+<span id="id1"></span><h1><a class="toc-backref" href="#id3">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1> 
			 | 
		
	
		
			
			| 
				44
			 | 
			
				44
			 | 
			
			
				 <p>Step by step installation for Debian/Ubuntu with virtualenv.</p> 
			 | 
		
	
		
			
			| 
				45
			 | 
			
				45
			 | 
			
			
				 <p>Source: <a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</p> 
			 | 
		
	
		
			
			| 
				46
			 | 
			
				46
			 | 
			
			
				 <p>How to: <a class="reference external" href="https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/">Setup searx in a couple of hours with a free SSL 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -48,24 +48,24 @@ certificate</a></p> 
			 | 
		
	
		
			
			| 
				48
			 | 
			
				48
			 | 
			
			
				 <div class="contents topic" id="contents"> 
			 | 
		
	
		
			
			| 
				49
			 | 
			
				49
			 | 
			
			
				 <p class="topic-title first">Contents</p> 
			 | 
		
	
		
			
			| 
				50
			 | 
			
				50
			 | 
			
			
				 <ul class="simple"> 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#installation" id="id2">Installation</a><ul> 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#basic-installation" id="id3">Basic installation</a></li> 
			 | 
		
	
		
			
			| 
				53
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#configuration" id="id4">Configuration</a></li> 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#check" id="id5">Check</a></li> 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#uwsgi" id="id6">uwsgi</a></li> 
			 | 
		
	
		
			
			| 
				56
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#web-server" id="id7">Web server</a><ul> 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#with-nginx" id="id8">with nginx</a></li> 
			 | 
		
	
		
			
			| 
				58
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#with-apache" id="id9">with apache</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+<li><a class="reference internal" href="#installation" id="id3">Installation</a><ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				52
			 | 
			
			
				+<li><a class="reference internal" href="#basic-installation" id="id4">Basic installation</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				53
			 | 
			
			
				+<li><a class="reference internal" href="#configuration" id="id5">Configuration</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+<li><a class="reference internal" href="#check" id="id6">Check</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+<li><a class="reference internal" href="#uwsgi" id="id7">uwsgi</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+<li><a class="reference internal" href="#web-server" id="id8">Web server</a><ul> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+<li><a class="reference internal" href="#with-nginx" id="id9">with nginx</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				58
			 | 
			
			
				+<li><a class="reference internal" href="#with-apache" id="id10">with apache</a></li> 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				59
			 | 
			
			
				 </ul> 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				60
			 | 
			
			
				 </li> 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#how-to-update" id="id10">How to update</a></li> 
			 | 
		
	
		
			
			| 
				62
			 | 
			
				
			 | 
			
			
				-<li><a class="reference internal" href="#docker" id="id11">Docker</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				61
			 | 
			
			
				+<li><a class="reference internal" href="#how-to-update" id="id11">How to update</a></li> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				62
			 | 
			
			
				+<li><a class="reference internal" href="#docker" id="id12">Docker</a></li> 
			 | 
		
	
		
			
			| 
				63
			 | 
			
				63
			 | 
			
			
				 </ul> 
			 | 
		
	
		
			
			| 
				64
			 | 
			
				64
			 | 
			
			
				 </li> 
			 | 
		
	
		
			
			| 
				65
			 | 
			
				65
			 | 
			
			
				 </ul> 
			 | 
		
	
		
			
			| 
				66
			 | 
			
				66
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				67
			 | 
			
				67
			 | 
			
			
				 <div class="section" id="basic-installation"> 
			 | 
		
	
		
			
			| 
				68
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id3">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				68
			 | 
			
			
				+<h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				69
			 | 
			
				69
			 | 
			
			
				 <p>For Ubuntu, be sure to have enable universe repository.</p> 
			 | 
		
	
		
			
			| 
				70
			 | 
			
				70
			 | 
			
			
				 <p>Install packages:</p> 
			 | 
		
	
		
			
			| 
				71
			 | 
			
				71
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -88,14 +88,14 @@ certificate</a></p> 
			 | 
		
	
		
			
			| 
				88
			 | 
			
				88
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				89
			 | 
			
				89
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				90
			 | 
			
				90
			 | 
			
			
				 <div class="section" id="configuration"> 
			 | 
		
	
		
			
			| 
				91
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id4">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				91
			 | 
			
			
				+<h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				92
			 | 
			
				92
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">"s/ultrasecretkey/`openssl rand -hex 16`/g"</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span> 
			 | 
		
	
		
			
			| 
				93
			 | 
			
				93
			 | 
			
			
				 </pre></div> 
			 | 
		
	
		
			
			| 
				94
			 | 
			
				94
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				95
			 | 
			
				95
			 | 
			
			
				 <p>Edit searx/settings.yml if necessary.</p> 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				96
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				97
			 | 
			
				97
			 | 
			
			
				 <div class="section" id="check"> 
			 | 
		
	
		
			
			| 
				98
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id5">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				98
			 | 
			
			
				+<h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				99
			 | 
			
			
				 <p>Start searx:</p> 
			 | 
		
	
		
			
			| 
				100
			 | 
			
				100
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span> 
			 | 
		
	
		
			
			| 
				101
			 | 
			
				101
			 | 
			
			
				 </pre></div> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -110,7 +110,7 @@ certificate</a></p> 
			 | 
		
	
		
			
			| 
				110
			 | 
			
				110
			 | 
			
			
				 twice).</p> 
			 | 
		
	
		
			
			| 
				111
			 | 
			
				111
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				112
			 | 
			
				112
			 | 
			
			
				 <div class="section" id="uwsgi"> 
			 | 
		
	
		
			
			| 
				113
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id6">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				+<h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				114
			 | 
			
				114
			 | 
			
			
				 <p>Install packages:</p> 
			 | 
		
	
		
			
			| 
				115
			 | 
			
				115
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span> 
			 | 
		
	
		
			
			| 
				116
			 | 
			
				116
			 | 
			
			
				 </pre></div> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -153,9 +153,9 @@ this content:</p> 
			 | 
		
	
		
			
			| 
				153
			 | 
			
				153
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				154
			 | 
			
				154
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				155
			 | 
			
				155
			 | 
			
			
				 <div class="section" id="web-server"> 
			 | 
		
	
		
			
			| 
				156
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id7">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				156
			 | 
			
			
				+<h2><a class="toc-backref" href="#id8">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				157
			 | 
			
				157
			 | 
			
			
				 <div class="section" id="with-nginx"> 
			 | 
		
	
		
			
			| 
				158
			 | 
			
				
			 | 
			
			
				-<h3><a class="toc-backref" href="#id8">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				158
			 | 
			
			
				+<h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3> 
			 | 
		
	
		
			
			| 
				159
			 | 
			
				159
			 | 
			
			
				 <p>If nginx is not installed (uwsgi will not work with the package 
			 | 
		
	
		
			
			| 
				160
			 | 
			
				160
			 | 
			
			
				 nginx-light):</p> 
			 | 
		
	
		
			
			| 
				161
			 | 
			
				161
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -238,7 +238,7 @@ location @searx { 
			 | 
		
	
		
			
			| 
				238
			 | 
			
				238
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				239
			 | 
			
				239
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				240
			 | 
			
				240
			 | 
			
			
				 <div class="section" id="with-apache"> 
			 | 
		
	
		
			
			| 
				241
			 | 
			
				
			 | 
			
			
				-<h3><a class="toc-backref" href="#id9">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				241
			 | 
			
			
				+<h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3> 
			 | 
		
	
		
			
			| 
				242
			 | 
			
				242
			 | 
			
			
				 <p>Add wsgi mod:</p> 
			 | 
		
	
		
			
			| 
				243
			 | 
			
				243
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span> 
			 | 
		
	
		
			
			| 
				244
			 | 
			
				244
			 | 
			
			
				 <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -259,8 +259,8 @@ change <code class="docutils literal"><span class="pre"><Location</span> <spa 
			 | 
		
	
		
			
			| 
				259
			 | 
			
				259
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span> 
			 | 
		
	
		
			
			| 
				260
			 | 
			
				260
			 | 
			
			
				 </pre></div> 
			 | 
		
	
		
			
			| 
				261
			 | 
			
				261
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				262
			 | 
			
				
			 | 
			
			
				-<div class="section" id="id1"> 
			 | 
		
	
		
			
			| 
				263
			 | 
			
				
			 | 
			
			
				-<h4>disable logs<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h4> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				262
			 | 
			
			
				+<div class="section" id="id2"> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				263
			 | 
			
			
				+<h4>disable logs<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4> 
			 | 
		
	
		
			
			| 
				264
			 | 
			
				264
			 | 
			
			
				 <p>For better privacy you can disable Apache logs.</p> 
			 | 
		
	
		
			
			| 
				265
			 | 
			
				265
			 | 
			
			
				 <p>WARNING: not tested</p> 
			 | 
		
	
		
			
			| 
				266
			 | 
			
				266
			 | 
			
			
				 <p>WARNING: you can only disable logs for the whole (virtual) server not 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -277,7 +277,7 @@ for a specific path.</p> 
			 | 
		
	
		
			
			| 
				277
			 | 
			
				277
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				278
			 | 
			
				278
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				279
			 | 
			
				279
			 | 
			
			
				 <div class="section" id="how-to-update"> 
			 | 
		
	
		
			
			| 
				280
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id10">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				280
			 | 
			
			
				+<h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				281
			 | 
			
				281
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span> 
			 | 
		
	
		
			
			| 
				282
			 | 
			
				282
			 | 
			
			
				 <span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span> 
			 | 
		
	
		
			
			| 
				283
			 | 
			
				283
			 | 
			
			
				 <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span> 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -290,7 +290,7 @@ for a specific path.</p> 
			 | 
		
	
		
			
			| 
				290
			 | 
			
				290
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				291
			 | 
			
				291
			 | 
			
			
				 </div> 
			 | 
		
	
		
			
			| 
				292
			 | 
			
				292
			 | 
			
			
				 <div class="section" id="docker"> 
			 | 
		
	
		
			
			| 
				293
			 | 
			
				
			 | 
			
			
				-<h2><a class="toc-backref" href="#id11">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				293
			 | 
			
			
				+<h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2> 
			 | 
		
	
		
			
			| 
				294
			 | 
			
				294
			 | 
			
			
				 <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p> 
			 | 
		
	
		
			
			| 
				295
			 | 
			
				295
			 | 
			
			
				 <div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx 
			 | 
		
	
		
			
			| 
				296
			 | 
			
				296
			 | 
			
			
				 docker run -d --name searx -p $PORT:8888 wonderfall/searx 
			 |