Скачать php exe для windows 10

This site is dedicated to supporting PHP on Microsoft Windows. It also supports ports of PHP extensions or features as well as providing special builds for the various Windows architectures.
  • PHP For Windows

    This site is dedicated to supporting PHP on Microsoft Windows.
    It also supports ports of PHP extensions or features as well as
    providing special builds for the various Windows architectures.

    If you like to build your own PHP binaries, instructions can be found on the
    Wiki.

    PECL For Windows

    Which version do I choose?

    IIS

    If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.

    Apache

    Please use the Apache builds provided by Apache Lounge.
    They provide VC15 and VS16 builds of Apache for x86 and x64.
    We use their binaries to build the Apache SAPIs.

    With Apache, using the apache2handler SAPI, you have to use the Thread Safe (TS) versions of PHP.

    VC15 & VS16

    More recent versions of PHP are built with VC15 or VS16 (Visual Studio 2017 or 2019 compiler respectively) and
    include improvements in performance and stability.

    — The VC15 and VS16 builds require to have the Visual C++ Redistributable for Visual Studio 2015-2019 x64 or x86 installed

    TS and NTS

    TS refers to multithread capable builds. NTS refers to single thread only builds. Use case for TS binaries involves interaction with
    a multithreaded SAPI and PHP loaded as a module into a web server. For NTS binaries the widespread use case is interaction with a web server through
    the FastCGI protocol, utilizing no multithreading (but also for example CLI).

    What is PGO?

    Profile Guided Optimization is an optimization
    feature available in Microsoft’s Visual C++ compiler that allows you to optimize an output file based on profiling data collected during test runs of the application or module.

    Links:

    • PGO on MSDN
    • Visual C++ Team Blog — PGO with PHP
    • PHP PGO build for maximum performance (old)

    amd64 (x86_64) Builds

    PHP 7 provides full 64-bit support. The x64 builds of PHP 7 support native 64-bit integers, LFS, 64-bit memory_limit and much more.

    x64 builds are recommended (almost all Windows installations support x64).

    Long and multibyte path

    PHP 7.1+ supports long and UTF-8 paths. See the manual for details.

    Archives

    Past releases are available from our archives, older versions
    not found there can be found at the Museum.

  • PHP 8.2 (8.2.2)

    Download source code [25.9MB]

    Download tests package (phpt) [15.44MB]

    VS16 x64 Non Thread Safe (2023-Jan-31 22:06:06)

    • Zip
      [30.21MB]
      sha256: b464e94c7022e3df826e001d3837c92542bf89d7e8cacab0ef75835771e77c56
    • Debug Pack
      [24.49MB]
      sha256: 75a089780e1c4e853bccc079112d6d529a0d290d98ffaf4c7107e2e649382b58
    • Development package (SDK to develop PHP extensions)
      [1.23MB]
      sha256: 0f0120b72cd650f48eeaa0e5dcc8039d0833a8e32f4ec6b78ac0d49b2f4d0933

    VS16 x64 Thread Safe (2023-Jan-31 21:56:02)

    • Zip
      [30.32MB]
      sha256: 31c2c009a66ccaae5c39b9aea37ff55ae6fa080c7b48317513699b4df2582e14
    • Debug Pack
      [24.5MB]
      sha256: 1bfd9b4e6b4ac57bcaf515d9183b8e6730796b3dd149f7837bd5b54dc032960b
    • Development package (SDK to develop PHP extensions)
      [1.23MB]
      sha256: 4fb4c958505e8c1578662ead23b3b900fe06f46dabb69e6c884b736cb7e78ddb

    VS16 x86 Non Thread Safe (2023-Jan-31 21:47:40)

    • Zip
      [27.12MB]
      sha256: db7ce99b1fd8ded5bab46f20bad1b8861dd9113c620ac37c7ec6d14375bb449c
    • Debug Pack
      [25.09MB]
      sha256: 434ecf5029bf0f71cdcc7fbb270a91c298312fb5bd011950d778a582a86981a5
    • Development package (SDK to develop PHP extensions)
      [1.23MB]
      sha256: d13cc4750e952997b77796a658a5dba3a29efbea11346ae9884e9b7bd4d35c6c

    VS16 x86 Thread Safe (2023-Jan-31 21:57:38)

    • Zip
      [27.1MB]
      sha256: d48104994da4f0d56c1d5382da4be11af8a9991872b04f7167a98f7182594a75
    • Debug Pack
      [24.73MB]
      sha256: bcfbf756b7bbdb5e70b69b4583b4fff7e2561310ba3664e075a44fd1bc7012cb
    • Development package (SDK to develop PHP extensions)
      [1.23MB]
      sha256: 40c31c809078893667230c305871f5f293dcd5e210e1c7e8cf15c05eed910031

    PHP 8.1 (8.1.15)

    Download source code [25.42MB]

    Download tests package (phpt) [15.19MB]

    VS16 x64 Non Thread Safe (2023-Feb-01 10:02:39)

    • Zip
      [29.26MB]
      sha256: fcc6f9195e8083616dd626177f0f3a25f1ca63fc06b075c7fa988d9c19a708e4
    • Debug Pack
      [23.85MB]
      sha256: 6c87551949755c72702e63c2a1418da8beafda390717dd727f59f3dd3f1a6f1d
    • Development package (SDK to develop PHP extensions)
      [1.21MB]
      sha256: fb0439045cbce3243f9d782506515115980064144609b6cbab0fc795334a12ee

    VS16 x64 Thread Safe (2023-Feb-01 00:27:30)

    • Zip
      [29.36MB]
      sha256: 116b890c0053c28d140d93c699e5c6995944fcc9420ac117f44772b1bb69f9ff
    • Debug Pack
      [23.85MB]
      sha256: d28374f3252a4e124148c4f754127b01c15e9a59c6c08c5c8f0ea196280bcb68
    • Development package (SDK to develop PHP extensions)
      [1.21MB]
      sha256: 093415a4ed5e46a42cdd8554aef8a168be187b88d31cde0c1f8d06ecd640a58c

    VS16 x86 Non Thread Safe (2023-Feb-01 00:34:52)

    • Zip
      [26.32MB]
      sha256: ff793db8badd3d52651bb3a73f45bae095fef25f064c460805ccbe5bb8659e83
    • Debug Pack
      [24.41MB]
      sha256: 336a9428dd9c3e796f7078ec29ead01154ae666e23f35f1e7e8033383bb40044
    • Development package (SDK to develop PHP extensions)
      [1.21MB]
      sha256: 03ec8817ac5318d59a698a5d831e40006f3f6823ae08a0d27e6db4669f6ba465

    VS16 x86 Thread Safe (2023-Feb-01 00:34:52)

    • Zip
      [26.3MB]
      sha256: 000bf25e12c8bafeac2d732f5ea37eff49c50cf12d42ebe3bd95d95028e6086b
    • Debug Pack
      [24.05MB]
      sha256: fa38a832065168a973e5d34cb50ff54933b0232ecfb1a17d4fc4925d379c548b
    • Development package (SDK to develop PHP extensions)
      [1.21MB]
      sha256: bea6610299bf8109cfcc81986975bd63bd3edaf27edb6180a8b4115e10f57d37

    PHP 8.0 (8.0.27)

    Download source code [23.47MB]

    Download tests package (phpt) [13.55MB]

    VS16 x64 Non Thread Safe (2023-Jan-03 17:44:14)

    • Zip
      [25.52MB]
      sha256: 1449c94819fc2d7c58b42e8592307282faaa4eec718268beb82d9524e651adad
    • Debug Pack
      [23.21MB]
      sha256: da9cf0723c567ef54d2db87f1d74bc4372a755f211c158a4286b601dea1dfca9
    • Development package (SDK to develop PHP extensions)
      [1.16MB]
      sha256: bfa1914f3adc47297c658610394dfdce26d70ef33ee791e136cc0a16650d7c89

    VS16 x64 Thread Safe (2023-Jan-03 17:41:52)

    • Zip
      [25.63MB]
      sha256: 54d6cc64856268916f7a3ddaae7d636c9f54dd11b0baf083218baf102fe153fa
    • Debug Pack
      [23.22MB]
      sha256: e61ee5b4bf96c8fe972d80d1d70def1a34d9df253f04ee1089d2fa6643d6192d
    • Development package (SDK to develop PHP extensions)
      [1.16MB]
      sha256: 661c83f05588ebdb754ad2ab5b8f11ba57934fd318425d3d6ef8a3abaff1ca1b

    VS16 x86 Non Thread Safe (2023-Jan-03 17:57:10)

    • Zip
      [23.65MB]
      sha256: f997a883eda473724ca939d929369dd523b887357f60dac52a85f2e83d2e821a
    • Debug Pack
      [23.86MB]
      sha256: f07d9abf7889bf50f8e3ecb15985c0d3c7af0b5843f52aeff57e8e60bdecad52
    • Development package (SDK to develop PHP extensions)
      [1.16MB]
      sha256: bb82627f57c5fc3583b9a9d256bea315723c21470ce8307e249902c6e3aa35ca

    VS16 x86 Thread Safe (2023-Jan-03 17:35:46)

    • Zip
      [23.64MB]
      sha256: c8163879e3e93c87afd63ad287ed2543503abc31be5280122616688146082d54
    • Debug Pack
      [23.52MB]
      sha256: 3dd2171285213c57ebae007e3e9b219a320f55e87234de037187dac3345a7f83
    • Development package (SDK to develop PHP extensions)
      [1.16MB]
      sha256: ae5b51fc67cd7a70800dac23126f95d10247fadcc554e2d2609aef833e88e462

