How to Completely Manage Your Restaurant With a Raspberry Pi
The restaurant industry is notoriously brutal—especially for small operators. In addition to the usual business of cooking and serving food, managing staff, and keeping the health inspector at bay, you also have to compete with venues that offer sophisticated online ordering and reservation systems.
TastyIgniter is an easy-to-use, all-in-one, self-hosted server app for restaurants, which can showcase your menu, take payments, book tables, and help you manage both staff and online orders. Here’s how to install it on Raspberry Pi.
How to Install TastyIgniter on Raspberry Pi
Before you get started, you should follow our essential guide on how to set up a Raspberry Pi as a web server.
TastyIgniter requires a PHP version of 8 or above. To install PHP 8.2 on Raspberry Pi, add the GPG key, then the PHP repository:
sudo wget -qO /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
Update your packages index, then install PHP 8.2 as an Apache module:
sudo apt update
sudo apt install php8.2 libapache2-mod-php8.2
You’ll also need to integrate PHP 8.2 with MariaDB, and add some extensions:
sudo apt install php8.2-mysql php8.2-curl php8.2-openssl php8.2-dom php8.2-gd php8.2-zip
Additionally, you’ll need to enable the rewrite Apache mod:
sudo a2enmod rewrite
The installation comes with a .htaccess file, but by default, Apache will ignore it. Use the nano text editor to edit your Apache configuration file to change this:
sudo nano /etc/apache2/apache2.conf
Look for a section which begins:
<Directory /var/www/>
…and change AllowOverride None to AllowOverride All.
Save and exit nano with Ctrl + O then Ctrl + X. Restart Apache with:
sudo service apache2 restart
Composer will be used to install any additional dependencies. Install composer with:
wget -O composer-setup.php https://getcomposer.org/installer && sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Use the wget tool to download the TastyIgniter setup wizard zip:
wget https://github.com/tastyigniter/setup/archive/master.zip
Extract it with:
unzip master.zip
Now move the contents of the archive to a directory created by Apache:
sudo mv setup-master/* /var/www/html/
Transfer ownership of the directory and its contents to the Apache user:
sudo chown -R www-data:www-data /var/www/html/
TastyIgniter requires a database to function, so enter MariaDB:
sudo mariadb
Create a new user called tastyigniter, a new database called tastyigniter, then allow the tastyigniter user to use the tastyigniter database. Press Enter after each line.
CREATE DATABASE tastyigniter;
CREATE USER tastyigniter IDENTIFIED BY 'topsecretpassword';
GRANT USAGE ON *.* TO tastyigniter@localhost IDENTIFIED BY 'topsecretpassword';
GRANT ALL privileges ON tastyigniter.* TO tastyigniter@localhost;
FLUSH PRIVILEGES;
quit;
Read More: How to Completely Manage Your Restaurant With a Raspberry Pi – MakeUseOf