October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

`php5isapi.dll` Missing: Repair Old PHP and IIS Safely on Windows

Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

php5isapi.dll is a historical PHP 5 server module, not a Windows system file, so copying it into System32 is not a safe repair. If IIS reports that php5isapi.dll is missing or cannot load, identify whether the server uses an old ISAPI configuration or should be using FastCGI, then repair that PHP installation.

What this file actually does

php5isapi.dll is the PHP 5 ISAPI SAPI module. Its internal description is ISAPI, and it was published by The PHP Group for PHP on Windows.

As an Amazon Associate I earn from qualifying purchases.

ISAPI was an older way to connect PHP with IIS and other ISAPI-compatible web servers. Historical PHP documentation identified the file as:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sapi/php5isapi.dll

The file belongs with the PHP installation. It is not:

#1 Best Overall
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]
  • A Windows component
  • A Microsoft runtime DLL
  • A graphics or game file
  • A COM library that should be registered with regsvr32
  • A file that belongs in C:WindowsSystem32
  • A file that belongs in C:WindowsSysWOW64

The important complication is that PHP Windows packages changed over time. Some older PHP 5 packages included an ISAPI module, while later PHP 5 distributions, particularly packages from the PHP 5.3 era, commonly moved IIS support toward FastCGI and did not include php5isapi.dll.

That means a missing file does not necessarily indicate corruption. An old IIS tutorial or handler mapping may simply be requesting a file that was never included in the PHP package you installed.

PHP 5 is obsolete and unsupported. If the application can be updated, migrating to a supported PHP release is safer than rebuilding an old ISAPI deployment.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Causes and symptoms

What you see Most likely cause Correct direction
IIS cannot find php5isapi.dll Old handler mapping points to a missing file Replace the mapping with FastCGI
“The specified module could not be found” Missing DLL or missing dependency Check the complete PHP installation and logs
“The specified procedure could not be found” Incompatible PHP files or mismatched versions Use one complete, matching PHP package
HTTP 500 after changing PHP Incorrect IIS handler, bitness, or PHP path Rebuild the handler mapping
“Not designed to run on Windows” Possible corruption, architecture mismatch, or incompatible binary Reinstall the matching PHP build
The file disappeared after a scan Possible antivirus quarantine Check quarantine before restoring anything
The downloaded PHP archive never contained the file The package uses FastCGI or omits historical ISAPI support Configure php-cgi.exe instead
A PHP site works from one pool but not another Different application-pool bitness or handler settings Compare pool and site configuration

Fix 1: Replace the old ISAPI mapping with FastCGI

This is the safest and most likely solution for an existing IIS installation.

PHP’s recommended IIS integration uses FastCGI and php-cgi.exe, not php5isapi.dll. FastCGI is also the practical choice when the PHP package does not contain the historical ISAPI module.

1. Find the PHP installation you intend to use

Look for the directory containing:

php-cgi.exe
php.exe
php.ini-development
php.ini-production
ext

Do not assume that the PHP directory named in an old handler mapping is still valid. Common problems include a deleted directory, an old drive letter, or multiple PHP installations with different versions.

Keep one complete PHP installation together. Do not combine php-cgi.exe, extensions, php.ini, and DLLs from separate PHP archives.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Confirm that IIS has the CGI feature

  1. Press Windows and search for Turn Windows features on or off.
  2. Open it as administrator.
  3. Expand Internet Information Services.
  4. Expand World Wide Web Services.
  5. Expand Application Development Features.
  6. Select CGI.
  7. Select OK and allow Windows to install the feature.
  8. Restart IIS if Windows requests it.

The CGI feature is required for IIS FastCGI support. If IIS Manager does not show FastCGI-related options after installation, restart the server or open IIS Manager again.

3. Remove the obsolete PHP ISAPI mapping

  1. Open IIS Manager.
  2. Expand Sites.
  3. Select the affected website.
  4. Open Handler Mappings.
  5. Find any mapping whose executable points to:
    text
    php5isapi.dll
  6. Record the old path if you may need to document the change.
  7. Remove the obsolete mapping, or disable it while testing.

Do not leave a broken php5isapi.dll mapping above the new FastCGI mapping. IIS may continue trying to use the old handler.

4. Add the FastCGI handler

  1. In Handler Mappings, select Add Module Mapping.
  2. Enter:
  3. Request path: *.php
  4. Module: FastCgiModule
  5. Executable: the full path to your matching php-cgi.exe, such as:
    text
    C:PHPphp-cgi.exe
  6. Name: PHP_via_FastCGI
  7. Select Request Restrictions if shown.
  8. Confirm that the mapping applies to the required request types.
  9. Select OK.
  10. Accept the prompt to create the FastCGI application if IIS displays one.

