Install you’re own spotweb server based on Ubuntu 18.04 with apache.
Following the command’s you will end up with a working server:
Login in with sudo to run the instructions
$; sudo -i
[sudo] password:
First we install Apache webserver with the following command:
# apt install -y apache2 apache2-utils
# systemctl enable apache2
Open the firewall for access to port 80/http
# iptables -I INPUT -p tcp –dport 80 -j ACCEPT
# ufw allow http
Set the correct rights on the webfolder
# chown www-data:www-data /var/www/html/ -R
Install PHP7.2 with all the needed modules
# apt install php7.2 libapache2-mod-php7.2 php7.2-mysql php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-curl php7.2-mbstring php7.2-xmlrpc php7.2-xml php7.2-zip php7.2-gd
Enable PHP in Apache en restart Apache to activate it.
# a2enmod php7.2
# systemctl restart apache2
Make a quick test page for PHP
# nano /var/www/html/info.php
CTRL-X / Yes
Browse to you server IP http://[server-ip/info.php] to show the PHP settings and info.
Set the timezone to your location
# nano /etc/php/7.2/apache2/php.ini
Change timezone to Europe/Amsterdam
Install MySQL Server and secure the installation
# apt install mysql-server
# mysql_secure_installation
Create Spotweb database with user spotweb and a good password.
# mysql
mysql> CREATE DATABASE spotweb;
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘spotweb’@’%’ IDENTIFIED BY ‘[PASSWORD]’ WITH GRANT OPTION;
mysql> \q
Download spotweb and move it to the webfolder:
# wget https://github.com/spotweb/spotweb/tarball/master
# tar -xvzf master
# mv spotweb-spotweb-*/* /var/www/html/
Open your browser and go to http://[server-IP]/install.php
Follow the instructions and have fun.