Current Stable
PHP 8.2.2 (Changelog)

  • php-8.2.2.tar.gz (sig) [19,605Kb] 02 Feb 2023
    d82dda50356cebf6b6e14dbb576b14bc8b85f0f4476a787f0f50611f11eb37d2
  • php-8.2.2.tar.bz2 (sig) [15,257Kb] 02 Feb 2023
    f5223a5274eda8b40c19e47de0de4678c65d64401ccf710e2464962eb8136804
  • php-8.2.2.tar.xz (sig) [11,657Kb] 02 Feb 2023
    bdc4aa38e652bac86039601840bae01c0c3653972eaa6f9f93d5f71953a7ee33
  • Windows downloads

GPG Keys for PHP 8.2

Old Stable
PHP 8.1.15 (Changelog)

  • php-8.1.15.tar.gz (sig) [19,247Kb] 02 Feb 2023
    4035236180efac535ff4f22db9ef3195672f31e3e0aa88f89c38ac0715beca3b
  • php-8.1.15.tar.bz2 (sig) [15,089Kb] 02 Feb 2023
    18da0a94228f4207f8b9e3e23e881f2b74d0d6caefb908bdb5863d4a01035cc6
  • php-8.1.15.tar.xz (sig) [11,537Kb] 02 Feb 2023
    cd450fb4ee50488c5bf5f08851f514e5a1cac18c9512234d9e16c3a1d35781a6
  • Windows downloads