The executable in the handler mapping and the FastCGI application must point to the same php-cgi.exe.

5. Recycle the application pool

  1. In IIS Manager, select Application Pools.
  2. Identify the pool used by the PHP site.
  3. Right-click it.
  4. Select Recycle.

If the site still returns an error, restart IIS from an elevated Command Prompt:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
iisreset

Use iisreset during a suitable maintenance window because it affects IIS sites on the server.

Rank #2
Sale
Microsoft Windows 11 (USB)
  • Less chaos, more calm. The refreshed design of Windows 11 enables you to do what you want effortlessly.
  • Biometric logins. Encrypted authentication. And, of course, advanced antivirus defenses. Everything you need, plus more, to protect you against the latest cyberthreats.
  • Make the most of your screen space with snap layouts, desktops, and seamless redocking.
  • Widgets makes staying up-to-date with the content you love and the news you care about, simple.
  • Stay in touch with friends and family with Microsoft Teams, which can be seamlessly integrated into your taskbar. (1)

6. Test PHP without exposing sensitive settings

Create a temporary file in the website directory named:

php-test.php

Use:

<?php
echo 'PHP FastCGI is responding';

Browse to that file through the site. A successful response confirms that IIS is reaching PHP through FastCGI.

Remove the test file immediately after testing. Do not leave a diagnostic page containing PHP configuration details publicly accessible.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Command-line alternative

The PHP IIS example uses commands similar to these. Replace the path if your PHP directory is different:

%windir%system32inetsrvappcmd set config /section:system.webServer/fastCGI /+[fullPath='C:PHPphp-cgi.exe']
%windir%system32inetsrvappcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='C:PHPphp-cgi.exe',resourceType='Unspecified']

Run Command Prompt as administrator. If AppCmd reports that the entry already exists, inspect the current IIS configuration instead of adding duplicate entries.

Fix 2: Check the PHP package before replacing anything

A missing php5isapi.dll can be expected.

  1. Open the PHP directory in File Explorer.
  2. Search that directory and its subdirectories for:
    text
    php5isapi.dll
  3. Check the archive or installation package you originally used.
  4. Determine whether it was an older PHP 5 package intended for ISAPI or a later package intended for FastCGI.

If the package does not contain the file, do not download an isolated copy. Use php-cgi.exe and FastCGI, or obtain the complete matching historical PHP archive from the official PHP Windows archive.

If the application absolutely requires the historical ISAPI interface, recover the complete PHP release that originally supported it. The DLL must match the rest of that release, including its PHP runtime, extensions, configuration expectations, and architecture.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Never copy only php5isapi.dll from a different PHP version.

Fix 3: Check the IIS path and all PHP environment settings

A stale path is common after a PHP upgrade or disk migration.

Check these locations:

  1. In IIS Manager, open the site’s Handler Mappings.
  2. Inspect the executable path for every PHP mapping.
  3. Open FastCGI Settings at the server level.
  4. Confirm that the fullPath value points to the same php-cgi.exe.
  5. Check the site’s Basic Settings and confirm that the physical path is correct.
  6. Check system and user environment variables for old PHP directories.
  7. Look for PHPRC or extension-directory settings that refer to a removed installation.
  8. Confirm that the php.ini being used belongs to the selected PHP directory.

After correcting the paths:

  1. Recycle the application pool.
  2. Run:
    bat
    iisreset
  3. Test a simple PHP page.

If one site works and another fails, compare their handler mappings, application pools, physical paths, and web.config files. Do not assume the server-wide PHP configuration applies identically to every site.

Fix 4: Match 32-bit and 64-bit architecture

A PHP binary must match the IIS worker process that loads it. Historical PHP 5 ISAPI deployments were commonly 32-bit, while a 64-bit IIS application pool normally uses a 64-bit worker process.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the application-pool setting:

  1. Open IIS Manager.
  2. Select Application Pools.
  3. Right-click the pool used by the site.
  4. Select Advanced Settings.
  5. Find Enable 32-Bit Applications.
  6. Set it to True only if you are deliberately using a 32-bit PHP installation.
  7. Set it to False for a 64-bit PHP installation intended for a 64-bit worker process.
  8. Select OK.
  9. Recycle the pool.

Do not change this setting blindly. Confirm whether the PHP build is 32-bit or 64-bit from the official package information or the installation records.

