To install Laravel 9x on your Ubuntu machine from scratch, you can follow these steps: Install PHP and other dependencies: sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php8.2 php8.2-cli php8.2-mbstring php8.2-xml php8.2-zip Exit fullscreen mode Install Composer: php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php composer-setup.php php -r "unlink('composer-setup.php');" sudo mv composer.phar /usr/local/bin/composer Exit fullscreen mode Install Laravel: composer global require laravel/installer Exit fullscreen mode Add the Composer global bin directory to your PATH: echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc source ~/.bashrc

Exit fullscreen mode Start the development server: cd myproject compose install php artisan serve
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners