The Wayback Machine - https://web.archive.org/web/20241008222035/https://www.geeksforgeeks.org/how-to-install-php-fpm-in-windows/
Open In App

How to Install php-fpm in Windows?

Last Updated : 25 Jul, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

PHP-FPM stands for PHP FastCGI Process Manager. This is a strong and effective PHP FastCGI setup designed for managing operations on sites with high traffic. Setting up the php-fpm in Windows might seem tough, but with the right instructions, it’s achievable without any problems. This manual will guide you through the complete installation process, covering essential PHP concepts, various installation techniques, and how to confirm the installation’s success. Let’s begin without delay.

Key Terminologies

  1. PHP: It is one of the most popular general-purpose scripting languages that is mostly suited to web development.
  2. PHP-FPM: PHP FastCGI Process Manager is a daemon to manage server-based applications using FastCGI.
  3. FastCGI: This is, however, a simple protocol for interfacing the interactive programs with a web server.
  4. Windows: This is just an associated group of various proprietary graphical operating systems developed, marketed, and sold by Microsoft.

Step-by-Step Installation Guide

Method 1: Using Windows Subsystem for Linux (WSL)

Step 1: The first step is enabling WSL on your local machine with Windows; this can be done by navigating to Control Panel, then Programs, and after that Turning Windows features on or off.

Step 2: Then, you can set up any of your favourite Linux distributions from the Microsoft Store. Mostly, it is recommended to go with Ubuntu.

Screenshot_2024_0505_160145
Linux distribution

Step 3: Now open the Linux terminal and then update the package list with this command:

sudo apt update
Screenshot_2024_0505_161457
Update packages

Step 4: Then head to install php-fpm with following command:

sudo apt install php7.4-fpm
Screenshot_2024_0505_161105
Install php-fpm command

Step 5: After the steps up, we need to make sure whether the installation takes place by verifying the installation with this command:

sudo systemctl status php7.4-fpm
Screenshot_2024_0505_162955
Verification of php fpm

Method 2: By Using XAMPP

