Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solved]server: status off Settings #20

Open
tehseensagar opened this issue Oct 1, 2019 · 2 comments
Open

[Solved]server: status off Settings #20

tehseensagar opened this issue Oct 1, 2019 · 2 comments

Comments

@tehseensagar
Copy link

tehseensagar commented Oct 1, 2019

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

@nanowell
Copy link

nanowell commented Oct 1, 2019

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.

@tehseensagar
Copy link
Author

tehseensagar commented Oct 1, 2019

@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 tehseensagar changed the title server: status off Settings [Solved]server: status off Settings Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants