Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lse123's avatar

How to run Alma Linux in Laravel-Homestead instead of default Ubuntu…?

I am a Laravel 10.x programmer How to run Alma Linux in Laravel-Homestead instead of default Ubuntu…?

My favorite Testing environment is Laravel-Homestead/Vagrant, but the default Linux is Ubuntu 20.04.5 LTS x86_64 I proceeded to create Alma Linux instead, Laravel-Homestead/Vagrant but again created Ubuntu VM… well???

try-1 Vagrantfile

Vagrant.configure("2") do |config| config.vm.box = "almalinux/8" end run vagrant up # creates Ubuntu… instance

try-2 vagrant init almalinux/8 # getting error

PS C:\Users\abc123\Documents\Homestead-AlmaLinux2> vagrant init almalinux/8 Vagrantfile already exists in this directory. Remove it before running vagrant init. PS C:\Users\abc123\Documents\Homestead-AlmaLinux2>

0 likes
5 replies
lse123's avatar

@Tray2 so, you mean, that Homestead/Vagrant, are Ubuntu and that can Not change to other Linux distribution? Correct? If wanted AlmaLinux 8.x, that's is my live VPS LAMP Web Server, then go with Docker way to Laravel 10.x Web development? Correct?

Tray2's avatar

@lse123 Basically yes

https://laravel.com/docs/10.x/homestead

There might be some inofficial images out there that runs what you want.

The thing is that it really doesn't matter if you run Ubuntu, Alma, CentOS, or whatever linux distribution, they are more or less the same. The main differences is the location of the config files and the command to run the package manager.

Please or to participate in this conversation.