Step 1: First go to the following website and download and install XAMPP from [apachefriends.org](https://www.apachefriends.org/)

Screenshot_2024_0505_164020
download xampp

Step 2: Then launch the XAMPP Control Panel and start Apache within it and verify that it is running up properly.

Screenshot_2024_0505_164204
Xampp panal

Step 3: Now download the PHP-FPM binary from this resource [windows.php.net/downloads/pecl/releases/php_fpm/](https://windows.php.net/downloads/pecl/releases/php_fpm/).

Screenshot_2024_0505_163639
Php fpm binary

Step 4: After that you need to extract the contents of the downloaded file to the PHP directory in your XAMPP installation which we installed and run previously

Screenshot_2024_0505_164852
Binary extracted and put in xampp folder

Step 5: Configure PHP-FPM by editing php.ini and uncommenting the cgi-fix_pathinfo.

Screenshot_2024_0505_172315

Step 6: After that, start the PHP-FPM by creating the .bat file and double-click on it to run.

Screenshot_2024_0505_172737

After that it will open in the browser.

Installation Verification

To verify the installation, one needs just to open a terminal or command prompt and enter php-fpm -v. If php-fpm is installed correctly, the version information will be printed and displayed on the terminal.

Screenshot_2024_0505_162955
Verification

I hope that, with this comprehensive guide, it will be much easier for you to go through these two different installations. Good luck with your setup with WSL or XAMPP for your php-fpm configuration.

Conclusion

Installing php-fpm on Windows is an effective and efficient way of managing PHP applications. By merely following this easy guide, you will be up and running with php-fpm using either the Windows Subsystem for Linux or XAMPP itself. After the installation, do not forget to verify the installation to ensure everything is set up correctly.



Previous Article
Next Article

Similar Reads

Difference Between Windows 11 and Windows 10
In this article, we are going to discuss the difference between Windows 11 and Windows 10. Windows 10 Windows 10 is the last generation of Windows which was launched on July 15, 2015, after the Windows 8.1 version. Windows 10 introduced a completely new browser by Microsoft called Microsoft Edge. Windows 10 was mainly designed by also keeping in mi
6 min read
Keyboard Shortcuts that Works on Both Windows 11 & Windows 10
Windows 11 may be the latest and greatest operating system from Microsoft, but that doesn't mean Windows 10 users have to miss out on all the fun. In fact, many of the keyboard shortcuts that work on Windows 11 also work on Windows 10, making it easy to switch between the two operating systems without missing a beat. The article discusses some of t
2 min read
How to Upgrade From Windows 10 to Windows 11 For Free?
Windows 11 is a very popular operating system by Microsoft. Windows 11 is free for Windows 10 PC that meet some minimum hardware requirements. There is no need to spend money on a brand-new computer when you can upgrade to Windows 11 for free. Besides this, Microsoft officially announced that existing PCs (original versions) will be offered to upgr
5 min read
How to Open Windows PowerShell as an Admin in Windows 11?
Windows Powershell is a powerful command-line shell and scripting language devised for administrators and professionals. PowerShell with administrative privileges in Windows 11 makes it possible to carry out tasks with superior permissions. This article will discuss several ways of opening Windows PowerShell as admin. What is Windows PowerShell?The
4 min read
How To Upgrade Windows Home to Windows Pro?
Upgrading from Windows Home to Windows Pro can unlock a host of advanced features designed for business environments, such as BitLocker encryption, Remote Desktop, and the ability to join a domain or Azure Active Directory. In this article, We'll show how you can upgrade your Windows Home system to Windows Pro edition. Why Should You Upgrade Window
5 min read
How to Upgrade from Windows 7 or 8 to Windows 10 for Free
Microsoft released Windows 10 in July 2015 and offered a free upgrade to the users of existing computers running Windows 7, 8, and 8.1. People can get the multi-device app. Nevertheless, the entitlement to the free update can come after the users have a copy of Windows 7, 8, or 8.1 installed on their computer and if they have a product key. If you'
4 min read
How to Use Windows Recovery Options in Windows 11?
Windows 11 may encounter unexpected problems, such as not functioning properly after a new update or unable to boot successfully. To address these issues, consider using the recovery options in Windows 11, which include resetting your PC, uninstalling updates, Startup Repair, system restore, and going back to your previous version. In this article,
6 min read
How to Fix "Windows Cannot Access the Specified Device" Error in Windows?
When users are unable to access a file, folder or external device, the "Windows Cannot Access the Specified Device" error can occur. This may happen as a result of permission issues, corrupted system files or hardware problems. Users may not be able to open or make changes to files; access their external drives, or use specific devices attached to
6 min read
How to Use Windows Security in Windows 11?
Windows security which was formerly known as the Windows Defender is an inbuilt application that is present in Windows 11. It provides a variety of features to the users to protect them from various threats. In this article you will learn about the various features of Windows 11 and also how to use them. Features of Windows SecurityFollowing are th
5 min read
How to Restore Windows Photo Viewer in Windows 10?
After the launch of Windows 10, numerous individuals observed that the traditional Windows Photo Viewer was swapped out for the updated Photos application. Although the Photos application provides various functionalities, several users favour the straightforwardness and swiftness of the initial Windows Photo Viewer. Luckily, it's achievable to rein
4 min read
10 Best Windows Themes: Transform Your Windows Desktop Quickly!
Looking to give your Windows desktop a fresh and exciting look? Whether you're using Windows 10 or Windows 11, themes are a great way to transform your interface with new backgrounds, colour schemes, and icons. From minimalist designs to vibrant visuals, there are plenty of amazing themes to choose from. In this guide, we’ve handpicked the 10 best
10 min read
How to Install Turbo C++ in Windows?
Turbo C++ is a single language compiler and integrated development environment for C++. It is free of charge and can be downloaded from any website. The first release of Turbo C++ was released in May 1990 version 1.0, running on MS-DOS computers. Features of Turbo C++ latest version:Complete IDE bundleImproved soundnessMake, adjust, or test DOS app
2 min read
Install Windows Subsystem for Linux (WSL)
The Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux environment on Windows, without the overhead of a traditional virtual machine or dual boot setup. This incorporates Linux-like functionality on Windows OS without the overhead of running another OS in parallel, therefore, reducing resource consumption. This makes WSL a go-to choi
4 min read
How to Install Chocolatey Package Manager on Windows?
Chocolatey is a package manager for Windows that gives you a command-line approach to install, update, and remove software. It makes managing software on a Windows PC easy and saves you time and effort. In this article, we will show you how to install the Chocolatey package manager on Windows 11. Prerequisites to Install Chocolatey Package ManagerW
3 min read
How to Install and Fix Bluetooth Drivers in Windows 10?
Drivers are the essential elements of computers that help to make connections between computer software and the hardware connected to the devices. You will find numerous Drivers in Windows for Display, Bluetooth, WiFi, etc. Among them, the Installation of a Bluetooth Driver is a tricky one. All of the Windows devices come up with one Preinstalled B
6 min read
How to Install Rainmeter Skins in Windows?
Who wouldn’t like to have cool wallpapers for their laptop to look cool? Windows Operating System has always provided its users with a generous amount of customization in every aspect. However, the wallpaper customization is limited in the Windows Operating System. Fortunately, there are a few third-party applications available on the internet that
7 min read
How to Download and Install AnyDesk for Windows?
AnyDesk is a lightweight yet powerful remote desktop software that allows users to access their computers from anywhere with an internet connection. Whether you're using it for personal or professional purposes, AnyDesk for windows offers fast, secure, and reliable remote access to your Windows PC. In this article, we'll walk you through the simple
5 min read
How to Install Microsoft PowerToys on Windows 11?
Microsoft PowerToys is a set of utilities designed to empower users with advanced features and functionalities not readily available within the standard Windows operating system. From enhanced window management to productivity-boosting tools, PowerToys offers a plenty of options to tailor your Windows experience to your specific need. So, installin
3 min read
How to Install Flutter on Windows?
Flutter is basically Google's portable user interface (UI) toolkit, used to build and develop eye-catching, natively-built applications for mobile, desktop, and web, from a single codebase. Flutter is free, open-sourced, and compatible with existing code. It is utilized by companies and developers around the world, due to its user-friendly interfac
8 min read
How to Install Windows 10 on a Chromebook Without USB?
Like Windows, you will not get many options in Chromebook as it runs with ChromeOS and it is a very lightweight OS. So, it is unsurprising that you want to Install Windows 10 on a Chromebook to get a better experience. You will be very pleased to know that we can Install Windows 10 on Chromebook without USB. This article will highlight the steps to
5 min read
How to Install Package Manager in Windows 11?
A package manager is a software tool that helps us to easily install, download, update, and manage various programs which can be installed in any particular operating system such as Windows, so in this article, we will understand what a package manager is and then we will learn how to Install package manager in Windows 11. What is a Package Manager
4 min read
How to Install Microsoft Store on Windows 10 LTSC or LTSB Editions?
Are you using Windows 10 LTSC or LTSB editions and need access to the Microsoft Store? These editions are designed for stability and long-term support but lack the Microsoft Store by default. Fortunately, there are ways to install the Microsoft Store on Windows 10 LTSC or LTSB editions. Steps to Install Microsoft Store on Windows 10 LTSC or LTSBIn
3 min read
How to Install Windows 11 Without a Microsoft Account?
Installing Windows 11 typically requires a Microsoft account, but there are ways to bypass this requirement and set up your system with a local account instead. Whether you prefer not to use a Microsoft account for privacy reasons or simply want a straightforward offline setup, this guide will show you how to install Windows 11 without a Microsoft
5 min read
How to Install Windows on Mac?
In the Operating System market, a user can find different varieties to purchase. One can opt for Windows, Linux, MacOS, ChromeOS, etc., and many others. However, the Windows OS takes the lead among others even from the Mac Operating System as well. One survey data says most users opt for the Windows Over Mac Operating System So, if you find there a
7 min read
Install ERPNext/Frappe on Windows (Ubuntu server) via VirtualBox
ERPNext is a powerful, open-source ERP system that helps businesses manage various functions seamlessly. This guide will walk you through the process of installing ERPNext/Frappe on a Windows machine using an Ubuntu server in VirtualBox, with port forwarding enabled for easy access. PrerequisitesBefore we begin, ensure you have the following: A Win
5 min read
How to Install Xcode in Windows 11?
Installing Xcode on Windows 11 can seem challenging since Xcode is specifically designed for macOS. However, with the right tools and steps, it's possible to set up a macOS environment on your Windows 11 machine to run Xcode. In this guide, we'll walk you through the process of installing Xcode in Windows 11 using a virtual machine, so you can star
2 min read
How to Install PowerISO on Windows?
PowerISO is a powerful disk image processing tool that allows you to open, extract, create, edit, compress, encrypt, and convert ISO files. Installing PowerISO on a Windows system is straightforward and can greatly enhance your ability to manage disk images. This guide will walk you through the steps to download, install, and start using PowerISO o
3 min read
How to Install GIT on Windows, MacOS and Linux?
GIT is an essential version control system used by developers worldwide to manage code repositories efficiently. Whether you're working on a personal project or collaborating with a team, knowing how to install GIT on Windows, MacOS, and Linux is crucial for setting up your development environment. This article will walk you through the process of
7 min read
How to Download and Install Eclipse on Windows?
If you're diving into Java development or any other programming language, downloading and installing Eclipse on Windows is a crucial first step. Eclipse is a popular Integrated Development Environment (IDE) known for its robust features and versatility. This article will walk you through how to download Eclipse on Windows and provide a detailed Ecl
4 min read
How to Install Teamviewer for Windows?
With the help of the robust remote access utility TeamViewer, you may quickly and safely connect to other computers and devices. This article will assist you if you want to install TeamViewer on Windows. By following these Windows TeamViewer installation instructions, you can quickly get up and running with TeamViewer, regardless of whether you're
5 min read
Article Tags :