PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

laravel deployement

Solved
technoviers47

May 24th, 2023 05:05 AM

Hi there, i just created a droplet in laravel 10 but my project laravel version is 8, that's why facing some issue while updating composer is there any solution how my droplet laravel version can down to version 8.

bobbyiliev

May 24th, 2023 09:41 AM

Best Answer

Hi there,

What you could do is to downgrade your PHP version, as the Laravel 1-Click Droplet comes with PHP 8.2.

For example, if your app uses PHP 8.0, you could run the following:

PHP="8.0"
sudo apt-get install -y php$PHP-cli php$PHP-common php$PHP-mysql php$PHP-gd php$PHP-mysql php$PHP-curl php$PHP-mbstring php$PHP-xml php$PHP-zip php$PHP-fpm

Then update your Nginx server block at /etc/nginx/sites-enabled/laravel and change the PHP-FPM version from 8.2 to 8.0 and then restart Nginx.

Let me know how it goes!