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
Configuring UP2
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Configuring UP2
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"
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"
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Configuring UP2
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
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
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Configuring UP2
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
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
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Configuring UP2
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
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
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: Configuring UP2
Dash
Basic script as follows:-
Remember to enable Javascript on the browser. This host setting will allow access from any address.
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)