3 ms·
For Windows folks, now that Window 10 WSL2 has been released, running Wordpress locally in something like Ubuntu seems like a better way to go. I find the draw
by mjrpes 6y ago
For Windows folks, now that Window 10 WSL2 has been released, running Wordpress locally in something like Ubuntu seems like a better way to go.
I find the drawbacks to WSL2 is that (1) there's no one-click GUI that will install Ubuntu + Wordpress; console commands are still required. It's still a virtual container, so network/file access isn't directly accessible like you get with XAMPP. There was an issue where webservers hosted inside WSL2 were not available on localhost, but that looks to be resolved and should hopefully be available to everyone soon: https://github.com/microsoft/WSL/issues/5298 https://github.com/microsoft/WSL/issues/5298
You could also install Docker inside WSL2 and run a WordPress image. However, wrapping your head around Docker poses its own challenges. Tutorials for Docker + Windows aren't really up to speed with WSL2 and troubleshooting often gives out-of-date advice. For instance PHPStorm Wordpress + Docker tutorials have files mounts from Windows into the container, which gives poor performance. However, I did have luck getting WordPress up and running on my local machine in Docker following this guide: https://www.singularaspect.com/phpstorm-using-xdebug-for-wordpress-development-in-docker/ https://www.singularaspect.com/phpstorm-using-xdebug-for-wor...