From 10b65ae200983458590371d8cda4815754a80eaf Mon Sep 17 00:00:00 2001 From: Eliesemoule Date: Thu, 20 Jul 2017 19:39:57 +0200 Subject: [PATCH] Update of the procedure to work on CentOS 7 --- Installation-on-RHEL-7---CentOS-7.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Installation-on-RHEL-7---CentOS-7.md b/Installation-on-RHEL-7---CentOS-7.md index 9f8a96f..3bb94fd 100644 --- a/Installation-on-RHEL-7---CentOS-7.md +++ b/Installation-on-RHEL-7---CentOS-7.md @@ -28,8 +28,7 @@ su - searx cd /usr/local/searx virtualenv searx-ve . ./searx-ve/bin/activate -pip install -r requirements.txt -python setup.py install +./manage.sh update_packages ``` ## Configuration @@ -44,9 +43,13 @@ Start searx : ```sh python searx/webapp.py ``` - Go to [http://localhost:8888](http://localhost:8888) +If everything works fine, disable the debug option in settings.yml: +```sh +sed -i -e "s/debug : True/debug : False/g" searx/settings.yml +``` + At this point searx is not demonized ; uwsgi allows this. You can exit the virtualenv and the searx user bash (enter exit). @@ -72,10 +75,15 @@ disable-logging = true workers = 4 socket = 127.0.0.1:8888 +# The right granted on the created socket +chmod-socket = 666 + # Plugin to use and interpretor config single-interpreter = true master = true plugin = python +lazy-apps = true +enable-threads = true # Module to import module = searx.webapp @@ -136,7 +144,7 @@ su - searx git stash git pull origin master git stash apply -pip install --upgrade -r requirements.txt +./manage.sh update_packages exit systemctl restart uwsgi ``` \ No newline at end of file