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
Last revisionBoth sides next revision
wiki:install_and_configure_php_7.0.26_on_windows_server [2018/01/02 15:08] – [Enable FastCGI Role Service for IIS7] wikiadminwiki:install_and_configure_php_7.0.26_on_windows_server [2022/10/29 17:28] – [Configure the php.ini File] wikiadmin
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 in PHP8 for "Windows" 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.txt · Last modified: 2022/10/29 17:31 by wikiadmin