Step 1: Install System Dependencies
Connect to your server via SSH and update the package list:
apt update && apt upgrade -yInstall the required system packages:
apt install -y nginx mysql-server supervisor \
php8.3-fpm php8.3-cli php8.3-mysql php8.3-mbstring \
php8.3-xml php8.3-bcmath php8.3-curl php8.3-zip php8.3-gd php8.3-intl \
git unzip curlInfo: These PHP extensions are required by Laravel and the application’s dependencies (image processing, HTTP requests, XML parsing, etc.).
Install Composer
# Download and install Composer from the official website
php -r "copy('getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composerInstall Node.js 22.x
# Download and install Node.js 22.x from NodeSource
apt install -y nodejs npmLast updated on