Discover how to set up PHP Manager on Windows 10/11 with IIS. Our IIS Support team is ready to assist.
Set Up PHP Manager on Windows Server with IIS
If managing PHP on a Windows Server environment is complicated, you have come to the right place.
With PHP Manager, administrators can easily install, configure, and manage PHP directly from within the Internet Information Services (IIS) Manager interface. This tool simplifies tasks like registering PHP versions, tweaking PHP settings, and enabling extensions.
Today, we will explore the step-by-step process to set up PHP Manager on a Windows Server using IIS.
An Overview:
Prerequisites
Before we begin, we need:
- A Windows Server or Windows Desktop
- IIS (Internet Information Services) installed
- Administrator privileges
Step 1. Install IIS on Windows Server
The easiest way to install IIS and related components is via the Web Platform Installer (Web PI). This ensures we are using the latest stable versions.
First, download and open Microsoft Web Platform Installer. Then, search for “IIS” and install the required components with a few clicks.
Alternatively, we can manually install it with these steps:
- Open Server Manager on your Windows machine.
- Then, click on Add Roles and Features.
- Select Role-based or feature-based installation and click Next.
- Scroll through the list of roles and select Web Server (IIS).
- Click Next and confirm the installation.
- Once installed, verify IIS by visiting your server’s public IP in a web browser.
Experiencing issues like sxs_assembly_missing during setup? Here’s how to fix it: IIS error_sxs_assembly_missing
Step 2. Install PHP Manager
- Download PHP Manager for IIS from the Microsoft portal.
- Then, run the `.msi` setup file and complete the installation.
Follow these steps to verify PHP installation:
- Open Notepad as Administrator.
- Enter the following code:
<?php phpinfo(); ?>
Copy Code - Save the file as `Phpinfo.php` in `C:\inetpub\wwwroot\`.
- Open the browser and go to http://localhost/phpinfo.php .
We will see a well-formatted page displaying the current PHP configuration.
Step 3. Install PHP and CGI Components
- Launch Microsoft Web Platform Installer from the Start menu.
- Search for `IIS CGI` and click Add next to IIS: CGI.
- In the search bar, type `PHP 7.4` and select PHP 7.4 (x86).
- Click Install to complete the installation.
If PHP causes high CPU usage after setup, troubleshoot it using this PHP-CGI.exe high CPU usage guide.
Step 4. Configure PHP Manager in IIS
- Open IIS Manager from the Start Menu under Windows Administrative Tools.
- In the Connections panel, click the Server Name.
- Under the IIS section, double-click PHP Manager.
From here, we can:
- View the installed PHP version.
- Click Check phpinfo() to confirm the configuration.
- Register new PHP versions using Register new PHP version.
- Configure settings in the PHP Settings section.
- Manage extensions in the PHP Extensions section.
Step 5. Create a PHP Info Page
- Open Notepad as Administrator.
- Paste the following code:
<?php echo "PHP is successfully installed on this Windows Server "; echo "Below is the current installed PHP version and Information: "; phpinfo(); ?>
Copy Code - Save the file as `test.php` in `C:\inetpub\wwwroot\`.
- Open a web browser and navigate to http://your-windows-server-ip/test.php
Running into a PHP 500 Internal Server Error on IIS? Learn how to fix it here.
We will see a confirmation message and the PHP configuration info.
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
With PHP Manager, managing PHP on IIS is easy and efficient.
In short, our Support Engineers demonstrated how to set up PHP Manager on Windows 10/11 with IIS.
0 Comments