GPG Keys for PHP 8.1

Old Stable
PHP 8.0.27 (Changelog)

  • php-8.0.27.tar.gz (sig) [16,083Kb] 05 Jan 2023
    fe2376faaf91c28ead89a36e118c177f4a8c9a7280a189b97265da1af1f4d305
  • php-8.0.27.tar.bz2 (sig) [12,886Kb] 05 Jan 2023
    5fd882b14377c158c1b55cc6ace91fb8c19b77c596d5831ad124fbbbc902dbc8
  • php-8.0.27.tar.xz (sig) [10,549Kb] 05 Jan 2023
    f942cbfe2f7bacbb8039fb79bbec41c76ea779ac5c8157f21e1e0c1b28a5fc3a
  • Windows downloads

GPG Keys for PHP 8.0


GPG Keys

The releases are tagged and signed in the PHP Git Repository.
The following official GnuPG keys of the current PHP Release Manager can be used
to verify the tags:

PHP 8.2

pub   rsa4096 2021-04-01 [SC]
      1198 C011 7593 497A 5EC5  C199 286A F1F9 8974 69DC
uid           [ultimate] Pierrick Charron <pierrick@php.net>
sub   rsa4096 2021-04-01 [E]

pub   rsa4096 2021-04-26 [SC] [expires: 2025-11-24]
      39B6 4134 3D8C 104B 2B14  6DC3 F9C3 9DC0 B969 8544
uid           [ultimate] Ben Ramsey <ramsey@php.net>
sub   rsa4096 2021-04-26 [E] [expires: 2025-11-24]

pub   rsa4096 2021-03-26 [SC] [expires: 2030-03-26]
      E609 13E4 DF20 9907 D8E3  0D96 659A 97C9 CF2A 795A
uid           [ultimate] Sergey Panteleev <sergey@php.net>
uid           [ultimate] Sergey Panteleev <sergey@s-panteleev.ru>
uid           [ultimate] Sergey Panteleev <sergey@sergeypanteleev.com>
sub   rsa4096 2021-03-26 [E] [expires: 2025-03-26]
  

PHP 8.1

pub   2048R/31CBD89E 2016-12-08
      Key fingerprint = 5289 95BF EDFB A719 1D46  839E F9BA 0ADA 31CB D89E
uid                  Joe Watkins <krakjoe@php.net>

pub   rsa4096 2021-04-26 [SC] [expires: 2025-11-24]
      39B6 4134 3D8C 104B 2B14  6DC3 F9C3 9DC0 B969 8544
uid           [ultimate] Ben Ramsey <ramsey@php.net>
sub   rsa4096 2021-04-26 [E] [expires: 2025-11-24]

pub   rsa4096 2021-04-01 [SC]
      F1F6 9223 8FBC 1666 E5A5  CCD4 199F 9DFE F6FF BAFD
uid           [ultimate] Patrick Allaert <patrickallaert@php.net>
sub   rsa4096 2021-04-01 [E]
  

