r/PHPhelp • u/Ghoulitar • Dec 01 '25
Recommended Linux distro for PHP (Wordpress and Laravel) development?
This is for my local dev environment for learning, not a Production environment. Thanks.
4
Upvotes
18
u/HolyGonzo Dec 01 '25
The distro doesn't really matter that much. PHP runs on just about everything. Use whatever distro you are most comfortable with.
15
u/shadow-battle-crab Dec 01 '25
Use ubuntu, unless you have opinions on another one and why you should be using another one. Since you don't, ubuntu is the right choice.
10
u/CodenameJackal Dec 01 '25
Ubuntu or Debian. Ubuntu is the most commonly deployed server. Tons of current documentation, countless tutorials, inexpensive VPS boxes. If you run into a problem, more than likely it’s been solved by someone else or there’s a preexisting solution. It’s also trivial for PHP solutions.
4
u/queen-adreena Dec 01 '25
AlmaLinux is pretty common these days.
2
u/nickchomey Dec 01 '25
ubuntu + ddev
2
u/TheRealSectimus Dec 01 '25
Whatever you want really. PHP is pretty agnostic between linux distros, perhaps slight differences on installation (different distros using different package management solutions for ex.) - Stick with Ubuntu if you just want ease-of-use
But I would actually recommend a step beyond that actually, and learn docker! Start with learning how a
dockerfileworks and create your own linux container to run your PHP application. Once you are comfortable with the ins and outs of docker, givedocker-composea try to make your config more modifiable.1
u/successful-blogger Dec 01 '25
Or if you are feeling a bit more adventurous, ArchLinux + ddev/lando.
1
u/lapubell Dec 01 '25
I'd say anything Debian based. Ubuntu, Linux mint, pop os, whatever. I used to distro hop, but I'm too old to care anymore and my system 76 machine comes with pop preinstalled so that's what I use.
1
u/Neil_sm Dec 01 '25
If you’re using a local VM, look into Laravel Homestead. It’s a pre-built Ubuntu dev box with a php/lamp-like stack that makes it easy to get a site up and running, especially for laravel. Wordpress is usually a very simple install on it also if you want to run that.
1
u/waqaspuri Dec 01 '25
Ubuntu
1
u/lukeholder Dec 01 '25
For local development, dont care about the distro, just use containers, ala ddev.
1
u/arhimedosin Dec 01 '25
Use AlmaLinux in WSL https://docs.dotkernel.org/development/
1
u/FreeLogicGate Dec 01 '25 edited Dec 01 '25
Your typical OS choices for a workstation are OSX, Windows or Linux. What machine/OS are you most productive with? As long as you have a decently resourced machine, I'd suggest you do what most professional PHP developers are doing now, which is to use Docker. You can then add on something that wraps it for PHP. Since you mentioned both Wordpress and Laravel, I'd suggest you look at DDEV. DDEV is a cli package that lets you quickly create PHP project environments, and provides you all the relevant tools you might want or need. It has what they call "cms quickstarts" which are configurations for most of the major PHP frameworks and CMS projects (including Wordpress). You run a few commands and DDEV does all the work of building your docker containers and orchestrating them. You can specify the underlying components in the configuration matching the eventual production target environment. This is a far superior approach to arbitrarily picking a desktop distro and installing a web stack on it, when you're goal is to be able to experiment and work on multiple projects at the same time, using the native development tools and the productivity of the OS you are most familiar with. Docker also lets you run OS containers, if you want to experiment with something closer to a full VM.
1
u/[deleted] Dec 01 '25
Use docker official php images
1
u/Horror-Student-5990 Dec 01 '25
No idea why you'd need linux for PHP?
WP development can be done on all OSes, it only depends on which editor you want to use?
1
u/RetardoDK Dec 01 '25
For laravel, go with docker + sail. super easy, no deep problems that can take days to solve
1
u/activematrix99 Dec 02 '25
You just need Lando.
1
u/RevolutionaryHumor57 Dec 02 '25
Use docker
1
u/Prestigiouspite Dec 03 '25
Ubuntu Deaktop (my favorite) or Zorin OS. Would recommend just staying in the Debian world. There are most instructions for.
1
u/PunyFlash Dec 03 '25
Doesn't really matter, but arch has literally EVERYTHING that developer may need in aur