0

My client used Windows hosting. It seems to be giving a lot of trouble and I'm wondering if Windows hosting was a good option.

My research on the net lead me to this article that advises against it: http://www.theblogtip.com/linux-or-windows-hosting-for-wordpress/

1
  • Hello!, there no problem the windows hosting, this depends on your provider and support. I'm using linux but most of my WP clients has windows server. Commented Jul 17, 2020 at 2:16

2 Answers 2

2

This is a partially subjective question, so it may get closed on that basis. Answer given here may be somewhat subjective but tries to cover the main considerations.

Short Answer

The short answer is you'll definitely have a much easier life running Wordpress on Linux. This is simply due to many more people hosting Wordpress on Linux and the resulting huge amount of documentation, support and development effort that is purposely or just coincidentally specific to Linux. Linux will be much easier unless you have a lot more Windows server administration experience than Linux experience, or some other compelling reason such as you need to host a huge website and have free Windows hosting for some reason.

Long Anwer

This quesition is not inherent to Linux vs Windows, it's specific to where Wordpress and PHP are today and there are a few factors about why it's like this:

  1. Server software implemtations of PHP and MySQL are basically equal.
  2. Linux being free and dominance of Unix on the internet lead to there being more Linux hosting, which leads to more web apps being written which may purposely or accidentally favour Linux
  3. Available documentation, resources for support and problem solving reflect disproportionate use of Linux

Server Software

Without considering the application you're running, or if we considered a 'perfectly written' PHP and MySQL application, there should be little or no difference between Windows and Linux. PHP and MySQL are available for Windows and run PHP code and SQL databases exactly the same as on Linux, but the differences start when PHP or MySQL need to talk to the operating system. When it gets to this point the developer needs to make sure his code runs does the right thing in both cases.

Linux is free and open source software

Linux is FOSS and therefore web hosting companies have favoured it for providing web hosting. Linux (and Unix in general) took 'market share' as the server operating system for the Internet from the beginning, which means that applications of all types, including web applications written in PHP, get more exposure to that operating system.

A developer who has 90% of their users using PHP on Linux and 10% of their users using PHP on Windows may quite easily fail to check that operating-system calls in their code work as they expect on Windows. The less users some software has, and the less frequent specific OS users are, the less likely it is the developer will put effort into dealing with these less-common cases.

For Wordpress, this means Wordpress itself probably supports Windows well, but if you need a use a small or poorly written plugin you're at much greater risk of it failing on Windows because the developer is much more likely to have developed it on Linux.

Documentation, Support

This big difference in server marketshare and therefore use of operating systems on the web means that there's a similar distribution in the documentation and support. You'll find many more people dealing with Linux hosting issues than Windows, and therefore much more content, questions and answers, and documentation.

Again, this will be skewed according to the size of the project: bigger projects will have time and resource to support Windows, smaller projects quite probably won't.

1
  • The 'Windows System Administration' experience aspect is understated here. Everything from the error logging, to the permissions structuring and implementation is confusing as hell if you're not an experienced Windows Systems Admin. I've delved into this before, not by choice, and hearing Azure Systems Techies tell me they "don't know how/why" when I asked about getting verbose error logging for PHP was a harrowing realization that I was entirely on my own. :-( When the error message is just 'There was a PHP error.' and nothing more - you're constantly struggling to fix bugs. Commented Jul 16, 2020 at 18:45
0

I will only say that operating from the Linux, Apache, and MySQL command lines is a joy. I host about 50 websites, 12 of which areWordPress, and I can't imagine doing it without that level of access, especially when setting up GIT and LetsEncrypt.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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