PHP 8.0

pub   4096R/70D12172 2017-04-14 [expires: 2024-04-21]
      Key fingerprint = 1729 F839 38DA 44E2 7BA0  F4D3 DBDB 3974 70D1 2172
uid                  Sara Golemon <pollita@php.net>

pub   rsa4096 2020-05-09 [SC] [expires: 2024-05-08]
      BFDD D286 4282 4F81 18EF  7790 9B67 A5C1 2229 118F
uid           [ultimate] Gabriel Caruso (Release Manager) <carusogabriel@php.net>
sub   rsa4096 2020-05-09 [E] [expires: 2024-05-08]

pub   rsa4096 2022-08-30 [SC] [expires: 2024-08-29]
      2C16 C765 DBE5 4A08 8130  F1BC 4B9B 5F60 0B55 F3B4
uid           [ultimate] Gabriel Caruso <carusogabriel@php.net>
sub   rsa4096 2022-08-30 [E] [expires: 2024-08-29]
  

A full list of GPG keys used for current and older releases is also
available.

PHP

The PHP Interpreter

PHP is a popular general-purpose scripting language that is especially suited to
web development. Fast, flexible and pragmatic, PHP powers everything from your
blog to the most popular websites in the world. PHP is distributed under the
PHP License v3.01.

Push
Build status
Build status
Build Status
Fuzzing Status

Documentation

The PHP manual is available at php.net/docs.

Installation

Prebuilt packages and binaries

Prebuilt packages and binaries can be used to get up and running fast with PHP.

For Windows, the PHP binaries can be obtained from
windows.php.net. After extracting the archive the
*.exe files are ready to use.

For other systems, see the installation chapter.

Building PHP source code

For Windows, see Build your own PHP on Windows.

For a minimal PHP build from Git, you will need autoconf, bison, and re2c. For
a default build, you will additionally need libxml2 and libsqlite3.

On Ubuntu, you can install these using:

sudo apt install -y pkg-config build-essential autoconf bison re2c 
                    libxml2-dev libsqlite3-dev

On Fedora, you can install these using:

sudo dnf install re2c bison autoconf make libtool ccache libxml2-devel sqlite-devel

Generate configure:

Configure your build. --enable-debug is recommended for development, see
./configure --help for a full list of options.

# For development
./configure --enable-debug
# For production
./configure

Build PHP. To speed up the build, specify the maximum number of jobs using -j:

The number of jobs should usually match the number of available cores, which
can be determined using nproc.

Testing PHP source code

PHP ships with an extensive test suite, the command make test is used after
successful compilation of the sources to run this test suite.

It is possible to run tests using multiple cores by setting -jN in
TEST_PHP_ARGS:

make TEST_PHP_ARGS=-j4 test

Shall run make test with a maximum of 4 concurrent jobs: Generally the maximum
number of jobs should not exceed the number of cores available.

The qa.php.net site provides more detailed info about
testing and quality assurance.

Installing PHP built from source

After a successful build (and test), PHP may be installed with:

Depending on your permissions and prefix, make install may need super user
permissions.

PHP extensions

Extensions provide additional functionality on top of PHP. PHP consists of many
essential bundled extensions. Additional extensions can be found in the PHP
Extension Community Library — PECL.

Contributing

The PHP source code is located in the Git repository at
github.com/php/php-src. Contributions are most
welcome by forking the repository and sending a pull request.

Discussions are done on GitHub, but depending on the topic can also be relayed
to the official PHP developer mailing list internals@lists.php.net.

New features require an RFC and must be accepted by the developers. See
Request for comments — RFC and
Voting on PHP features for more information
on the process.

Bug fixes don’t require an RFC. If the bug has a GitHub issue, reference it in
the commit message using GH-NNNNNN. Use #NNNNNN for tickets in the old
bugs.php.net bug tracker.

Fix GH-7815: php_uname doesn't recognise latest Windows versions
Fix #55371: get_magic_quotes_gpc() throws deprecation warning

See Git workflow for details on how pull
requests are merged.

Guidelines for contributors

See further documents in the repository for more information on how to
contribute:

  • Contributing to PHP
  • PHP coding standards
  • Mailing list rules
  • PHP release process

Credits

For the list of people who’ve put work into PHP, please see the
PHP credits page.

Each software is released under license type that can be found on program pages as well as on search or category pages. Here are the most common license types:

Freeware

Freeware programs can be downloaded used free of charge and without any time limitations. Freeware products can be used free of charge for both personal and professional (commercial use).

Open Source

Open Source software is software with source code that anyone can inspect, modify or enhance. Programs released under this license can be used at no cost for both personal and commercial purposes. There are many different open source licenses but they all must comply with the Open Source Definition — in brief: the software can be freely used, modified and shared.

