Page 1 of 1
Configuring UP2
Posted: Tue 10 Apr 10 2018 8:31 pm
by Daniel Wee
Installing Apache2 webserver
https://www.digitalocean.com/community/ ... untu-16-04
Install PHP 7.1
Version 7.2 is needed for phpBB.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.2
Install SSL certificate
https://www.digitalocean.com/community/ ... untu-14-04
Re: Configuring UP2
Posted: Tue 10 Apr 10 2018 9:03 pm
by Daniel Wee
MySQL
https://stackoverflow.com/questions/623 ... r-for-user
sudo apt-get install mysql-server
*use correct password
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Pa55w0rd' WITH GRANT OPTION;
FLUSH PRIVILEGES;
sudo nano /etc/mysql/mysqld.conf.d/mysqld.cnf
change line:-
bind-address = 0.0.0.0
sudo service mysql restart
*note that we have a script running at boot time accessed by "sudo crontab -e"
Re: Configuring UP2
Posted: Tue 10 Apr 10 2018 9:31 pm
by Daniel Wee
FTP
https://www.digitalocean.com/community/ ... untu-16-04
sudo nano /etc/ftpusers
- remove "root" or comment it out to allow root login
sudo groupadd www
sudo gpasswd -a daniel www
sudo gpasswd -a root www
sudo chgrp -R www /var/www
sudo chmod -R g+rw /var/www
Re: Configuring UP2
Posted: Tue 10 Apr 10 2018 10:52 pm
by Daniel Wee
phpBB
Basically the entire html directory needs to be chmod -R 777 *
Add the following module for easy of use:-
https://www.phpbb.com/community/viewtopic.php?t=2292756
The phpbbmodders directory goes into the /ext directory
In order get have files executable:-
sudo chmod -R g+rwx,u+rwx,o+rx /var/www
sudo apt install php7.2-fpm php7.2-xml php7.2-dom php7.2-mysql php7.2-mbstring
Download from
https://www.phpbb.com/customise/db/exte ... dd_user_2/
- place the entire phpbbmodders directory into the ext/ directory
- remember to set permissions for this
sudo chmod -R g+rwx,u+rwx,o+rx /var/www/html/ext
- then enable the extension from CUSTOMISE tab in phpBB ACP
Re: Configuring UP2
Posted: Tue 10 Apr 10 2018 10:54 pm
by Daniel Wee
Re: Configuring UP2
Posted: Wed 11 Apr 11 2018 10:11 pm
by Daniel Wee
Python Stuff
sudo apt install python-pip
sudo -H pip install --upgrade pip
sudo -H pip install dash dash-renderer dash-html-components dash-core-components plotly
Re: Configuring UP2
Posted: Wed 11 Apr 11 2018 10:24 pm
by Daniel Wee
Dash
Basic script as follows:-
Code: Select all
#!/usr/bin/env python
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
app.layout = html.Div('Dash Tutorials')
if __name__ == '__main__':
app.run_server(debug=True, host='0.0.0.0', port=8050, threaded=True)
Remember to enable Javascript on the browser. This host setting will allow access from any address.