Aaron Gersztoff Weather34 Ubuntu System Setup Guide

Note: This is confirmed to work with Ubuntu 16.04. Other versions will likely require changes to the install process.

You have a clean Ubuntu 16.04 installation with sudo and command line access.
We are using the file from Weather34. Others may work, but YMMV.


Upload the (file to your server. For the purposes of this guide, we’ll assume the file has been uploaded to /home/upload.
SSH (or otherwise obtain command line access to your server)

Install nginx, mysql-server and php.
# sudo apt-get update
# sudo apt-get install nginx mysql-server php7.0* p7zip-full


You need to install all php7.0 packages in order to ensure all dependencies are satisfied. Missing dependencies can cause even basic functionality to fail.
If you do not setup a root MySQL password during installation, I recommend doing it now. Refer to the mysql documentation for the version you are using for assistance.
Copy the Weather34 (in this case, zip file to /var/www/html and extract it. Remember to ensure that you’re directory created has proper permissions to access the files.


# sudo cp /home/upload/ /var/www/html/
# cd /var/www/html
# sudo 7z x (
# sudo mv MB pws (renames MB to pws)
# sudo chown -R www-data:www-data /var/www/html/pws/

Edit the /etc/nginx/sites-enabled file and change the following :
Ensure the directive line includes index.php:
index index.html index.php index.nginx-debian.html;

Next, ensure the PHP code below is present within the file (typically commented out in default installs):

# # location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;

Save and close the file, then restart nginx, and php

# sudo service nginx restart
# sudo service php7.0-fpm restart

Before continuing, I recommend creating the default database in MySQL and importing the temporary data.

# mysql -u root -p
mysql> create database weather34;
mysql> use weather34;
mysql> source / source /var/www/html/pws/weatherstation.sql
mysql> select * from weatherstation;

Note: You should see the example data in the database.
Lastly, remove the example data from the database.
mysql> truncate table weatherstation;

You should now be able to launch the easyweathersetup.php file from your web browser and follow the setup process.

many thanks to Aaron Gersztoff this guide was produced 5th September 2018

©2015-2017 Brian Underdown designed under Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)