Free to Play

This license is commonly used for video games and it allows users to download and play the game for free. Basically, a product is offered Free to Play (Freemium) and the user can decide if he wants to pay the money (Premium) for additional features, services, virtual or physical goods that expand the functionality of the game. In some cases, ads may be show to the users.

Demo

Demo programs have a limited functionality for free, but charge for an advanced set of features or for the removal of advertisements from the program’s interfaces. In some cases, all the functionality is disabled until the license is purchased. Demos are usually not time-limited (like Trial software) but the functionality is limited.

Trial

Trial software allows the user to evaluate the software for a limited amount of time. After that trial period (usually 15 to 90 days) the user can decide whether to buy the software or not. Even though, most trial software products are only time-limited some also have feature limitations.

Paid

Usually commercial software or games are produced for sale or to serve a commercial purpose.

Выберите вариант загрузки:

  • скачать с сервера SoftPortal (для Windows 32-bit, zip-файл)
  • скачать с сервера SoftPortal (для Windows 64-bit, zip-файл)
  • скачать с официального сайта (для Windows 64-bit, zip-файл)
  • скачать с официального сайта (для Windows 32-bit, zip-файл)

Широко используемый язык скриптов, специально разработанный для Web-программирования. Среди достоинств PHP присутствует легкая интеграция в HTML, поддержка широкого круга баз данных, поддержку протоколов LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM и прочее (полное описание…)

Рекомендуем популярное

скачать PhpStormPhpStorm 2022.1.1

Мощный и навороченный редактор для PHP, HTML и JavaScript с возможностью анализа кода на лету,…

скачать phpMyAdminphpMyAdmin 5.2.0

phpMyAdmin — утилита для администрирования MySQL через web-интерфейс, написанная на PHP…

скачать PHPPHP 8.1.11

Широко используемый язык скриптов, специально разработанный для Web-программирования….

скачать phpDesignerphpDesigner 8.1.2

phpDesigner — мощная программа для создания, редактирования, отладки, анализа и публикации…

скачать VertrigoServVertrigoServ 2.57

VertrigoServ — профессиональный пакет программ, предназначенных для установки и управления…

Этот раздел содержит инструкции для ручной установки и настройки
PHP на Microsoft Windows.

Выбор и загрузка пакета дистрибутивов PHP

Загрузите дистрибутив PHP в виде zip-архива с
» PHP для Windows: Исполняемые файлы и исходные коды.
Существует несколько различных версий zip-пакетов — выберите версию, которая подходит для
используемого веб сервера:

  • Если PHP используется с IIS, тогда следует использовать PHP 5.3 VC9 Non Thread Safe или
    PHP 5.2 VC6 Non Thread Safe;

  • Если PHP используется с IIS7 или выше и версия PHP 5.3+, тогда должна использоваться версия
    дистрибутива PHP VC9.

  • Если PHP используется с Apache 1 или Apache 2 тогда выбирайте PHP 5.3 VC6 или
    PHP 5.2 VC6.

Замечание:

Версии VC9 компилируются с помощью Visual Studio 2008 и имеют улучшенную
производительность и стабильность. Версии VC9 требуют наличия в системе
» Microsoft 2008 C++ Runtime (x86) или
» Microsoft 2008 C++ Runtime (x64).

Структура пакетов PHP и их содержимое

Распакуйте содержимое zip архива в директорию по вашему выбору,
например C:PHP. Директория и структура файлов, извлеченных из zip, будет
такой:

Пример #1 Структура пакета PHP 5

c:php
   |
   +--dev
   |  |
   |  |-php5ts.lib                 -- версия php5.lib без поддержки многопоточности
   |
   +--ext                          -- DLL расширения для PHP
   |  |
   |  |-php_bz2.dll
   |  |
   |  |-php_cpdf.dll
   |  |
   |  |-...
   |
   +--extras                       -- пустой
   |
   +--pear                         -- начальная копия PEAR
   |
   |
   |-go-pear.bat                   -- скрипт установки PEAR 
   |
   |-...
   |
   |-php-cgi.exe                   -- исполняемый файл CGI
   |
   |-php-win.exe                   -- выполняет скрипты без открытой консоли
   |
   |-php.exe                       -- Исполняемый файл PHP для командной строки (CLI)
   |
   |-...
   |
   |-php.ini-development           -- настройки php.ini по умолчанию
   |
   |-php.ini-production            -- рекомендуемые настройки php.ini
   |
   |-php5apache2_2.dll             -- имеется только в многопоточной версии
   |
   |-php5apache2_2_filter.dll      -- имеется только в многопоточной версии
   |
   |-...
   |
   |-php5ts.dll                    -- ядро PHP DLL ( php5.dll в версии без поддержки многопоточности)
   | 
   |-...

