Loki icon indicating copy to clipboard operation
Loki copied to clipboard

[Solved]server: status off Settings

Open tehseensagar opened this issue 6 years ago • 2 comments

I'm trying to setup this on my test vps , where Ive only terminal no GUI . I've tried to access it a bit change in loki.py and change ===> app.run() into ===> app.run(host='0.0.0.0.0') . >But the issue is when I logged into panel server status is OFF. when I switch to settings and server tab . I put my WAN IP there and server does not start. IP box turned RED . Any idea what's wrong.

Regards

tehseensagar avatar Oct 01 '19 06:10 tehseensagar

I set this up on vps by configuring PRIVATE_IP variable to real ip and modifying app.run() to app.run(host='URREALIP')

I think this might help you.

nanowell avatar Oct 01 '19 08:10 nanowell

@gra1w keep thing simple I did the same ;) .vi lib/const.py and set both PRIVATE_IP and PUBLIC_IP to your REAL_WAN_IP / VPS_IP. Below is the python3.7 for best running loki.

#Installing 3.7 python

` sudo apt install -y
build-essential
checkinstall

sudo apt install -y
libreadline-gplv2-dev
libncursesw5-dev
libssl-dev
libsqlite3-dev
tk-dev
libgdbm-dev
libc6-dev
libbz2-dev `

` cd /tmp/

wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz tar -xf Python-3.7.2.tar.xz cd Python-3.7.2 ./configure --enable-optimizations --enable-loadable-sqlite-extensions make -j 1 make altinstall `

++++++++++++++++++++++ #Error Fixing on make altinstall

ile "/tmp/Python-3.7.2/Lib/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' Makefile:1140: recipe for target 'altinstall' failed make: *** [altinstall] Error 1

sudo apt install libffi-dev

Regards

tehseensagar avatar Oct 01 '19 09:10 tehseensagar