Rank #3
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
  • Lightweight and convenient: Lexar JumpDrive A30E (USB Type-A) boasts a slim, portable design for easy device compatibility; lightweight at 7.41 g
  • Transfer speeds up to 100 MB/s: 10x faster than standard USB 2.0 drives; Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions
  • Wide compatibility: Compatible with tablets, laptops, Macs, and traditional Type-A devices, no software installation required; Reliably stores photos, videos & files
  • Compact: Features a push-button retractor and a lanyard loop for on-the-go use
  • Enhanced security: Lexar DataShield protects files, easily creates a password-protected safe with auto-encryption; Files deleted from the safe are securely erased and can't be recovered

For FastCGI, select a PHP build whose architecture matches the intended IIS process. Avoid placing a 32-bit PHP executable beside 64-bit extensions or files from another installation.

A bitness problem can produce loader errors that look like a missing or damaged DLL. If the message changes after correcting the pool setting, the original problem was likely an architecture mismatch.

Fix 5: Check thread-safety and PHP build consistency

For IIS FastCGI, PHP documentation recommends the non-thread-safe build. A thread-safe build is associated with other hosting models and should not be mixed casually with a FastCGI setup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check that these items come from the same PHP release:

  • php-cgi.exe
  • PHP extensions in ext
  • php.ini
  • Runtime DLLs
  • The selected architecture
  • Any application-specific PHP extensions

Do not copy a php.ini from one PHP release and assume every extension setting remains valid. Preserve a backup of the old configuration, then create a clean configuration for the selected installation and add only settings the application requires.

Fix 6: Reinstall PHP from a complete official archive

Use this fix when extraction was incomplete, the file was deleted, or several PHP DLLs appear to be missing.

  1. Back up the current php.ini.
  2. Record the PHP directory, IIS mappings, site configuration, and required extensions.
  3. Stop or place the affected site into maintenance mode.
  4. Obtain the complete PHP archive from the official PHP distribution source.
  5. Extract it into a clean directory.
  6. Do not extract over a damaged installation.
  7. Copy configuration settings manually after reviewing them.
  8. Recreate the IIS FastCGI mapping to the new php-cgi.exe.
  9. Recycle the application pool.
  10. Test the application and review its logs.

If the application needs an old PHP version, test the recovered installation in a controlled environment first. PHP 5 applications may depend on functions or extensions that are unavailable in current PHP releases, so migration may require application changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix 7: Check antivirus quarantine

If php5isapi.dll existed and then disappeared, inspect the security product’s history.

  1. Open Windows Security.
  2. Select Virus & threat protection.
  3. Select Protection history.
  4. Look for an event involving the PHP directory or the missing file.
  5. Confirm that the file came from a complete official PHP archive.
  6. Do not restore a file merely because its name matches.
  7. If the installation is trusted, restore it according to your organization’s security policy.
  8. Reinstall the complete PHP archive if there is any doubt.
  9. Add an exclusion only after verifying the installation and obtaining approval under your security policy.

There is no reason to assume that every missing php5isapi.dll report is an antivirus false positive. Treat quarantine as one possible explanation, not as proof that the file is safe.

Fix 8: Check dependencies instead of replacing the named DLL

“The specified module could not be found” can mean that Windows cannot load a dependency required by the named PHP module. The top-level file may exist while another required DLL is missing.

Check:

  1. The PHP directory for incomplete extraction.
  2. IIS logs for the failing request.
  3. Event Viewer:
  4. Right-click Start.
  5. Select Event Viewer.
  6. Check Windows Logs and relevant IIS or application entries.
  7. PHP startup output or application logs.
  8. The exact PHP build and architecture.
  9. Whether extensions were copied from another installation.

Do not install random Visual C++ packages until you know which dependency is missing. A runtime package that does not match the PHP build will not repair an inconsistent PHP directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Fix 9: Repair Windows components only when Windows itself is damaged

php5isapi.dll is a third-party PHP file. System File Checker and DISM do not normally restore it.

