
Start developing with Laravel on Ubuntu 24.04 LTS
Ahnii! Ubuntu 24.04 LTS is a solid base for learning web development. The Laravel docs recommend PHP, Composer, and the Laravel installer on your machine. This post follows that official path first, then shows the DDEV option if you prefer a container-based stack. Prerequisites Ubuntu 24.04 LTS (desktop or server) For the official method: no PHP/Composer required yet — the install script adds them. For the DDEV method: Docker and Docker Compose . Official method: PHP, Composer, and Laravel installer The Laravel 12 installation guide uses php.new to install PHP 8.4, Composer, and the Laravel installer in one go. On Linux you run: /bin/bash -c " $( curl -fsSL https://php.new/install/linux/8.4 ) " Restart your terminal after it finishes. That gives you PHP, Composer, and the laravel CLI. You also need Node.js and npm (or Bun ) to build frontend assets; install them via your package manager if needed (e.g. sudo apt install nodejs npm on Ubuntu). Create the application Create a new Laravel
Continue reading on Dev.to Webdev
Opens in a new tab



