Ways to install Laravel 8.0 on Ubuntu / Pop!_OS

Jayden Chua
9 min readJul 8, 2021

After trying out all the different ways to install Laravel on macOS, I decided to try my hands on Ubuntu, well specifically Pop!_OS 21.04. But mostly this should work for Ubuntu 18.04+. Finally, I also tested the same process on Windows 11 as well.

So recently I had some spare time to set up my spare laptop with Pop!_OS 21.04, before I proceed, I must say the experience was a real joy. I’ve been loving Pop!_OS since switching over from ElementaryOS. I think Pop!_OS has been my daily Linux work machine now.

So, again, we’ll try to approach this problem with the 4 ways of installing, let’s see how far we can go and how similar our setup can be on macOS.

  1. Localhost, all services served by the host machine.
  2. Valet (Kinda)
  3. Homestead
  4. Sail

Localhost

PHP

Firstly I tried to use phpbrew to manage the different PHP versions, but along the way, I found out that maybe it’s not the best approach because I found myself in some weird edge cases where some programs when trying to use composer isn’t seeing the same PHP runtime.

Here’s how I installed my PHP version on Ubuntu. I used Ondřej Surý’s repository. This allows me to install different…

--

--

Jayden Chua

An avid web developer constantly looking for new web technologies to dabble in, more information can be found on bit.ly/jayden-chua