Ниже представлен список модулей и исполняемых файлов, включенных в PHP zip
дистрибутив:

  • go-pear.bat — скрипт установки PEAR. Подробнее см. » Установка (PEAR).

  • php-cgi.exe — исполняемый файл CGI, который может быть использован во время запуска PHP
    на IIS через CGI или FastCGI.

  • php-win.exe — исполняемый файл PHP для выполнения PHP скриптов без использования консоли
    (например, приложения PHP, использующие Windows GUI).

  • php.exe — исполняемый файл PHP для выполнения PHP скриптов в консоли (CLI).

  • php5apache2_2.dll — модуль Apache 2.2.X.

  • php5apache2_2_filter.dll — фильтр Apache 2.2.X.

Изменение файла php.ini

После того, как содержимое пакета php извлечено, создайте копию php.ini-production с именем php.ini
в той же папке. Если необходимо, также возможно разместить php.ini в любом другом месте по вашему выбору,
но это потребует дополнительной настройки, которая приводится в разделе Настройка PHP.

Файл php.ini содержит правила исполнения PHP и инструкции по работе с
окружением, в котором он запускается. Ниже приводятся некоторые из настроек php.ini,
которые могут улучшить работу PHP в Windows. Некоторые из них опциональны. Есть
много других директив, которые могут быть полезны в вашем окружении — обращайтесь к
списку директив php.ini за более подробной информацией.

Обязательные директивы:

  • extension_dir = <путь к директории расширений>extension_dir
    указывает директорию, где расположены расширения PHP. Путь может быть абсолютным
    (например «C:PHPext») или относительным (например «.ext»). Используемые в php.ini расширения
    должны быть расположены в extension_dir.

  • extension = xxxxx.dll — Для каждого подключаемого расширения необходимо указать директиву «extension=».
    Расширения из extension_dir, отмеченные такой директивой, загружаются при старте PHP.

  • log_errors = On — в PHP есть механизм ведения лога ошибок, который может использоваться для сохранения ошибок в файле
    или для отправки в сервис (например syslog). Механизм также использует значение директивы error_log. Когда PHP исполняется службой IIS,
    log_errors должен быть включен с корректным error_log.

  • error_log = <пусть к файлу лога ошибок> — error_log нужен для обозначения абсолютного
    или относительного пути к файлу, в который протоколируются ошибки PHP. Этот файл должен доступным для записи веб-сервером.
    Самые распространенные места размещения этого файла — различные временные TEMP директории, например «C:inetpubtempphp-errors.log».

  • cgi.force_redirect = 0 — Эта директива необходима для исполнения под IIS.
    Это механизм защиты директории, требуемый многими другими веб серверами. Однако, включение его под IIS
    вызовет ошибки ядра PHP в Windows.

  • cgi.fix_pathinfo = 1 — Обеспечивает поддержку PATH_INFO согласно спецификации CGI.
    IIS FastCGI использует эту настройку.

  • fastcgi.impersonate = 1 — FastCGI под IIS поддерживает способность идентифицировать
    маркеры безопасности вызывающего клиента. Это позволяет IIS определять контекст безопасности, под которые выполняется запрос.

  • fastcgi.logging = 0 — Запись логов FastCGI должна быть выключена в IIS. Если запись включена,
    тогда все сообщения любых классов распознаются FastCGI как ошибки, что приведет IIS к генерации исключения HTTP 500.

Опциональные директивы

  • max_execution_time = ## — Эта директива указывает максимальное время выполнения любого скрипта PHP.
    По умолчанию равно 30 секундам. Следует увеличить это значение, если приложение PHP должно выполняться дольше.

  • memory_limit = ###M — Количество памяти, доступное процессу PHP, в Мб.
    По умолчанию 128, что достаточно для большинства PHP приложений. Некоторым сложным приложениям может потребоваться больше памяти.

  • display_errors = Off — Директива определяет, какие ошибки следует возвращать веб-серверу для
    дальнейшего протоколирования. При значении «On» PHP сообщает обо всех видах ошибок, которые
    приводятся в директиве error_reporting.
    По соображениям безопасности рекомендуется установить в «Off» на рабочих серверах, чтобы исключить передачу
    вывода ошибок конечному пользователю, так как они могут содержат информацию, угрожающую безопасности приложения.

  • open_basedir = <пути к директориям, разделенные точкой с запятой>, например
    openbasedir=»C:inetpubwwwroot;C:inetpubtemp». Эта директива указывает пути к директориям, в которых PHP
    разрешены операции с файловой системой. Любая операция с файлами и директориями вне указанных путей будет приводить к ошибке.
    Эта директива особенно полезна для предотвращения доступа к установленному PHP в окружениях разделяемых хостингов для предотвращения
    доступа PHP скриптов к любым файлам вне корневой директории веб сайта.

  • upload_max_filesize = ###M и post_max_size = ###M
    Максимальный разрешенный размер загруженного файла и присланных данных соответственно. Значения этих директив должны быть
    увеличены, если приложения PHP должны обрабатывать большие загружаемые файлы, например изображения или видеофайлы.

