Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


installing_php_8_1_12_windows_iis_10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
installing_php_8_1_12_windows_iis_10 [2022/10/29 19:29] – [Enable Extensions in the php.ini file for PHP 8] wikiadmininstalling_php_8_1_12_windows_iis_10 [2022/10/30 00:07] (current) – [Enable File Uploads in php.ini file for PHP 8] wikiadmin
Line 8: Line 8:
 Unzip the Zip File to php_8_1 Unzip the Zip File to php_8_1
  
-Using Windows file explorer, copy and paste the "php_8_1" directory (including its contained files and subdirectories) to your new and separate PHP path, such as c:\php_8_1+Using Windows file explorer, copy and paste the contents of the "php_8_1" directory (that is, all files and subdirectories) to your new and separate PHP path, such as c:\php_8_1
  
 Using Notepad++ or similar advanced text editor, in the root of the php_8_1 directory, find and open the file "php.ini-production" and save as a new file named "php.ini" without the quotes. Using Notepad++ or similar advanced text editor, in the root of the php_8_1 directory, find and open the file "php.ini-production" and save as a new file named "php.ini" without the quotes.
Line 20: Line 20:
 ====Configure Handler Mappings for FastCGI Module in IIS Manager==== ====Configure Handler Mappings for FastCGI Module in IIS Manager====
   -Start IIS Manager by clicking on Start, Programs, Administrative Tools, and then Internet Information Services (IIS) Manager.   -Start IIS Manager by clicking on Start, Programs, Administrative Tools, and then Internet Information Services (IIS) Manager.
-  -From the IIS Manager, click on the hostname of your server in the Connections panel on the left.+  -From the IIS Manager, click on the hostname of your server in the Connections panel on the left to add php mapper handling on a global basis (or instead select the hostname of the particular website if you are adding php mapper handling at the Website Level)
   -Double-click on the Handler Mappings icon.  Insert a screen capture here depicting IIS and handler mappings   -Double-click on the Handler Mappings icon.  Insert a screen capture here depicting IIS and handler mappings
   -From the Handler Mappings Actions panel, click on Add Module Mapping.   -From the Handler Mappings Actions panel, click on Add Module Mapping.
-  -Type the following information into the appropriate text boxes, and then click OK. Request path: *.php  then Module : FastCGImodule then Executable: C:\php_8\php-cgi.exe then Name: FastCGI+  -Type the following information into the appropriate text boxes, and then click OK. Request path: *.php  then Module : FastCGImodule then Executable: C:\php_8\php-cgi.exe then Name: PHP8
   -Click OK, and then click Yes.   -Click OK, and then click Yes.
 +  -NOTE: If you are trying to add a new or additional *.php mapping (or remove script access from an existing php version) AT THE WEBSITE LEVEL IN IIS Server and you receive an error message that you don't have the necessary permissions to do so, then try clearing the checkmark next to "read-only" on the first tab of property pages for the file "web.config" in the root of the particular website.
          
   {{:add-module-mapping-for-php8-at-website-level.png?nolink|}}   {{:add-module-mapping-for-php8-at-website-level.png?nolink|}}
 +  
 +At the Website level, in order to disable the particular version of PHP that you will not be using, you may be able to select the unwanted mapping and click remove at the right, or select the unwanted php version and select edit permissions and disable "script" access for the unwanted mapping.  
      
 ====Configure the php.ini File==== ====Configure the php.ini File====
Line 43: Line 46:
 Using Notepad++ or similar text editor, find and edit the php.ini file to enable extensions. Make sure that the applicable/corresponding php_*.dll file for the extension that you wish to activate is still available within the latest php8/ext/ directory Using Notepad++ or similar text editor, find and edit the php.ini file to enable extensions. Make sure that the applicable/corresponding php_*.dll file for the extension that you wish to activate is still available within the latest php8/ext/ directory
  
-See the following screen snippet for examples:+See the following screen snippet for examples of extensions to enable:
  
 {{ :extensions-enabled-for-php8.png?nolink |}} {{ :extensions-enabled-for-php8.png?nolink |}}
  
  
 +====Enable File Uploads in php.ini file for PHP 8====
 +
 +Use a file editor like Notepad++ to edit the php.ini file.
 +
 +By default file uploads are enabled. 
 +
 +file_uploads = On
 +
 +See the following screen snippet for examples of configuring php.ini for file uploads:
 +
 +{{:configure-file-uploads-in-php8.png?nolink|}}
 +
 +====Enable Sessions Save Path to New TMP Directory====
 +
 +See the following screen snippet.
  
 +{{:temp-sessions-save-directory.png?nolink|}}
  
 +====Matters to Consider with PHP 8====
  
 +  * Do we need to install PEAR any longer? [[https://pear.php.net/package/PEAR/]] [[https://pear.php.net/package/PEAR/download]]
 +  * Do we need to install and enable an extension for XMLRPC any longer?  Is it deprecated or just no longer located in directory /ext/ as a dll extension, and no longer listed in the extensions section of php.ini?
installing_php_8_1_12_windows_iis_10.1667071755.txt.gz · Last modified: 2022/10/29 19:29 by wikiadmin