Deployment Guide

Complete deployment guide for MaxChurches

System Requirements

Ensure your server meets the following requirements before deployment.

Server Requirements
  • PHP 8.0 or higher
  • MySQL 5.7+ or MariaDB 10.2+
  • Apache 2.4+ or Nginx 1.18+
  • Composer 2.0+
  • Node.js 16+ (for assets)
PHP Extensions
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • GD PHP Extension
Recommended Specs
  • 2+ CPU Cores
  • 4GB+ RAM
  • 20GB+ Storage
  • SSL Certificate
Optional Services
  • SMTP Server
  • SMS Gateway
  • Payment Gateway
  • Cloud Storage

Database Setup

Setting up the database and running migrations.

Database Creation
  1. Create MySQL database
  2. Create database user
  3. Grant necessary permissions
  4. Update .env file
Database Setup
  • Run database migrations
  • Seed initial data
  • Verify database connection
File Storage Setup
  • Create storage links
  • Set proper permissions
  • Test file uploads
Performance Optimization
  • Cache configuration
  • Cache routes
  • Cache views

Security Setup

Configure security settings for production deployment.

File Permissions
  • Set storage folder permissions
  • Set cache folder permissions
  • Secure configuration files
  • Protect encryption keys
SSL Certificate
  • Install SSL certificate
  • Force HTTPS redirect
  • Set up auto-renewal
Firewall Rules
  • Allow HTTP (80)
  • Allow HTTPS (443)
  • Allow SSH (22)
  • Block other ports
Environment Security
  • Set APP_DEBUG=false
  • Use strong APP_KEY
  • Restrict file access
  • Hide sensitive files

Production Deployment

Deploying to production environment with best practices.

Web Server Configuration
  • Configure Apache or Nginx
  • Set up URL rewriting
  • Point to public directory
  • Test server configuration
PHP Configuration
  • Configure PHP-FPM
  • Set memory limits
  • Configure execution time
  • Enable security features
Queue Configuration
  1. Configure queue driver (Redis/Database)
  2. Set up queue worker
  3. Configure supervisor for queue
  4. Monitor queue status
Monitoring Setup
  • Application monitoring
  • Server monitoring
  • Error tracking
  • Uptime monitoring

Maintenance

Regular maintenance tasks and best practices.

Regular Tasks
  • Update dependencies
  • Clear old logs
  • Database optimization
  • Security updates
Backup Strategy
  • Daily database backups
  • Weekly file backups
  • Offsite storage
  • Test restore procedures

Troubleshooting

Common issues and solutions during deployment.

Common permission issues and solutions:

  • Set correct file permissions for storage and cache folders
  • Ensure web server has proper file ownership
  • Check configuration file permissions
  • Verify PHP can write to storage directories

Database connection problems:

  • Verify database credentials in configuration file
  • Check database server is running
  • Ensure database exists and user has permissions
  • Test database connection
  • Check firewall settings

Performance optimization tips:

  • Enable OPcache in PHP
  • Use Redis for caching and sessions
  • Optimize database queries
  • Enable gzip compression
  • Use CDN for static assets
Download Deployment Guide

Download this deployment guide as a PDF for offline reference.

Need Deployment Help?

Our technical team can assist with deployment and configuration.