|
@@ -6,7 +6,7 @@
|
6
|
6
|
<head>
|
7
|
7
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
8
|
|
9
|
|
- <title>Installation — searx 0.9.0 documentation</title>
|
|
9
|
+ <title>Installation — searx 0.10.0 documentation</title>
|
10
|
10
|
|
11
|
11
|
<link rel="stylesheet" href="../../_static/style.css" type="text/css" />
|
12
|
12
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
|
@@ -14,7 +14,7 @@
|
14
|
14
|
<script type="text/javascript">
|
15
|
15
|
var DOCUMENTATION_OPTIONS = {
|
16
|
16
|
URL_ROOT: '../../',
|
17
|
|
- VERSION: '0.9.0',
|
|
17
|
+ VERSION: '0.10.0',
|
18
|
18
|
COLLAPSE_INDEX: false,
|
19
|
19
|
FILE_SUFFIX: '.html',
|
20
|
20
|
HAS_SOURCE: true
|
|
@@ -23,7 +23,9 @@
|
23
|
23
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
24
|
24
|
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
25
|
25
|
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
26
|
|
- <link rel="top" title="searx 0.9.0 documentation" href="../../index.html" />
|
|
26
|
+ <link rel="index" title="Index" href="../../genindex.html" />
|
|
27
|
+ <link rel="search" title="Search" href="../../search.html" />
|
|
28
|
+ <link rel="top" title="searx 0.10.0 documentation" href="../../index.html" />
|
27
|
29
|
<link rel="next" title="Administration API" href="../../admin/api.html" />
|
28
|
30
|
<link rel="prev" title="Search syntax" href="../../user/search_syntax.html" />
|
29
|
31
|
|
|
@@ -68,18 +70,18 @@ certificate</a></p>
|
68
|
70
|
<h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
|
69
|
71
|
<p>For Ubuntu, be sure to have enable universe repository.</p>
|
70
|
72
|
<p>Install packages:</p>
|
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>
|
|
73
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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>
|
72
|
74
|
</pre></div>
|
73
|
75
|
</div>
|
74
|
76
|
<p>Install searx:</p>
|
75
|
|
-<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>
|
|
77
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span>
|
76
|
78
|
<span class="n">sudo</span> <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
|
77
|
79
|
<span class="n">sudo</span> <span class="n">useradd</span> <span class="n">searx</span> <span class="o">-</span><span class="n">d</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>
|
78
|
80
|
<span class="n">sudo</span> <span class="n">chown</span> <span class="n">searx</span><span class="p">:</span><span class="n">searx</span> <span class="o">-</span><span class="n">R</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>
|
79
|
81
|
</pre></div>
|
80
|
82
|
</div>
|
81
|
83
|
<p>Install dependencies in a virtualenv:</p>
|
82
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><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>
|
|
84
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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>
|
83
|
85
|
<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>
|
84
|
86
|
<span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
|
85
|
87
|
<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>
|
|
@@ -89,7 +91,7 @@ certificate</a></p>
|
89
|
91
|
</div>
|
90
|
92
|
<div class="section" id="configuration">
|
91
|
93
|
<h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
|
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>
|
|
94
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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="s2">"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
|
95
|
</pre></div>
|
94
|
96
|
</div>
|
95
|
97
|
<p>Edit searx/settings.yml if necessary.</p>
|
|
@@ -97,12 +99,12 @@ certificate</a></p>
|
97
|
99
|
<div class="section" id="check">
|
98
|
100
|
<h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
|
99
|
101
|
<p>Start searx:</p>
|
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>
|
|
102
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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
|
103
|
</pre></div>
|
102
|
104
|
</div>
|
103
|
105
|
<p>Go to <a class="reference external" href="http://localhost:8888">http://localhost:8888</a></p>
|
104
|
106
|
<p>If everything works fine, disable the debug option in settings.yml:</p>
|
105
|
|
-<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/debug : True/debug : False/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>
|
|
107
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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="s2">"s/debug : True/debug : False/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>
|
106
|
108
|
</pre></div>
|
107
|
109
|
</div>
|
108
|
110
|
<p>At this point searx is not demonized ; uwsgi allows this.</p>
|
|
@@ -112,41 +114,41 @@ twice).</p>
|
112
|
114
|
<div class="section" id="uwsgi">
|
113
|
115
|
<h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
|
114
|
116
|
<p>Install packages:</p>
|
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>
|
|
117
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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
|
118
|
</pre></div>
|
117
|
119
|
</div>
|
118
|
120
|
<p>Create the configuration file /etc/uwsgi/apps-available/searx.ini with
|
119
|
121
|
this content:</p>
|
120
|
|
-<div class="highlight-default"><div class="highlight"><pre><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
|
121
|
|
-<span class="c"># Who will run the code</span>
|
|
122
|
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
|
|
123
|
+<span class="c1"># Who will run the code</span>
|
122
|
124
|
<span class="n">uid</span> <span class="o">=</span> <span class="n">searx</span>
|
123
|
125
|
<span class="n">gid</span> <span class="o">=</span> <span class="n">searx</span>
|
124
|
126
|
|
125
|
|
-<span class="c"># disable logging for privacy</span>
|
|
127
|
+<span class="c1"># disable logging for privacy</span>
|
126
|
128
|
<span class="n">disable</span><span class="o">-</span><span class="n">logging</span> <span class="o">=</span> <span class="n">true</span>
|
127
|
129
|
|
128
|
|
-<span class="c"># Number of workers (usually CPU count)</span>
|
|
130
|
+<span class="c1"># Number of workers (usually CPU count)</span>
|
129
|
131
|
<span class="n">workers</span> <span class="o">=</span> <span class="mi">4</span>
|
130
|
132
|
|
131
|
|
-<span class="c"># The right granted on the created socket</span>
|
|
133
|
+<span class="c1"># The right granted on the created socket</span>
|
132
|
134
|
<span class="n">chmod</span><span class="o">-</span><span class="n">socket</span> <span class="o">=</span> <span class="mi">666</span>
|
133
|
135
|
|
134
|
|
-<span class="c"># Plugin to use and interpretor config</span>
|
|
136
|
+<span class="c1"># Plugin to use and interpretor config</span>
|
135
|
137
|
<span class="n">single</span><span class="o">-</span><span class="n">interpreter</span> <span class="o">=</span> <span class="n">true</span>
|
136
|
138
|
<span class="n">master</span> <span class="o">=</span> <span class="n">true</span>
|
137
|
139
|
<span class="n">plugin</span> <span class="o">=</span> <span class="n">python</span>
|
138
|
140
|
|
139
|
|
-<span class="c"># Module to import</span>
|
|
141
|
+<span class="c1"># Module to import</span>
|
140
|
142
|
<span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
|
141
|
143
|
|
142
|
|
-<span class="c"># Virtualenv and python path</span>
|
|
144
|
+<span class="c1"># Virtualenv and python path</span>
|
143
|
145
|
<span class="n">virtualenv</span> <span class="o">=</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><span class="o">/</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span>
|
144
|
146
|
<span class="n">pythonpath</span> <span class="o">=</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><span class="o">/</span>
|
145
|
147
|
<span class="n">chdir</span> <span class="o">=</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><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
|
146
|
148
|
</pre></div>
|
147
|
149
|
</div>
|
148
|
150
|
<p>Activate the uwsgi application and restart:</p>
|
149
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
|
|
151
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
|
150
|
152
|
<span class="n">ln</span> <span class="o">-</span><span class="n">s</span> <span class="o">../</span><span class="n">apps</span><span class="o">-</span><span class="n">available</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">ini</span>
|
151
|
153
|
<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">uwsgi</span> <span class="n">restart</span>
|
152
|
154
|
</pre></div>
|
|
@@ -158,14 +160,14 @@ this content:</p>
|
158
|
160
|
<h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
|
159
|
161
|
<p>If nginx is not installed (uwsgi will not work with the package
|
160
|
162
|
nginx-light):</p>
|
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>
|
|
163
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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>
|
162
|
164
|
</pre></div>
|
163
|
165
|
</div>
|
164
|
166
|
<div class="section" id="hosted-at">
|
165
|
167
|
<h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
|
166
|
168
|
<p>Create the configuration file /etc/nginx/sites-available/searx with this
|
167
|
169
|
content:</p>
|
168
|
|
-<div class="code nginx highlight-default"><div class="highlight"><pre><span class="n">server</span> <span class="p">{</span>
|
|
170
|
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span><span class="n">server</span> <span class="p">{</span>
|
169
|
171
|
<span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
|
170
|
172
|
<span class="n">server_name</span> <span class="n">searx</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">;</span>
|
171
|
173
|
<span class="n">root</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><span class="p">;</span>
|
|
@@ -178,7 +180,7 @@ content:</p>
|
178
|
180
|
</pre></div>
|
179
|
181
|
</div>
|
180
|
182
|
<p>Restart service:</p>
|
181
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
|
183
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
182
|
184
|
<span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
|
183
|
185
|
</pre></div>
|
184
|
186
|
</div>
|
|
@@ -187,7 +189,7 @@ content:</p>
|
187
|
189
|
<h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
|
188
|
190
|
<p>Add this configuration in the server config file
|
189
|
191
|
/etc/nginx/sites-available/default:</p>
|
190
|
|
-<div class="code nginx highlight-default"><div class="highlight"><pre>location = /searx { rewrite ^ /searx/; }
|
|
192
|
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location = /searx { rewrite ^ /searx/; }
|
191
|
193
|
location /searx {
|
192
|
194
|
try_files $uri @searx;
|
193
|
195
|
}
|
|
@@ -202,7 +204,7 @@ location @searx {
|
202
|
204
|
<p>OR</p>
|
203
|
205
|
<p>using reverse proxy
|
204
|
206
|
(Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
|
205
|
|
-<div class="code nginx highlight-default"><div class="highlight"><pre>location /searx {
|
|
207
|
+<div class="code nginx highlight-default"><div class="highlight"><pre><span></span>location /searx {
|
206
|
208
|
proxy_pass http://127.0.0.1:8888;
|
207
|
209
|
proxy_set_header Host $host;
|
208
|
210
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
@@ -213,11 +215,11 @@ location @searx {
|
213
|
215
|
</pre></div>
|
214
|
216
|
</div>
|
215
|
217
|
<p>Enable base_url in searx/settings.yml</p>
|
216
|
|
-<div class="highlight-default"><div class="highlight"><pre><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
|
|
218
|
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
|
217
|
219
|
</pre></div>
|
218
|
220
|
</div>
|
219
|
221
|
<p>Restart service:</p>
|
220
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
|
222
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
221
|
223
|
<span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
|
222
|
224
|
</pre></div>
|
223
|
225
|
</div>
|
|
@@ -226,12 +228,12 @@ location @searx {
|
226
|
228
|
<p>for better privacy you can disable nginx logs about searx.</p>
|
227
|
229
|
<p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
|
228
|
230
|
/etc/nginx/sites-available/default add</p>
|
229
|
|
-<div class="highlight-default"><div class="highlight"><pre><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
|
|
231
|
+<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
|
230
|
232
|
<span class="n">error_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
|
231
|
233
|
</pre></div>
|
232
|
234
|
</div>
|
233
|
235
|
<p>Restart service:</p>
|
234
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
|
236
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
|
235
|
237
|
</pre></div>
|
236
|
238
|
</div>
|
237
|
239
|
</div>
|
|
@@ -240,12 +242,12 @@ location @searx {
|
240
|
242
|
<div class="section" id="with-apache">
|
241
|
243
|
<h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
|
242
|
244
|
<p>Add wsgi mod:</p>
|
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>
|
|
245
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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
|
246
|
<span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
|
245
|
247
|
</pre></div>
|
246
|
248
|
</div>
|
247
|
249
|
<p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
|
248
|
|
-<div class="code apache highlight-default"><div class="highlight"><pre><span class="o"><</span><span class="n">Location</span> <span class="o">/></span>
|
|
250
|
+<div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="o"><</span><span class="n">Location</span> <span class="o">/></span>
|
249
|
251
|
<span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
|
250
|
252
|
<span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
|
251
|
253
|
<span class="n">uWSGISocket</span> <span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span>
|
|
@@ -256,7 +258,7 @@ location @searx {
|
256
|
258
|
change <code class="docutils literal"><span class="pre"><Location</span> <span class="pre">/></span></code> by the location of your instance, like
|
257
|
259
|
<code class="docutils literal"><span class="pre"><Location</span> <span class="pre">/searx></span></code>.</p>
|
258
|
260
|
<p>Restart Apache:</p>
|
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>
|
|
261
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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
|
262
|
</pre></div>
|
261
|
263
|
</div>
|
262
|
264
|
<div class="section" id="id2">
|
|
@@ -266,11 +268,11 @@ change <code class="docutils literal"><span class="pre"><Location</span> <spa
|
266
|
268
|
<p>WARNING: you can only disable logs for the whole (virtual) server not
|
267
|
269
|
for a specific path.</p>
|
268
|
270
|
<p>Go back to /etc/apache2/apache2.conf and above <code class="docutils literal"><span class="pre"><Location</span> <span class="pre">/></span></code> add:</p>
|
269
|
|
-<div class="code apache highlight-default"><div class="highlight"><pre><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
|
|
271
|
+<div class="code apache highlight-default"><div class="highlight"><pre><span></span><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
|
270
|
272
|
</pre></div>
|
271
|
273
|
</div>
|
272
|
274
|
<p>Restart Apache:</p>
|
273
|
|
-<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>
|
|
275
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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>
|
274
|
276
|
</pre></div>
|
275
|
277
|
</div>
|
276
|
278
|
</div>
|
|
@@ -278,7 +280,7 @@ for a specific path.</p>
|
278
|
280
|
</div>
|
279
|
281
|
<div class="section" id="how-to-update">
|
280
|
282
|
<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
|
|
-<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>
|
|
283
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><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
|
284
|
<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
|
285
|
<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>
|
284
|
286
|
<span class="n">git</span> <span class="n">stash</span>
|
|
@@ -292,14 +294,14 @@ for a specific path.</p>
|
292
|
294
|
<div class="section" id="docker">
|
293
|
295
|
<h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
|
294
|
296
|
<p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
|
295
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx
|
|
297
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span>docker pull wonderfall/searx
|
296
|
298
|
docker run -d --name searx -p $PORT:8888 wonderfall/searx
|
297
|
299
|
</pre></div>
|
298
|
300
|
</div>
|
299
|
301
|
<p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
|
300
|
302
|
<p>See <a class="reference external" href="https://hub.docker.com/r/wonderfall/searx/">https://hub.docker.com/r/wonderfall/searx/</a> for more informations.</p>
|
301
|
303
|
<p>It’s also possible to build searx from the embedded Dockerfile.</p>
|
302
|
|
-<div class="code sh highlight-default"><div class="highlight"><pre><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
|
|
304
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
|
303
|
305
|
<span class="n">cd</span> <span class="n">searx</span>
|
304
|
306
|
<span class="n">docker</span> <span class="n">build</span> <span class="o">-</span><span class="n">t</span> <span class="n">whatever</span><span class="o">/</span><span class="n">searx</span> <span class="o">.</span>
|
305
|
307
|
</pre></div>
|