Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


wiki:install_and_configure_php_7.0.26_on_windows_server

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
wiki:install_and_configure_php_7.0.26_on_windows_server [2018/01/02 15:05] – [Enable FastCGI Role Service for IIS7] wikiadminwiki:install_and_configure_php_7.0.26_on_windows_server [2022/10/29 17:31] (current) – [Configure the php.ini File] wikiadmin
Line 14: Line 14:
 ====Enable FastCGI Role Service for IIS7====   ====Enable FastCGI Role Service for IIS7====  
   -Make sure that you have enabled FastCGI support for IIS7. This is the URL for the source article containing the following listed instructions: [[https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/enable-fastcgi-support-in-iis-7-on-windows-server-2008-windows-server-2008-r2-windows-vista-or-windows-7]]   -Make sure that you have enabled FastCGI support for IIS7. This is the URL for the source article containing the following listed instructions: [[https://docs.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/enable-fastcgi-support-in-iis-7-on-windows-server-2008-windows-server-2008-r2-windows-vista-or-windows-7]]
-  -Note: If you are enabling FastCGI on Server 2008, you may need to download and install the FastCGI Update for IIS 7 for Windows Server 2008 (KB954946) from here: [[http://go.microsoft.com/fwlink/?LinkId=131593]].  This will provide an extra icon for FastCGI Settings in the IIS 7 Management Console.  This FastCGI Settings module is in addition to the existing Handler Mappings module. +  -**Note on Prerequisites**: If you are enabling FastCGI on Server 2008, you may need to download and install the FastCGI Update for IIS 7 for Windows Server 2008 (KB954946) from here: [[http://go.microsoft.com/fwlink/?LinkId=131593]].  This will provide an extra icon for FastCGI Settings in the IIS 7 Management Console.  This FastCGI Settings module is in addition to the existing Handler Mappings module. 
-  -Note2: You may also need or want to install Microsoft IIS 7 Administration Pack 1.0 (x86) on Server 2008 SP2 (x86) from here: [[http://go.microsoft.com/?linkid=9655656]] - (File Name: AdminPack_x86.msi). When you attempt installation using this *.msi file, an alert box may tell you whether this Package is not suitable for your operating system. +  -**Note2 on Prerequisites**: You may also need or want to install Microsoft IIS 7 Administration Pack 1.0 (x86) on Server 2008 SP2 (x86) from here: [[http://go.microsoft.com/?linkid=9655656]] - (File Name: AdminPack_x86.msi). When you attempt installation using this *.msi file, an alert box may tell you whether this Package is not suitable for your operating system. 
-  -Open the "Server Manager" and, in the left pane, select the icon for "Roles" (but do not +expand roles)+  -__Begin Instructions to Enable FastCGI Role Service__.  **First**, Open the "Server Manager" and, in the left pane, select the icon for "Roles" (but do not +expand roles)
   -In the right pane, under Windows Server (IIS), look under the subcategory of Role Services, and click the link on the far right to "Add Role Services"   -In the right pane, under Windows Server (IIS), look under the subcategory of Role Services, and click the link on the far right to "Add Role Services"
   -Under Application Development category, select the checkbox next to "CGI" for installing the "CGI" role service.  This enables both the CGI and the FastCGI services.   -Under Application Development category, select the checkbox next to "CGI" for installing the "CGI" role service.  This enables both the CGI and the FastCGI services.
Line 39: Line 39:
   -Set cgi.force_redirect = 0   -Set cgi.force_redirect = 0
   -Set open_basedir = a path pointing to a folder or network path where the content of the Web site(s) is located. (Such as c:\hostdata), or just leave it commented like this ";open_basedir =" without the quotes   -Set open_basedir = a path pointing to a folder or network path where the content of the Web site(s) is located. (Such as c:\hostdata), or just leave it commented like this ";open_basedir =" without the quotes
-  -Set extension_dir to point to a location where PHP extensions reside. This is typically extension_dir = "./ext"+  -Set extension_dir to point to a location where PHP extensions reside. This is typically extension_dir = "./ext" However, per php.ini-production in both PHP7  and PHP8 it says for "Windows" to set it as follows:  extension_dir = "ext"
   -Set error_log="C:php_errors.log"  ;REMARK This can help with troubleshooting.  Alternatively, set **error_log = "c:\php\logs\errors_log"** and make a new sub-folder in c:php named "logs" and grant the sub-folder "logs" full control write access for both IUSR and IIS_USERS.   -Set error_log="C:php_errors.log"  ;REMARK This can help with troubleshooting.  Alternatively, set **error_log = "c:\php\logs\errors_log"** and make a new sub-folder in c:php named "logs" and grant the sub-folder "logs" full control write access for both IUSR and IIS_USERS.
   -Enable the required PHP extension by un-commenting the appropriate lines within the extensions section of the php.ini file.  See a further discussion of which extensions to enable.   -Enable the required PHP extension by un-commenting the appropriate lines within the extensions section of the php.ini file.  See a further discussion of which extensions to enable.
Line 67: Line 67:
  
  
-If you have Windows Server 2008, and you are receiving 500 errors when you test phpinfo.php from localhost, then you may need to download and install Windows Server 2008 Service Pack 2+If you have Windows Server 2008 without service pack 2 installed, then you may want to download and install Windows Server 2008 Service Pack 2.
 See: [[https://www.microsoft.com/en-us/download/confirmation.aspx?id=16468]] See: [[https://www.microsoft.com/en-us/download/confirmation.aspx?id=16468]]
  
-To be continued+
wiki/install_and_configure_php_7.0.26_on_windows_server.1514905552.txt.gz · Last modified: 2018/01/02 15:05 by wikiadmin