Skip to content

Instantly share code, notes, and snippets.

@rohankhudedev
Last active August 5, 2024 05:28
Show Gist options
  • Save rohankhudedev/dc5f76856319c442a177b54540c750d3 to your computer and use it in GitHub Desktop.
Save rohankhudedev/dc5f76856319c442a177b54540c750d3 to your computer and use it in GitHub Desktop.
Laravel Server Requirements

Hardware Recommendations

8GB RAM
4 Core Processor
100GB HDD
OS - Latest CentOS

Software Recommendations

  • Make sure your server meets the following requirements:
    Apache/Nginx Server
    PHP: 7.4 or >=8.0
    Composer
    IMAP
    Vim
    Git
    MySQL 8
    NPM(Node Package Manager)
    Nginx
  • Including default PHP extensions please ensure below PHP extension are installed and enabled
    BCMath PHP Extension
    Ctype PHP Extension
    Fileinfo PHP Extension
    JSON PHP Extension
    Mbstring PHP Extension
    OpenSSL PHP Extension
    PDO PHP Extension
    Tokenizer PHP Extension
    XML PHP Extension
    GD library PHP Extension
    Imagick library PHP Extension
    Opcache PHP Extension
    Internationalization extension (Intl)
  • Make sure to enable following modules of apache
    mod_rewrite
    expires
    headers
    Enable HTTP/2

Once Server is ready, we need to point the domain to {project_directory}/public. For instance, Suppose the project_directory is /var/www/html. Then the domain should be pointed to /var/www/html/public

FYI : The public directory contains the index.php file, which is the entry point for all requests entering our application and configures autoloading.

Please create 2 environments for development(say dev and stg) and share below details once server is ready

SSH access
Database and User access
Note: Please do not keep Apache/Nginx, MySQL, SSH on default ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment