3

I was wondering what people who are developing on Windows 10 are using as webserver environment in 2018? I have had ok results previously using ampps, but I'm having a lot of problems with Craft 3.0 as of lately. With 500 internal server errors etc. Also, I'm developing on several PCs, syncing the projects with Git.

A friend of mine recommended Laravel Valet and homestead, but he's on Mac. And installation on Windows seems to be a lot trickier. I've tried Mamp too, but have really bad experience with that one.

  • I've used XAMPP for Craft 2; just trying to get Craft 3 up and running locally for the first time today, with no success yet. [insert shrug emoji here] – Sandwich Apr 18 '18 at 15:00
  • Not sure if this could eventually count as primary opinion based question => reason to close... however I use XAMPP. I never had any issues with installing Craft 2/3 or anything else. XAMPP for the win. I don't even know there are any issues at all while installing Craft – Robin Schambach Apr 18 '18 at 15:07
  • As a follow-up to the issues I had been encountering, they were due to running multiple PHP versions from one XAMPP install. PHP 5.6 (which XAMPP installed with) came with the proper Windows-formatted paths in php.ini, but when I added PHP 7.1 and 7.2 manually, I didn't change their paths accordingly. Windows needs the drive letter before the path; merely referencing the root via \ is insufficient, you need c:\ (or whatever drive letter is relevant). – Sandwich Apr 18 '18 at 16:45
  • FWIW, I do the majority of my Craft dev on Win10 using native IIS and standalone PHP, MySQL/PostgreSQL without issues. – Brad Bell Apr 18 '18 at 20:57
1

First of all, I am also a Mac user. But these should be available for Windows too.

Start reading about virtualization. So, you won't install the web server directly on your machine but on a virtual box installed on your machine.

A good starting point could be vagrant (which is becoming a bit antiquated more and more, but which is still worth a try since it's working like a charm).
What's getting more and more into many developers' focus is docker. Many of my customers have been introducing it in their developer teams the last years.

Hope that helps. It's a lot to read though…

1

Virtualization is a good idea. This way you can easily replicate your environment on different machines.

I would recommend using Docker as well. I personally use Laradock as development environment. But you could use other or build your own. Which I don't recommend for beginners.

So here is how to start: Install Docker, install Docker Compose, download Laradock, configure it and start MySQL and Nginx/Apache. PHP starts automatically.

Note: When you set up your DB connection in Craft's config remember it is not localhost but mysql. Because this is the name of the running MySQL container.

  • offtopic Hi there, I cannot not comment and must say "hello" to a fellow whose heart is beating for HRO, apparently. As a born Rostocker (living in Hamburg right now) I just have no choice. To make a long story short: Moin moin, Hanseat! :) – Arvid Jul 11 '18 at 14:00
  • Moin moin back! Tried to pm you but man, your contact is hard to find. To stay on topic, what kind of projects do you do with Craft, in a virtualized development environment of course :) – Johannes Jul 14 '18 at 12:04
  • Can't tell in detail due to NDAs with my customers. Mainly we use Craft to build usual websites, also for pretty big companies (as well as small ones, of course), then there are content hubs and websites for ad campaigns. Actually we build everything with Craft where the company needs an easy-to-use admin panel, multi-lang-support and not that much of individual development (which I personally prefer Symfony for). In single cases we use WordPress instead (only if explicitly requested for several reasons). … PM? Yeah, that's a missing feature on StackExchange, right? Try "arvid@" my website. – Arvid Jul 14 '18 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.