This document provides a step-by-step guide for deploying a PHP application that uses:
- PHP version: 8.2
- MySQL version: 8.2
- Redis for caching
- SMTP for email notifications
Before deploying the application, ensure the following software is installed on your server:
- PHP 8.2: Ensure PHP 8.2 is installed with required extensions ex (mysql, redis,..).
- MySQL 8.2: Install MySQL version 8.2 for database management.
- Redis: Install Redis for caching and session storage.
- Web Server: Apache or Nginx configured to serve PHP applications.
After clonong project from git you need to do the following:
composer install
go to config/env.php
'DB_HOST' => 'localhost:3306',
'DB_USER' => 'root',
'DB_PASS' => '',
go to config/env.php
'REDIS_HOST'=>'',
'REDIS_PORT'=>'',
'REDIS_PASSWORD'=>''
go to config/env.php
'MAIL_HOST' => '',
'MAIL_USERNAME' => '',
'MAIL_PASSWORD' => '',
'MAIL_PORT' => 465,
'MAIL_ENCRYPTION' => 'ssl',
go to config/env.php
'RATE_LIMIT' => 5,
'TIME_FRAME_IN_SECONDS' => 60,
'throttle' => [
'create' => [
'count' => 10,
'time_frame' => 30
],
'update' => [
'count' => 5,
'time_frame' => 60
],
'delete' => [
'count' => 3,
'time_frame' => 60
]
],
php database/CreateTables.php
php database/seed.php