Poal.co free speech period.
Phuks Installation
Ubuntu 16.04
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install git python3 mysql-server redis-server libboost-python-dev python3-pip wget libffi-dev libexiv2-dev make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev
sudo apt-get install libmysqlclient-dev
install pyenv - $ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
add to bash -
a. echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
b. echo 'eval "$(pyenv init -)"' >> ~/.bashrc
c. echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
d. source ~/.bashrc
pyenv install 3.5.5
git clone https://phab.phuks.co/source/throat.git
cd throat
pyenv virtualenv 3.5.5 app
pyenv local app
pip install -r requirements.txt
npm -v
npm install
npm run build
cp example.config.py config.py
sudo nano config.py(change sql user and password)
mysql -u root -p
create database phuks;
exit
mysql -u root -p
SET GLOBAL sql_mode='';
exit
sudo apt-get install nginx
cd scripts
python install.py
gunicorn --bind 0.0.0.0:8000 wsgi:app
attempt site access with the ip of your machine/vm :8000 if the site loads continue with next steps.
cd /etc/nginx/sites-available
sudo mv default default.bak
sudo nano default
server { listen 80; servername serverdomainorIP;
location / { include proxyparams; proxypass http://hostorip; } }
this should be your nginx config for default
sudo nginx -t
sudo service nginx restart
Login with admin:adminadmin
This is a working install guide for phuks. IT WORKS BITCHES! I've spent way too much time on this.
Amazing. This stuff is Chinese to me.