Skip to content

Fresh RaspberryPi Stretch Installation

zaepho edited this page May 3, 2018 · 3 revisions

Stretch Install

TODO

Updates and Pre-Requisites

Start from the most up to date position possible

sudo apt-get update
sudo apt-get upgrade -y

Install Apache Webserver

sudo apt-get install apache2 -y
sudo a2enmod rewrite
sudo service apache2 restart

Install PHP

sudo apt-get install php libapache2-mod-php -y
cd /var/www/html
sudo touch phpinfo.php
sudo  echo "<?php phpinfo(); ?>" >> phpinfo.php
sudo service apache2 restart

Launch a browser and point it to http:///phpinfo.php You should see a page with a bunch of detailed information about PHP on it.

Install MySQL and related PHP Libraries

sudo apt-get install mysql-server php-mysql -y
sudo service apache2 restart

Configure MySQL. Be sure to capture the password you configure here!!

sudo mysql_secure_installation

It is useful to be able to easily manipulate the SQL backend on occasion. It is recommended to use PHPMyAdmin for this

sudo apt-get install phpmyadmin -y

Raspberry Pints Installation

  • Download RPints source to desired web directory (probably /var/www/html)
  • From a shell:
    • Navigate to the RPints directory and execute the commands
./install_composer.sh
php composer.phar update

Optional Flow Meters Setup

TODO

Clone this wiki locally