Upgrading PHP on Windows
Installing and upgrading on Windows Server 2008
TK
Installing and upgrading on Windows 7
PHP version 5.6
- Download PHP for Windows.
- Non-thread safe for development use on a desktop (as opposed to a machine running IIS).
- Unzip the download and install in the root of the
c:drive, e.g.c:\php56\.
- Set the path to the
php.inifile.- regedit >
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.6 - String value:
IniFilePath>c:\PHP56 - (The path can simply be
HKEY_LOCAL_MACHINE\SOFTWARE\PHP, or include the version:HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5, orHKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.6, orHKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.6.5)
- regedit >
- To use PHP from the command line, update the
PATHenvironment variable.- Control Panel > System and Security > System > Advanced System Settings > Advanced tab > Environment Variables > System Variables > PATH
- Check for other PHP-specific environment variables:
> get-childitem env: select-string -pattern "php"
- Edit the
php.inifile.- Set timezone:[1]
date.timezone = "America/Los_Angeles"
- Set extensions directory:
extension_dir - Uncomment needed extensions, such as
php_curl.dll,php_pdo_mysql.dll,php_mysql.dll,php_mysqli.dll, etc.
- Set timezone:[1]
Notes
- ↑ [date.timezone = "America/Los_Angeles" List of Supported Timezones/America], PHP Manual