To run Footfall on a Raspberry Pi, you must install a LAMP stack (Linux, Apache, MySQL, PHP) and configure phpMyAdmin. This process requires command-line knowledge.
1. Install System Dependencies
Update your system and install Apache, PHP, and MySQL:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 -y
sudo apt-get install php5 libapache2-mod-php5 -y
sudo apt-get install mysql-server php5-mysql -y
Note: Keep track of the database names and passwords prompted during the MySQL installation.
2. Install and Configure phpMyAdmin
Install phpMyAdmin and select apache2 when prompted. Set dbconfig-common to yes.
To enable the phpMyAdmin interface, add it to your Apache configuration:
- Open the config file:
sudo nano /etc/apache2/apache2.conf - Add this line near the bottom:
Include /etc/phpmyadmin/apache.conf - Save (CTRL+X, then Y) and restart Apache:
/etc/init.d/apache2 restart
3. Deploy Public Files
Move the contents of the project's Web/ folder to your webroot (typically /var/www/ or /var/www/html):
cd /var/www/
sudo cp -r /home/pi/Footfall/Web/* .
Verify the deployment by visiting http://localhost/events.php (on the Pi) or http://<RaspberryPiIP>/events.php (from another computer).