DEV Community

Discussion on: How to setup dev PHP/MariaDB (MySQL) environment on Windows

Collapse
 
xwero profile image
david duymelinck

You are right that you don't need wamp, but it helps you set up your development environment very easy.
I'm doing a lot of different projects and setting up localhosts is much easier than running a php process in every folder with different ports.

About wamp being not able to run the last version of php, that is just plain wrong. sourceforge.net/projects/wampserve... Last version is php 8.0.6, which is released on the sixth of may.

I do agree with you that a developer should take time to learn how to set up a server just to get to know what are al the parts involved getting a website running.
After you done that exercise a few times use the tool that lets you focus on the part of making a website that you really want to dive into.

Collapse
 
nek_dev profile image
Maxime Veber

My bad the wall website was not up to date ! :)

For the rest, it seems really quite easier to me to avoid running multiple projects with the setup I suggest.

Besides there may be an issue: you can't install many versions of PHP with chocolatey. At this state of things I'd recommend to use wsl and docker.

Collapse
 
xwero profile image
david duymelinck

You don't have to install php versions through chocolatey. Wamp provides them as addons.

It is good to have the same environment than the server, which is what docker is good at. But then you will have to learn everything about virtualisation too to avoid all the pitfalls.

With wsl you have to manage a separate OS, it is docker without the virtualisation. Another OS can be a big step for some people.

If you don't like wamp, that is fine. It would be nice to keep to the facts, the maintainers work hard to provide us with a easy configurable package and as up to date options as possible.

Thread Thread
 
nek_dev profile image
Maxime Veber

Wsl is great, but that's not what it is about here. It's standard windows stuff, but as you do not use the lamp package on Linux... I suggest to not do it on windows as well :).