После установки PHP в вашей системе, следующим шагом будет выбор веб-сервера и его дальнейшая
настройка для работы с PHP. Выберите конкретный веб-сервер в оглавлении к данному материалу.

Помимо запуска PHP с помощью веб-сервера, PHP может быть запущен из командной строки
как .BAT скрипт. За более подробной информацией обращайтесь к материалу
Консоль PHP на Microsoft Windows.

Вернуться к: Установка в системах Windows

Download, discover, share

Windows

PHP icon


290.2 k



Dynamic web programming language

Apps recommended for you

Opera GX icon

A browser that’s geared towards gamers

WhatsApp Desktop icon

Use Whatsapp from your Desktop

Zoom Cloud Meetings icon

Video calls and meetings with tons of other possibilities

Windows 10 icon

Download the latest Windows 10 ISO on your computer

Telegram for Desktop icon

Chat with all your Telegram contacts from your desktop

Google Chrome icon

Fast, easy and clean internet surfing experience by Google

Free Fire MAX (GameLoop) icon

Play Free Fire Max from your PC!

GS Auto Clicker icon

Click automatically

More information

License Free
Op. System Windows
Category PHP
Language English
Author The PHP Group
Size 29.36 MB
Downloads 290,214
Date Dec 7th, 2022
SHA256 1bf30c1e8b8d6bd6b3e79f4caa1404a65a5a74000101a192d8365becd7044b49
Content Rating All ages
Why is this app published on Uptodown?

(More information)

Similar to PHP

WampServer icon

Easy installation of Apache, MySQL and PHP

Gallery icon

Content manager based on photo albums

PHP Editor icon

Complete and easy-to-use PHP editor

CodeIgniter icon

PHP Framework for web development

FPDF icon

PHP class that allows you to print as PDF

PHP Runner icon

Create PHP pages to modify the content of a database

phpMyAdmin icon

Manage your MySQL database on the web

Class Upload PHP icon

A class in PHP for processing images

Vim icon

Text editor that makes things easier for programmers

CudaText icon

A neat cross-platform text editor

DBeaver icon

Manage several databases from one single tool

Android Studio icon

The new programming environment for Android

EmEditor Professional icon

Advanced text editor for programmers

UltraEdit icon

Everything a programmer expects from an editor

Exportizer icon

VLSoftware.net

GameMaker Studio icon

Create you own videogames for any platform

How to Install Composer and PHP on Windows 10

Last updated on April 21st, 2022 | 83 replies

In this guide we will install Composer and PHP on Windows 10 so that we can install dependencies for our web apps directly from Windows command line.

1. Download and Install Visual C++

In order to run PHP on Windows 10, you will need to install Visual C++ Redistributable for Visual Studio. You can download it from the Windows Download page or click the direct link below.

  • Download: VC_redist.x64.exe (64 bit) or VC_redist.x86.exe (32 bit)

Once downloaded, run the installer and click Install.

Install Visual C++ Redistributable for Visual Studio 2015

2. Download and Extract PHP

Go to the Windows PHP download page and download the .zip of the version of PHP you require. In this guide, we are installing PHP 7.4 VC15 x64 Non Thread Safe, which is the latest version as of writing (Jan 2020).

Once downloaded, create a new folder in c:php7 (or wherever you prefer) and extract your PHP zip to it.

PHP7 for Windows extracted

3. Download and Install Composer

  • Download Composer-Setup.exe from the Composer Download page.

In the second step of Composer Setup, make sure the correct path to php.exe is set and click Next.

Installing Composer PHP Windows 10

If Setup prompts to create php.ini, allow it and click Next.

Skip the Proxy URL settings, just click Next then click Install.

Click Finish once install is complete.

4. Test PHP

If you have any Command Prompt windows currently open, close them now.

Open Command Prompt, type php -v and press Enter. You should now see the PHP version.

Windows 10 PHP 7 in Command Prompt

If it returns a PHP version, you can skip to Step 6 to test Composer.

If you get an error “‘php’ is not recognized as an internal or external command,
operable program or batch file.”, you may need to Add a Path Environment Variable.

5. Add Path Environment Variable

