Live data from Hacker News

Ask HN: What's your PHP development environment setup?

news.ycombinator.com

11–14 of 14 posts

Re: Ask HN: What's your PHP development environment setup?

#11
Don't do weird setup on Windows or Mac locally.

Just get a native Linux through virtualization like VirtualBox or VMware or WSL (maybe wait for WSL2) and run Ubuntu in it. You'll find it makes sense when you want to deploy stuff on the cloud on Ubuntu with mostly identical environment.

Re: Ask HN: What's your PHP development environment setup?

#14
You can use docker, so the OS doesn't matter and you don't need to install a webserver, php, mysql and other things on your main system. Even if you use Ubuntu as your main system it's good idea to use docker for you local environment.

If you need a starting point I have a example on GitHub that may help you: https://github.com/bhdzllr/localhost/tree/master/docker-lemp

It's a LEMP stack. You need to change the volumes in the "docker-compose.yaml" to match to your system and adapt and copy the "nginx/default.conf" into the volume path of nginx. The "nginx/default.conf" has some examples which you may delete.

Post reply on HN