Skip to content

Digital Ocean Setup

Ryan Haudenschilt edited this page Aug 26, 2022 · 27 revisions
  1. Create a new droplet

  2. SSH into new droplet as root ?

  3. Create a new user with superuser

    1. adduser XXX
    2. usermod -aG sudo XXX
  4. SSH into droplet as XXX user

  5. Install the LEMP stack ? ?

    1. sudo apt install nginx
    2. sudo apt install php8.1-fpm php-mysql
    3. sudo apt install php-mbstring php-xml php-bcmath php-curl
    4. Install composer ?
    5. Install nodejs ?
  6. Setup the laravel project

    1. cd /var/www/html
    2. sudo git clone GIT_REPO_URL
    3. composer install
  7. Configure Nginx to work with laravel

    1. Copy the Nginx config from laravel's site to /etc/nginx/sites-available/default
    2. Change server_name to your domain or localhost
    3. change root to /var/www/html/GIT_REPO_URL/public
    4. Make sure the php version matches what was installed above
    5. sudo systemctl reload nginx

Home

Contribute

User Documentation

Clone this wiki locally