Views: 1842 (Data available since 06.02.2017)
In order to install PHP, first of all the PHP 5 installation package shall be downloaded from http://windows.php.net/download/ (Microsoft recommends a Non-thread-safe (NTS) installation package to be used).
Launch the installation package and follow the instructions of the Setup Wizard.
First Step (Installation Start)
The first window of the Wizard informs about the commencement of the installation and provides information about the product.
Second Step of the Wizard (License Agreement)
Read the license agreement carefully. If you agree with its terms and conditions, check the box I accept the terms in the License Agreement.
To proceed with the installation please click Next.
Third Step of the Wizard (Directory Selection)
Please choose the directory to install the software and click Next.
Fourth Step of Installation (Web Server Selection)
Please select IIS FastCGI as the installation web server and click Next to proceed with the installation.
Fifth Step of the Wizard (Component Selection)
Include the necessary Extensions (PHP add-ins) to be installed:
- LDAP (in case you will use LDAP authorization);
- Multi-Byte String (this extension is required if product is to be used in the UTF-8 encoding);
Note: said extensions may be manually added later as extension=name_of_extension_file.dll in the file php.ini in the folder where PHP was installed. For example:
To continue the installation, please click Next.
Sixth Step of the Wizard (Installation)
Click Install to start the installation process:
Please wait while the Setup Wizard copies and installs files.
Seventh Step of the Wizard (Completion of Installation)
PHP has been installed successfully. Please click Finish to exit the Wizard.
PHP must be setup immediately after its installation:
- Go to a folder where PHP was installed using any file manager.
- Open php.ini for editing.
- Please set the following parameters:
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
short_open_tag = On
extension_dir = "C:\<path_to_folder>\PHP\ext"
allow_call_time_pass_reference = On
display_errors = On
Note: In Bitrix24 Self-hosted
<? is used instead of
Note: inetpub means a location where sites will be placed. This folder exists by default.
Please do the following to check the PHP setup:
- Go to Start > Run;
- Open command prompt window using the command
- Once in the command prompt window, go to a folder with PHP using the following command:
- Give the command info to php:
If everything was done properly, the same configuration file will be offered (php.ini).