Rank #4
IMEASON Swivel Design 16GB USB Flash Drive with Keychain, USB 2.0 Portable Thumb Drive Memory Stick, FAT32 Format Flashdrive for Data Storage, Photos, Music, Files (Black, 16 GB)
  • 【16GB Flash Drive】USB flash drives with 16GB capacity, meet your needs of daily use on work, school, home and travelling for photos, music, videos, files storage and transfer. IMEASON thumb drives can be used to store different files, easy to data backup.
  • 【Metal Swivel Cap Design】USB thumb drive is metal swivel cover provides extra protection for the usb thumbdrive connector, no usb drive cap to lose; keychain design makes it easier to carry without worrying lose it.
  • 【Wide Compatibility】USB drive supports Windows 7/8/10/11 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, also Supports USB 2.0 and 1.1 ports. USB Stick support TV, desktop, notebook computer, car, audio and other device. The USB Memory Stick is your great data storage and transfer companion with traveling and working.
  • 【Easy to use】usb memory stick is plug and play without any software installation. Just simply plug the Flashdrive into the port of your USB-compatible devices such as computer, laptop to start data storage or transmission.
  • 【What You Get】16 GB USB Flash Drive Thumb Drive, The default format of the usb storage flash drive is FAT32.

Use Windows repair commands only when you also have evidence of damaged Windows components, failed servicing, or broader system-file problems.

Open Windows Terminal (Admin) or Command Prompt (Admin) and run:

DISM.exe /Online /Cleanup-Image /RestoreHealth

Wait for it to complete, then run:

sfc /scannow

Restart Windows and test IIS again.

A successful SFC or DISM repair does not prove that PHP was repaired. If the PHP file is still missing, reinstall or re-extract the complete PHP package and rebuild the IIS mapping.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When repeatedly running SFC and DISM leaves you guessing what changed, Outbyte PC Repair can scan for problems and show what it finds; its repair functions require the full version, but reinstalling the PHP application remains the definitive fix for this third-party file.

Fix 10: Check drivers only when the wider Windows problem points there

A PHP IIS error normally has nothing to do with a device driver. Consider driver maintenance only if the same machine also shows graphics, storage, chipset, or other device failures.

To check manually:

  1. Right-click Start.
  2. Select Device Manager.
  3. Expand categories with warning icons.
  4. Right-click the affected device.
  5. Select Properties.
  6. Review the General and Driver tabs.
  7. Install drivers from the hardware manufacturer or your organization’s approved source.
  8. Restart Windows if required.

Do not use Device Manager to search for php5isapi.dll; it is not a hardware driver.

When manually comparing many driver versions becomes the problem, Outbyte Driver Updater can scan and identify outdated drivers; the driver installation requires the full version, and it is unrelated to the definitive PHP repair when the application itself is missing files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What not to do

Do not download an isolated DLL

Random DLL download sites may provide:

  • The wrong PHP release
  • The wrong architecture
  • A modified or malicious file
  • A file with missing dependencies
  • A file that does not match php-cgi.exe, extensions, or php.ini

Use the complete PHP archive from the official PHP source instead. If the application vendor supplied PHP as part of its product, use that vendor’s complete installer or repair package.

Do not copy it into System32 or SysWOW64

IIS must load PHP through its configured handler. Copying the file into a Windows directory does not correct the handler path, architecture, dependencies, or PHP version.

It can also make later troubleshooting harder by leaving an untracked copy that looks valid but is not used by the intended site.

Do not use regsvr32

regsvr32 is intended for DLLs that expose registration entry points such as DllRegisterServer. php5isapi.dll is an IIS PHP server module, not generally a COM component.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Running this command is therefore not a repair:

regsvr32 php5isapi.dll

An error from regsvr32 does not diagnose the PHP installation. Configure the module through IIS, or replace it with a FastCGI mapping.

Final escalation checklist

Before escalating the issue, record:

  • Windows version and system architecture
  • PHP version and complete package source
  • Whether the PHP build is 32-bit or 64-bit
  • Whether it is thread-safe or non-thread-safe
  • The exact IIS handler mapping
  • The application-pool bitness setting
  • The full path to php-cgi.exe
  • Whether php5isapi.dll was ever present
  • The complete error text
  • IIS and Windows Event Viewer entries
  • Antivirus quarantine history
  • The result of a clean PHP extraction

If the site is configured for ISAPI but the installed PHP package does not contain php5isapi.dll, stop trying to repair the missing file and migrate the handler to FastCGI. If the application cannot yet migrate, recover the complete matching historical PHP installation rather than downloading a replacement DLL.

Quick Recap

SaleBestseller No. 2
Microsoft Windows 11 (USB)
Microsoft Windows 11 (USB)
Make the most of your screen space with snap layouts, desktops, and seamless redocking.; FPP is boxed product that ships with USB for installation
$124.97
Bestseller No. 3
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
Compact: Features a push-button retractor and a lanyard loop for on-the-go use
$33.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.