Hello everyone,
I have recently started working with Windows Server Core, which as you might know, doesn't have a graphical interface. I am trying to install PHP on this server, but I'm not sure how to proceed without the usual GUI-based installation process.
Could someone please guide me on how to install PHP on Windows Server Core? I would really appreciate it if you could provide step-by-step instructions or any relevant tips to help me through this process.
Thank you in advance for your assistance!

Certainly! I've dealt with a similar situation before, so I can share my experience on installing PHP on Windows Server Core.
Firstly, you'll need to obtain the PHP binaries for Windows that match your server's architecture from the PHP website. Once downloaded, follow these steps to get PHP up and running:
1. Extract the downloaded PHP files to a directory of your choice on the Windows Server Core. You can use tools like WinRAR or the built-in `Expand-Archive` PowerShell cmdlet to do this efficiently.
2. Open either Command Prompt or PowerShell on your server core. To access Command Prompt, press `Win + X` and select "Command Prompt". For PowerShell, select "Windows PowerShell" instead.
3. Navigate to the directory you extracted the PHP binaries to using the `cd` command. If, for instance, you extracted them to `C:\php`, you can navigate there by typing `cd C:\php`.
4. To configure PHP, create a `php.ini` file. Execute the following command to achieve this:
5. Open the newly created `php.ini` file with a text editor such as Notepad. Locate the line `;extension_dir = "ext"` and remove the semicolon at the beginning to uncomment it. Save and exit the file.
6. You can now test if PHP is installed correctly by running the command:
If PHP is successfully installed, you should see the version information displayed.
At this point, PHP should be installed on your Windows Server Core without a graphical interface. Remember, if you plan to use PHP with a web server like IIS, you'll need to configure it accordingly. Also, keep in mind that modifying the `php.ini` file may require a restart of any services or web servers utilizing PHP.
I hope this helps you with your PHP installation on Windows Server Core. Don't hesitate to reach out if you encounter any challenges during the process. Good luck!