wiki:install_and_configure_php_7.0.26_on_windows_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:install_and_configure_php_7.0.26_on_windows_server [2018/01/02 14:03] – [Test Your PHP Installation] wikiadmin | wiki:install_and_configure_php_7.0.26_on_windows_server [2022/10/29 17:31] (current) – [Configure the php.ini File] wikiadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Install and Configure PHP 7.0.26 On Windows Server====== | ======Install and Configure PHP 7.0.26 On Windows Server====== | ||
- | + | ====Obtain the PHP Binaries for Your Windows Operating System and the Visual C++ Redistributables for Visual Studio==== | |
- | -Go to [[http:// | + | -Go to [[http:// |
- | -If you are planning to use FastCGI support in IIS, then you should download a Non-Thread-Safe version of PHP. Note that the architecture of IIS and the FastCGI extension provide an isolation model that keeps requests separate, removing the need for a thread-safe version. | + | -If you are planning to use FastCGI support in IIS, which you should for performance purposes, then you should download a Non-Thread-Safe version of PHP. Note that the architecture of IIS and the FastCGI extension provide an isolation model that keeps requests separate, removing the need for a thread-safe version. |
-If your Windows Server has a 32 bit operating system, then download the Zip file for VC14 x86 Non-Thread Safe | -If your Windows Server has a 32 bit operating system, then download the Zip file for VC14 x86 Non-Thread Safe | ||
-If your Windows Server has a 64 bit operating system, then download the Zip file for VC14 x64 Non-Thread Safe | -If your Windows Server has a 64 bit operating system, then download the Zip file for VC14 x64 Non-Thread Safe | ||
Line 10: | Line 10: | ||
-Click " | -Click " | ||
-After extracting, view the root of the extracted files in Windows Explorer. | -After extracting, view the root of the extracted files in Windows Explorer. | ||
+ | **Caution - 500 Errors with Newer PHP Builds: | ||
====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: | -Make sure that you have enabled FastCGI support for IIS7. This is the URL for the source article containing the following listed instructions: | ||
- | -Open the " | + | -**Note on Prerequisites**: |
+ | -**Note2 on Prerequisites**: | ||
+ | -__Begin Instructions to Enable FastCGI Role Service__. | ||
-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 " | -Under Application Development category, select the checkbox next to " | ||
Line 36: | 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: | -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: | ||
- | -Set extension_dir to point to a location where PHP extensions reside. This is typically extension_dir = " | + | -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 " |
-Set error_log=" | -Set error_log=" | ||
-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 64: | 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:// | See: [[https:// | ||
- | To be continued | + |
wiki/install_and_configure_php_7.0.26_on_windows_server.1514901829.txt.gz · Last modified: 2018/01/02 14:03 (external edit)