News for hackers. Stuff that matters.
Re:Microsoft Support of PHP on Windows by me551ah on Friday July 10, 2020 @02:08AM (#23788637)
Do people really use Windows as a production server for PHP? Most people I know use Windows as a dev machine, which I guess will still be supported.
Re:Microsoft Support of PHP on Windows by ashkante on Friday July 10, 2020 @02:59AM (#23788929)
Yes. In my experience, it usually comes down to "Our Windows admins don't know Linux, so it'll be easier for them to manage a server if it's running Windows!"

Except they never do, because they don't know PHP on Windows either and are afraid of breaking things, and the customer ends up with a PHP/Wordpress installation that is 4 years out of date. Luckily, most of those are internal-only apps, but it still sucks.

Re:Microsoft Support of PHP on Windows by linker3000 on Friday July 10, 2020 @03:23AM (#23789042)
This is very accurate.

Where I used to work, we developed and supported a SaaS app based on PHP with PostgreSQL and Apache. We had two self-hosting customers who ran on Windows Server with SQL Server for the exact reasons mentioned, and they were our most troublesome customers. Performance tuning (and hence regular complaints that 'our' app was horribly slow) was a particular issue - mostly due to their admins' lack of relevant experience on both the stack...and Windows Server(!). The whole setup was a pain because we got so much flak, despite the premise of 'self-hosting' being that the customer had sufficient smarts to support the infrastructure and stack and we'd just support the functional and development aspects of the app.

One customer also had the system so locked down that for remote admin we had to connect to a jump box via VPN + RDP and then jump from that to the server with another RDP connection. Fetching large log files through that setup was a challenge.

Partly for our sanity, we persuaded one customer to let us migrate them to a Linux server; that went very well and really cut down on angst all round even though we then took responsibility for platform support.

Re:Microsoft Support of PHP on Windows by nemacol on Friday July 10, 2020 @08:18AM (#23790733)
I don't blame the customer in these cases. The product shouldn't have been sold, or at least not sold with support, if the consumer was going deviate from build specs.

In my limited experience, this is the sales team saying 'anything' to get the sale.

Re:Microsoft Support of PHP on Windows by solarengineer on Friday July 10, 2020 @04:39AM (#23789423)
Perhaps this is where "appliance VMs " could be of use.
Re:Microsoft Support of PHP on Windows by robertlagrant on Friday July 10, 2020 @06:23AM (#23789949)
Or "containers".
Re:Microsoft Support of PHP on Windows by bufferoverflow on Friday July 10, 2020 @07:08AM (#23790280)
I've never seen a windows server in production used to run PHP, and I've been doing PHP dev for a long time.
Re:Microsoft Support of PHP on Windows by tluyben2 on Friday July 10, 2020 @07:25AM (#23790379)
Same here. I have been using PHP since it was publicly available after having used Perl for years (and even having written my own 'php' in perl before php; I did not know at the time that php was basically the same thing; a bunch of $source ~= s/(.)<\?(.)\?>(.*)/print $1;eval($2);print $1/isgm; kind of expressions) cgi-bin and even in heavy Windows shops end of the 90s, I have never seen it hosted on Windows.
Re:Microsoft Support of PHP on Windows by DonnyV on Friday July 10, 2020 @10:37AM (#23791856)
I guess you have never worked for consultants that have government clients..lol.
Re:Microsoft Support of PHP on Windows by input_sh on Friday July 10, 2020 @02:17AM (#23788696)
I once seen a production server running a WordPress site on Windows.

The logic behind it was that the client had some other websites running on some .NET CMS (not .NET Core), so it made sense for them to run WordPress on the same one instead of getting another one.

Re:Microsoft Support of PHP on Windows by AdrianB1 on Friday July 10, 2020 @09:46AM (#23791407)
Why not?

Manufacturing Execution Systems run on Windows; when virtually all your servers are Windows because of the apps you need to run, setting up a few Linux servers for minor apps for internal use only is not worth, so PHP in fast-CGI more under IIS is a very simple and effective solution.

Having support people with good expertise on both Windows and Linux is expensive, having 2 separate teams in expensive (if you need high uptime), especially when the ratio Windows to Linux is just 10:1 or 20:1. Keep it simple, run PHP on Windows.

EDIT: I forgot to mention the pseudo-SSO called Windows Integrated Authentication that works with just a few clicks on Windows, probably a lot more key presses (typing) in Linux.

Re:Microsoft Support of PHP on Windows by kkwtfeliz on Friday July 10, 2020 @03:57AM (#23789211)
I have experience with using PHP on a Windows server, both with Apache and IIS.

With Apache, it's an unstable mess. IIS on the other hand works extremely well with PHP, we've had virtually 0 issues in more than 10 years using it for many different projects.

Re:Microsoft Support of PHP on Windows by encom on Friday July 10, 2020 @06:51AM (#23790145)
My experiences are the polar opposite of yours, but you shouldn't be downvoted for being wrong. :)
Re:Microsoft Support of PHP on Windows by giancarlostoro on Friday July 10, 2020 @07:59AM (#23790606)
I dont think he is entirely wrong I had similar experience except in my case whether I used IIS or Apache with PHP didnt matter as much with my particular apps.

IIS is fine if it works just like Windows apps generally are fine when they work its the odd time where it breaks that you are mystified about the whole thing.

Re:Microsoft Support of PHP on Windows by g8oz on Friday July 10, 2020 @09:17AM (#23791149)
>>With Apache, it's an unstable mess

I've found it to be pretty good using FastCGI.

Re:Microsoft Support of PHP on Windows by vbgamer45 on Friday July 10, 2020 @12:51PM (#23793485)
Me as well I use the builds on apachelounge.com Just have make you tweak the config files.
Re:Microsoft Support of PHP on Windows by ocdtrekkie on Friday July 10, 2020 @10:48AM (#23791982)
If I had to run a PHP app at work today, it'd be on Windows. Why? Because no one app justifies the amount of additional maintenance overhead of supporting an additional operating system. If your entire IT workflow is built on Windows, it's really the only sane choice.

And no, it probably wouldn't be WSL, it'd be using this. Because not everyone I work with is comfortable with Linux tooling and who knows if our management tools can see what's going on with it.

Re:Microsoft Support of PHP on Windows by mtnGoat on Friday July 10, 2020 @11:44AM (#23792704)
The sane or lazy choice? Right tool, right job; would be the right choice.
Re:Microsoft Support of PHP on Windows by ocdtrekkie on Friday July 10, 2020 @11:51AM (#23792785)
Wrong. When you have dozens of systems to manage that can all have security vulnerabilities, the less burden involved in keeping everything up to date and secure. Uniqueness breeds unique and unforeseen problems. (The modern way to describe this is to make servers like cattle, not pets.)

In a Windows environment, the best tool for the job is almost always another Windows box. Arguably, sure, PHP is a poor choice for a Windows environment, but IT/operations rarely has the luxury of deciding what line of business apps other departments use.

Re:Microsoft Support of PHP on Windows by mtnGoat on Saturday July 11, 2020 @04:18PM (#23805540)
thats certainly one point of view. i would still call it lazy though.
Re:Microsoft Support of PHP on Windows by vbgamer45 on Friday July 10, 2020 @12:50PM (#23793471)
I do for several large projects. But, I do not run IIS. Use Apache instead. I have webservers running windows server, and databases servers on centos.

Main reasons familiarity started as a windows application developer, the gui in my case window explorer feels easier for the tasks that I need do.

I have setup webservers on linux as well, Just I work faster in windows can fix things easier then having to google with linux when things go wrong. I prefer the windows file permissions

Re:Microsoft Support of PHP on Windows by MH15 on Friday July 10, 2020 @09:15AM (#23791135)
Where I intern, we do development on Windows machines with WAMP, but of course everything is served from Linux instances in the cloud.
Re:Microsoft Support of PHP on Windows by siliconapex on Friday July 10, 2020 @02:12AM (#23788667)
I always run it in a virtual machine when I'm developing on Windows or OS X.
Re:Microsoft Support of PHP on Windows by dx034 on Friday July 10, 2020 @03:11AM (#23788980)
Shouldn't WSL do the trick? Especially with WSL2 I found no need to use a dedicated virtual machine to use Linux applications in Windows.
Re:Microsoft Support of PHP on Windows by shakna on Friday July 10, 2020 @03:51AM (#23789171)
WSL2 _is_ a dedicated virtual machine for Linux on Windows. It runs under Hyper-V.
Re:Microsoft Support of PHP on Windows by Already__Taken on Friday July 10, 2020 @07:17AM (#23790320)
That was wsl1, wsl2 is much tighter integrated than just thinking of it as a VM running in hyper V.
Re:Microsoft Support of PHP on Windows by ygra on Friday July 10, 2020 @07:35AM (#23790452)
WSL 1 was not a virtual machine. It was a re-implementation of the Linux kernel API within the Windows kernel. As such, it's probably more comparable to CoLinux (if that's still a thing).
Re:Microsoft Support of PHP on Windows by jawngee on Friday July 10, 2020 @06:59AM (#23790205)
It's not really about running linux applications as much as running your application in the same or similar environment to what you are ultimately deploying on.
Re:Microsoft Support of PHP on Windows by siliconapex on Friday July 10, 2020 @05:58PM (#23797029)
Exactly, I could run in WSL but I run in Docker or VirtualBox to emulate the production environment.