Safa Bites - Restaurant Management System Installation Guide
Step-by-step instructions to deploy Safa Bites on a live web server for production use.
Overview
Safa Bites is a restaurant management system built to streamline order management, inventory control, and staff scheduling. This guide covers deploying the application to shared hosting (cPanel), VPS, or cloud providers like AWS or DigitalOcean.
Prerequisites
- Web Hosting with PHP 8.2.12 (or PHP 8.1 if you require Imagick for QR codes), MySQL 5.7+, and Apache or Nginx.
- Domain name pointing to your server.
- Source code ZIP (from CodeCanyon) with dependencies pre-installed.
- Database credentials (MySQL username/password).
- PHP Imagick (optional — required only for QR code generation).
Installation Steps
1. Prepare your hosting environment
- Log in to your hosting control panel (cPanel, Plesk, or VPS dashboard).
- Confirm PHP 8.2.12 is available. If your QR code feature needs Imagick and your host doesn't support Imagick on PHP 8.2, switch to PHP 8.1.
- Ensure MySQL is available and note SSH access if provided.
2. Upload the source code
- Unzip the Safa Bites ZIP locally.
- Upload extracted files to the public directory using FTP/SFTP or SSH.
- Example SSH copy command:
scp -r safabites user@server:/var/www/html/
- Verify the app is accessible at
https://yourrestaurant.comafter upload.
3. Set up the database
- Create a new MySQL database (e.g.
safabites_live). - Create a MySQL user and grant full privileges.
- Import the provided
safabites.sqlfile via phpMyAdmin.
4. Configure the application
APP_NAME=SafaBites
APP_ENV=production
APP_URL=https://yourrestaurant.com
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=safabites_live
DB_USERNAME=your_mysql_username
DB_PASSWORD=your_mysql_password
5. Configure Laravel Passport
php artisan passport:install
6. Test the application
- Visit
https://yourrestaurant.com/in a browser. - Log in with the default admin credentials or create a new admin.
QR Code Setup (Optional)
QR code features require the PHP Imagick extension and may require PHP 8.1 on some hosts.
- Switch to PHP 8.1 if Imagick not available on PHP 8.2.
- Request your host to enable
php_imagick. - Disable QR code features if not supported.
Admin Panel Configuration
- Go to
https://yourrestaurant.com/admin/auth/login. - Open Business Setup in the sidebar and configure:
- Business Settings
- Main Branch Setup
- Restaurant Availability
- Orders
- QR Code
Restaurant Panel Configuration
- Visit
https://yourrestaurant.com/restaurant/auth/login. - Configure:
- Business Settings
- Billing Information
- Membership Card Settings
- QR Code / QR Code AC
- KOT Settings
Troubleshooting
- Database connection errors: Check
.envDB settings. - App not loading: Verify correct public directory and DNS.
- Login issues: Ensure SQL import completed.
Tip: Use your host scheduler or terminal to run migrations, seeders, or
passport:install.