---
title: "View source for Upgrading Php Windows - DreamFactory Wiki"
source: "http://wiki.dreamfactory.com/index.php?action=edit&title=Upgrading_Php_Windows"
canonical_url: "http://wiki.dreamfactory.com/index.php?action=edit&title=Upgrading_Php_Windows"
converted_at: "2026-04-17T08:42:03.887Z"
format: "markdown"
converted_by: "html-to-md-ai"
---
[]()
	
	
	
	# View source for Upgrading Php Windows

	
		
		← [Upgrading Php Windows](/Upgrading_Php_Windows)
		
		
		
		[Jump to navigation](#mw-head)
		[Jump to search](#searchInput)
		You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: [Users](/index.php?title=DreamFactory_Wiki:Users&action=edit&redlink=1).

---

You can view and copy the source of this page.

{{#seo:
|title=Upgrading Php Windows - DreamFactory Documentation
|title_mode=replace
|canonical=https://wiki.dreamfactory.com/Upgrading_Php_Windows
|og:title=Upgrading Php Windows
|og:type=article
|og:site_name=DreamFactory Documentation
}}
&lt;span id="upgrading-php-on-windows">&lt;/span>
= Upgrading PHP on Windows =

This guide walks through the process of updating the PHP version on a Windows server running DreamFactory. Follow these steps carefully to ensure a smooth upgrade process.

&lt;span id="prerequisites">&lt;/span>
== Prerequisites ==

Before beginning the update process ensure you have backed up:

* Your existing PHP folder
* Your system database
* A copy of your &lt;code>.env&lt;/code> file

&lt;span id="installation-steps">&lt;/span>
== Installation Steps ==

&lt;span id="download-php">&lt;/span>
=== 1. Download PHP ===

# Visit the official [https://windows.php.net/download/ PHP for Windows] website
# Download the '''Non-Thread-Safe (NTS)''' version for your architecture (x64 or x86)
#* Example: &lt;code>php-8.2.25-nts-Win32-vs16-x64.zip&lt;/code>

:::tip Important Always use the Non-Thread-Safe (NTS) version of PHP with DreamFactory on Windows. :::

&lt;span id="install-php">&lt;/span>
=== 2. Install PHP ===

# Create a new directory: &lt;code>C:\PHP\php-X.X.X&lt;/code> (replace X.X.X with version number)
# Extract the downloaded ZIP contents to this directory
# Create a symlink from &lt;code>C:\php&lt;/code> to your version-specific directory (optional, but recommended for easier management)

&lt;span id="configure-environment-variables">&lt;/span>
=== 3. Configure Environment Variables ===

&lt;ol style="list-style-type: decimal;">
&lt;li>&lt;p>Open System Properties:&lt;/p>
&lt;pre>Win + R → sysdm.cpl → Enter&lt;/pre>&lt;/li>
&lt;li>&lt;p>Navigate to: Advanced tab → Environment Variables&lt;/p>&lt;/li>
&lt;li>&lt;p>Under System Variables:&lt;/p>
&lt;ul>
&lt;li>Edit &lt;code>Path&lt;/code>&lt;/li>
&lt;li>Add new PHP directory path (e.g., &lt;code>C:\PHP\php&lt;/code>)&lt;/li>
&lt;li>Remove old PHP path if present&lt;/li>&lt;/ul>
&lt;/li>
&lt;li>&lt;p>Verify installation:&lt;/p>
&lt;syntaxhighlight lang="text">
php -v
&lt;/syntaxhighlight>&lt;/li>&lt;/ol>

&lt;span id="configure-php">&lt;/span>
=== 4. Configure PHP ===

&lt;ol style="list-style-type: decimal;">
&lt;li>Configure &lt;code>php.ini&lt;/code>:
&lt;ul>
&lt;li>&lt;p>If you are on the same major versio nof PHP you can copy your existing &lt;code>php.ini&lt;/code> from the previous installation, OR&lt;/p>&lt;/li>
&lt;li>&lt;p>Create new from &lt;code>php.ini-production&lt;/code>:&lt;/p>
&lt;pre>copy php.ini-production php.ini&lt;/pre>&lt;/li>&lt;/ul>
&lt;/li>
&lt;li>Enable required extensions in &lt;code>php.ini&lt;/code>:
&lt;ul>
&lt;li>See [[Getting_Started/Windows_Installation#installing_php|PHP Extensions Guide]] for the complete list&lt;/li>
&lt;li>Ensure SQL Server extensions are properly configured if using [[Getting_Started/Windows_Installation#installing_sql_server_drivers_optional|SQL Server]]&lt;/li>&lt;/ul>
&lt;/li>&lt;/ol>

&lt;span id="configure-iis">&lt;/span>
=== 5. Configure IIS ===

&lt;ol style="list-style-type: decimal;">
&lt;li>&lt;p>Open IIS Manager&lt;/p>&lt;/li>
&lt;li>&lt;p>Access PHP Manager:&lt;/p>
&lt;ul>
&lt;li>Register new PHP version: &lt;code>C:\php\php-cgi.exe&lt;/code>&lt;/li>
&lt;li>Verify extensions are enabled&lt;/li>
&lt;li>Check PHP configuration status&lt;/li>&lt;/ul>
&lt;/li>
&lt;li>&lt;p>Restart Services:&lt;/p>
&lt;pre>iisreset&lt;/pre>&lt;/li>&lt;/ol>

&lt;span id="verify-installation">&lt;/span>
=== 6. Verify Installation ===

# Check PHP configuration:
#* Use PHP Manager's "Check phpinfo()"
#* Verify PHP version
#* Confirm required extensions are loaded
# Test DreamFactory:
#* Access your DreamFactory instance
#* Check the [[System_Settings/System_Info|System Information]] page
#* Verify all services are functioning

&lt;span id="troubleshooting">&lt;/span>
== Troubleshooting ==

If you encounter issues:

# '''Check PHP Version''':
#* Ensure you're using NTS version
#* Verify architecture matches (x64/x86)
# '''Verify Extensions''':
#* Review [[Getting_Started/Windows_Installation#installing_php|required extensions]]
#* Check extension paths in &lt;code>php.ini&lt;/code>
# '''Review Logs''':
#* Check PHP error logs
#* Review IIS logs
#* Examine DreamFactory logs

For additional help, contact [https://www.dreamfactory.com/support DreamFactory Support].

&lt;span id="related-documentation">&lt;/span>
== Related Documentation ==

* [[Getting_Started/Windows_Installation|Windows Installation Guide]]
* [[Upgrading_Php|Upgrading PHP]]
* [[Getting_Started/Basic_Configuration|System Configuration]]

[[Category:Upgrades]]
[[Category:Upgrading]]
[[Category:Windows]]

[[Category:Upgrades]]
Return to [Upgrading Php Windows](/Upgrading_Php_Windows).

Retrieved from "[https://wiki.dreamfactory.com/Upgrading_Php_Windows](https://wiki.dreamfactory.com/Upgrading_Php_Windows)"