Hi, I self-hosted SearXNG on the Termux app on my Android device. When I visited the “About” page at http://127.0.0.1:8888/info/en/about, I encountered an error message that said “Page not found.” I’m not sure what could be causing this issue, and I would appreciate any help or guidance.

How i installed it

  1. pkg install -y python git libxml2 libxslt zlib libffi openssl openssl-tool build-essential binutils clang uwsgi

  2. pip3 install wheel --upgrade setuptools cython pyyaml gunicorn

  3. git clone https://github.com/searxng/searxng.git

  4. cd searxng

  5. pip3 install -r requirements.txt

  6. python3 setup.py install

  7. Changed the ULTRASECRETKEY and disabled wikidata and soundcloud

  8. nano ~/.bash_profile and add export SEARXNG_SETTINGS_PATH=~/searxng/searx/settings.yml and save and restart termux

  9. cd ~searxng/searx

  10. python3 webapp.py

  11. Modified some files the most important utils/searxng.sh and utils/lib.sh remove mostly all codes and replace with codes that are not from other distro

  • LemmyUser1290a@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Yes, the rest seems to be fine, but I think the issue with about is because I’m running it with Python, not a web server. There may be issues with the PC files being executed that are incompatible with Termux, so I need to modify the files to fit Termux compatibility.

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      Flask apps are usually run from gunicorn or something. What exactly did you modify on those shell scripts?

      • LemmyUser1290a@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        Termux doesn’t use systemctl or sudo, and there are many other commands that are not available. I modified the searxng.sh and lib.sh files because they were written for other operating systems like Ubuntu, Arch, Debian, and Fedora, but not specifically for Termux. So, I had to make some changes to make them work in Termux. I think I may have messed something up, though. I can send you the details of how I installed and configured it, or the files I modified, if that would be helpful.