Composer setup usually does this for you, but if for whatever reason it didn’t, you can set one up manually.

So that you don’t have to type the whole path to php.exe every time you run a PHP command, you should add c:php7 as a path environment variable.

Open System Properties by clicking the start menu and typing sysdm.cpl and press Enter.

Windows 10 view advanced system settings

In System Properties, click Environment Variables.

Windows 10 System Properties

In System Variables, click Path and then click Edit.

Click New, type the path to your PHP folder (c:php7) and click OK.

Add new path environment variable Windows 10

Close the System Properties dialogue by clicking OK.

6. Test Composer

Open up Command Prompt and type composer -V (that’s uppercase V).

If all was installed correctly, you should see a version number.

Composer in Windows 10 command prompt

Hurrah! You can now run Composer and PHP on Windows 10.

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how.

PHP is an open source general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. It is one of the first developed server-side scripting languages to be embedded into an HTML source document rather than calling an external file to process data. The code is interpreted by a Web server with a PHP processor module which generates the resulting Web page. It also has evolved to include a command-line interface capability and can be used in standalone graphical applications.

If you are new to PHP and want to get some idea of how it works, try the introductory tutorial.

After that, check out the online manual.

What’s New

Core:

  • Fixed —CGI— support of run-tests.php.
  • Fixed incorrect double to long casting in latest clang.
  • Fixed bug GH-9266 (GC root buffer keeps growing when dtors are present).

Date:

  • Fixed bug GH-8730 (DateTime::diff miscalculation is same time zone of different type).
  • Fixed bug GH-8964 (DateTime object comparison after applying delta less than 1 second).
  • Fixed bug GH-9106: (DateInterval 1.5s added to DateTimeInterface is rounded down since PHP 8.1.0).
  • Fixed bug #81263 (Wrong result from DateTimeImmutable::diff).

DBA:

  • Fixed LMDB driver memory leak on DB creation failure.
  • Fixed bug GH-9155 (dba_open(«non-existing», «c-«, «flatfile») segfaults).

IMAP:

  • Fixed bug GH-9309 (Segfault when connection is used after imap_close()).

Intl:

  • Fixed IntlDateFormatter::formatObject() parameter type.

MBString:

  • Fixed bug GH-9008 (mb_detect_encoding(): wrong results with null $encodings).

OPcache:

  • Fixed bug GH-9033 (Loading blacklist file can fail due to negative length).
  • Fixed bug GH-9164 (Segfault in zend_accel_class_hash_copy).

PDO_SQLite:

  • Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values).

SQLite3:

  • Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values).

Streams:

  • Fixed bug GH-8472 (The resource returned by stream_socket_accept may have incorrect metadata).
  • Fixed bug GH-8409 (SSL handshake timeout leaves persistent connections hanging).

Обновлено

2021-09-29 18:24:48

Совместимость

Windows 7, Windows 8, Windows 10

Описание

Для изучения и использования серверного языка программирования, разработанного для создания web-страниц, пользователю даётся возможность скачать PHP. Загрузить PHP можно бесплатно. Язык позволяет создавать сайты как динамических, так и интерактивных web-приложений. Преимущество PHP для Windows перед другими языками в том, что программный код вставляется непосредственно в язык разметки гипертекста HTML, на котором написано большинство сайтов.

Поговорим об особенностях этого скриптового языка.

  • Файл PHP состоит из тегов, имеет расширение php.
  • У гипертекстового языка HTML, на котором, как правило, написаны многие сайты, отсутствует динамизм. Для изменения фрагмента, который повторяется на всех страницах, например, в шапке сайта, потребуется вписывать изменения во все файлы. Для сайта, работающего на PHP, меняется только один документ, содержащий данный фрагмент. Повторяющие участки кода выносятся отдельно и после изменений динамически подгружаются на места, где используются.
  • Созданная на языке скриптов веб-страница хранится на сервере. При обращении пользователя к странице сервер выполняет команды и возвращает результат в виде html-кода. Код отображается в браузере как текст, картинки, видео, представляющие из себя контент. Команды не выполняются браузером на компьютере пользователя. Браузер, формируя внешний вид страницы, посылает дополнительные запросы к серверу.
  • Язык приложения PHP прост в освоении.
  • Для тестирования PHP-сценариев и веб-страниц потребуется веб-сервер.

    Скачать бесплатно PHP для компьютера можно на нашем сайте.

    Понравилась статья? Поделить с друзьями:
  • Скачать pdf reader для windows vista
  • Скачать photoviewer на windows 10 на русском бесплатно
  • Скачать pdf reader для windows 11 бесплатно на русском языке бесплатно
  • Скачать photoshop для windows 7 через торрент
  • Скачать pdf reader для windows 10 через торрент