|Years ago when I worked with PHP, it was called "LAMP", Linux, Apache, MySQL and PHP all running on a single Linux server. You could pick a Linux build, choose LAMP and it would just setup the whole server for you.
At the same period in time, to make a Windows Server that hosted a PHP web application, you had to install PHP on top of IIS web server, then program your PHP.ini file to customize it to your PHP app. Them add the PHP mime or extension to IIS and tell IIS how to process a PHP file. It was pretty straight forward.
One caveat however, it that is you development a PHP app in Linux, some functions will not work in Windows and vice versus. I personally would not waste money on a Windows server license to host a PHP website.
I suggest you use the link below and practice it a couple of times on a development machine and then your server.
How to Install PHP on Windows — SitePoint
I had to read the question again, and saw the xampp. Guess LAMP is outdated and has been replaced with XAMPP.
Sounds likes you just download the app, and it installs the whole framework for you, and then code to it. Works on Linux, Windows, MacOS. Just remember to choose your environment first before you code so everything works.
To deploy you app in production, you'll need to use a cloud service like Amazon. There must be a package and deployment helper in XAMPP that uploads your project for you.
Since you didn't mention what version of Windows and PHP your using, You'll have to figure that part out yourself.
Choose your environment first before you code.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
modified 7-Nov-19 15:51pm.