Friday, December 17, 2021

How To Setup Searx On Ubuntu 18.04 LTS With apache2

 Searx is an open-source, free to use metasearch engine that aggregates results from more than 70 search services, including Google and Bing.
https://asciimoo.github.io/searx/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https python-babel zlib1g-dev libffi-dev libssl-dev libxslt-dev python-dev python-virtualenv apache2 -y
a2enmod proxy rewrite proxy_http

cd /opt/ ; git clone https://github.com/asciimoo/searx.git        [ Config File Path :  /opt/searx/searx/settings.yml ]
cd /opt/searx ; virtualenv searx-ve
source searx-ve/bin/activate
./manage.sh update_packages
nohup python searx/webapp.py &
netstat -tlpn

nano /etc/apache2/sites-available/searx.conf
<VirtualHost *:80>
    ServerName www.yourdomain.com

    ProxyPass / http://127.0.0.1:8888/
    ProxyPassReverse / http://127.0.0.1:8888/
</VirtualHost>

a2ensite searx.conf ; a2dissite 000-default ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts
systemctl enable apache2 ; systemctl reload apache2
http://www.yourdomain.com

No comments:

Post a Comment