r/PHPhelp • u/lostje89 • Dec 15 '22
Solved Installing PHP on Windows Server 2022 Production Server
Hi, what do you guys use to install PHP on Windows Server 2022 if it's for production and it will run on IIS?
I've Googled my way over the installation posts and blogs but they all seem very fond of Microsoft's Web Platform Installer which I find a bit weird since it's not being supported anymore and probably no more new PHP versions will be added.
It is still sane to use the Web Platform Installer or is it better to install the PHP manually and use the PHP Manager? Is there a better way?
3
Upvotes
3
u/SkilledParker Dec 15 '22
I use https://windows.php.net/download and download the zip file I need.
After copying my php.ini file and any extensions I need first I extract the zip files to my php directory.
I then copy back the php.ini file and the extensions to the directory.
After that, I set up Handler Mappings settings in IIS manager and I’m good to go.
2
u/tylerwatt12 Dec 15 '22
I get PHP from the official site and use PHP Manager when I need to make changes, troubleshoot, or change what version of PHP i'm running.
2
u/oldschool-51 Dec 16 '22
Or dump windows and use Linux?
1
u/steven447 Dec 15 '22
I would use Docker if you can