Php скачать для windows 10 64 bit с официального

GPG Keys for PHP 8.2

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 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

[To Parent Directory]

2/1/2023 10:01 AM <dir> archives
2/1/2023 10:05 AM 13317 cache.info
6/15/2021 12:31 AM <dir> latest
11/2/2022 9:46 PM 26132214 php-7.4.33-nts-Win32-vc15-x64.zip
11/2/2022 9:46 PM 24327462 php-7.4.33-nts-Win32-vc15-x86.zip
11/2/2022 9:47 PM 23957448 php-7.4.33-src.zip
11/2/2022 9:47 PM 26237519 php-7.4.33-Win32-vc15-x64.zip
11/2/2022 9:47 PM 24301774 php-7.4.33-Win32-vc15-x86.zip
1/3/2023 5:44 PM 26762392 php-8.0.27-nts-Win32-vs16-x64.zip
1/3/2023 5:57 PM 24795408 php-8.0.27-nts-Win32-vs16-x86.zip
1/3/2023 5:57 PM 24608802 php-8.0.27-src.zip
1/3/2023 5:41 PM 26871833 php-8.0.27-Win32-vs16-x64.zip
1/3/2023 5:35 PM 24784391 php-8.0.27-Win32-vs16-x86.zip
2/1/2023 10:02 AM 30677928 php-8.1.15-nts-Win32-vs16-x64.zip
2/1/2023 12:34 AM 27597306 php-8.1.15-nts-Win32-vs16-x86.zip
2/1/2023 12:34 AM 26656231 php-8.1.15-src.zip
2/1/2023 12:27 AM 30786738 php-8.1.15-Win32-vs16-x64.zip
2/1/2023 12:34 AM 27573014 php-8.1.15-Win32-vs16-x86.zip
1/31/2023 10:06 PM 31679926 php-8.2.2-nts-Win32-vs16-x64.zip
1/31/2023 9:47 PM 28437263 php-8.2.2-nts-Win32-vs16-x86.zip
1/31/2023 10:06 PM 27152978 php-8.2.2-src.zip
1/31/2023 9:56 PM 31790228 php-8.2.2-Win32-vs16-x64.zip
1/31/2023 9:57 PM 28411464 php-8.2.2-Win32-vs16-x86.zip
11/2/2022 9:47 PM 23065686 php-debug-pack-7.4.33-nts-Win32-vc15-x64.zip
11/2/2022 9:47 PM 24044095 php-debug-pack-7.4.33-nts-Win32-vc15-x86.zip
11/2/2022 9:47 PM 23070148 php-debug-pack-7.4.33-Win32-vc15-x64.zip
11/2/2022 9:47 PM 23696749 php-debug-pack-7.4.33-Win32-vc15-x86.zip
1/3/2023 5:44 PM 24333179 php-debug-pack-8.0.27-nts-Win32-vs16-x64.zip
1/3/2023 5:57 PM 25020678 php-debug-pack-8.0.27-nts-Win32-vs16-x86.zip
1/3/2023 5:42 PM 24347321 php-debug-pack-8.0.27-Win32-vs16-x64.zip
1/3/2023 5:36 PM 24664354 php-debug-pack-8.0.27-Win32-vs16-x86.zip
2/1/2023 12:22 AM 25004919 php-debug-pack-8.1.15-nts-Win32-vs16-x64.zip
2/1/2023 12:35 AM 25591744 php-debug-pack-8.1.15-nts-Win32-vs16-x86.zip
2/1/2023 12:27 AM 25008046 php-debug-pack-8.1.15-Win32-vs16-x64.zip
2/1/2023 12:35 AM 25220666 php-debug-pack-8.1.15-Win32-vs16-x86.zip
1/31/2023 10:06 PM 25674664 php-debug-pack-8.2.2-nts-Win32-vs16-x64.zip
1/31/2023 9:47 PM 26307955 php-debug-pack-8.2.2-nts-Win32-vs16-x86.zip
1/31/2023 9:56 PM 25692021 php-debug-pack-8.2.2-Win32-vs16-x64.zip
1/31/2023 9:57 PM 25933206 php-debug-pack-8.2.2-Win32-vs16-x86.zip
11/2/2022 9:47 PM 1134879 php-devel-pack-7.4.33-nts-Win32-vc15-x64.zip
11/2/2022 9:47 PM 1135207 php-devel-pack-7.4.33-nts-Win32-vc15-x86.zip
11/2/2022 9:47 PM 1136738 php-devel-pack-7.4.33-Win32-vc15-x64.zip
11/2/2022 9:47 PM 1136590 php-devel-pack-7.4.33-Win32-vc15-x86.zip
1/3/2023 5:44 PM 1217532 php-devel-pack-8.0.27-nts-Win32-vs16-x64.zip
1/3/2023 5:57 PM 1217713 php-devel-pack-8.0.27-nts-Win32-vs16-x86.zip
1/3/2023 5:42 PM 1218934 php-devel-pack-8.0.27-Win32-vs16-x64.zip
1/3/2023 5:35 PM 1219424 php-devel-pack-8.0.27-Win32-vs16-x86.zip
2/1/2023 12:22 AM 1267988 php-devel-pack-8.1.15-nts-Win32-vs16-x64.zip
2/1/2023 12:35 AM 1268434 php-devel-pack-8.1.15-nts-Win32-vs16-x86.zip
2/1/2023 12:27 AM 1269794 php-devel-pack-8.1.15-Win32-vs16-x64.zip
2/1/2023 12:35 AM 1270153 php-devel-pack-8.1.15-Win32-vs16-x86.zip
1/31/2023 10:06 PM 1292674 php-devel-pack-8.2.2-nts-Win32-vs16-x64.zip
1/31/2023 9:47 PM 1293043 php-devel-pack-8.2.2-nts-Win32-vs16-x86.zip
1/31/2023 9:56 PM 1294434 php-devel-pack-8.2.2-Win32-vs16-x64.zip
1/31/2023 9:57 PM 1294704 php-devel-pack-8.2.2-Win32-vs16-x86.zip
11/2/2022 9:47 PM 14202360 php-test-pack-7.4.33.zip
1/3/2023 5:57 PM 14213075 php-test-pack-8.0.27.zip
2/1/2023 12:35 AM 15927547 php-test-pack-8.1.15.zip
1/31/2023 10:06 PM 16187724 php-test-pack-8.2.2.zip
2/1/2023 10:05 AM 14019 releases.json
10/1/2020 1:35 PM 6986 sha1sum.txt
2/1/2023 10:00 AM 13088 sha256sum.txt

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.

В этой статье вы узнаете как установить php 7.0 и выше на Windows 10, очень просто, надеюсь эта статья будет полезна для вас.

Скачать PHP:

Сначала вам надо скачать PHP 7 для Windows 10 c сайта или для Windows 7, для этого заходим по ссылки, там нажимаем на Zip.

Скачать PHP 7.0

Как можете заметить, я скачиваю тут x64 битную, но не переживаете, там также вы можете скачать x32 битную версию, для этого надо прокрутить чуть ниже и найти, где будет написано x86, если в друг у вас архитектура не x64.

Установка PHP:

После того как скачали сам PHP, пришло время его установить, для архивируем архив который скачали, и создаём папку куда положим все файлы.

Архивируем PHP

Как можете заметить, я поместил все файлы в папку в документах, но это ещё не всё.

Теперь на надо добавить PHP в path, чтобы была возможность запускать PHP скрипты из командной строки, для этого заходим в «Этот компьютер» и там нажимаем правой кнопкой мыши, выбираем «Свойства».

Заходим в свойства Windows 10

Дальше в открывшемся окне с боку выбираем «Дополнительные параметры системы».

Заходим в дополнительные параметры системы

В открывшемся окне нажимаем на кнопку «Переменные среды…».

Заходим в параметры среды

В открывшемся окне выбираем внизу «Path» и нажимаем кнопку изменить.

добавить php в path

Нажимаем «Создать» и вписываем путь, куда вы архивировали ваш PHP, на этом всё и заканчивается, поздравляю вас, вы установили и подключили PHP.

Тест PHP:

Теперь не большой тест, что бы наперника проверить что мы правильно установили PHP, для этого открываем блокнот и делаем не большую PHP программу.

Программа просто выводит «Hello World!» на экран командной строки. Запускаем программу через CMD или командную строку, вот что вышло.

Тест программы на PHP

Как можете заметить всё работает нормально, значит и PHP установился нормально.

Вывод:

Вот такая статья получилась где показывалось как установить PHP 7.0 и выше на Windows 10, надеюсь для вас она была полезна, и вы ещё будите читать наши статьи.

Также посмотрите: Как выучить язык PHP с нуля и максимально эффективно.

Подписываетесь на соц-сети:

Оценка:

Загрузка…

Также рекомендую:

Предположительно у вас система Windows 7, разрядность: 64 Bits
  Подробнее

Текущая стабильная версия 8.2.1:

Версия для 32-битных систем Windows:

Скачать PHP for Windows (32-бита) с официального сайта

Этот файл мы отметили как основной. Если вы не знаете что скачивать, то скачивайте его.

27.1 Мб

Подробнее

+

0

-

0

php-8.2.2-Win32-vs16-x86.zip
|
windows.php.net
MD5: da7e049f9c6c49215442c695ae41ff01
SHA256: d48104994da4f0d56c1d5382da4be11af8a9991872b04f7167a98f7182594a75

Скачать PHP for Windows (32-бита) с нашего сайта

27.1 Мб


Проверено антивирусами

Подробнее

+

0

-

0

php-8.2.2-Win32-vs16-x86.zip
|
soft.mydiv.net
MD5: da7e049f9c6c49215442c695ae41ff01
SHA256: d48104994da4f0d56c1d5382da4be11af8a9991872b04f7167a98f7182594a75

Версия для 64-битных систем Windows:

Скачать PHP for Windows (64-бита) с нашего сайта

30.32 Мб


Проверено антивирусами

Подробнее

+

0

-

0

php-8.2.2-Win32-vs16-x64.zip
|
soft.mydiv.net
MD5: a04fc28044ba4a29edae505b38f36679
SHA256: 31c2c009a66ccaae5c39b9aea37ff55ae6fa080c7b48317513699b4df2582e14

Старая стабильная версия 8.0.26:

Версия для 32-битных систем Windows:

Скачать PHP for Windows (32-бита) с нашего сайта

23.64 Мб


Проверено антивирусами

Подробнее

+

0

-

0

php-8.0.26-Win32-vs16-x86.zip
|
soft.mydiv.net
MD5: 36161e13ff0049bcbea3c52407d96227
SHA256: 20eda6ce4f2577590a2cc767eb1be4c7a776b949c2d28f959ebd5e33a6bd0b8b

Версия для 64-битных систем Windows:

Скачать PHP for Windows (64-бита) с нашего сайта

25.63 Мб


Проверено антивирусами

Подробнее

+

0

-

0

php-8.0.26-Win32-vs16-x64.zip
|
soft.mydiv.net
MD5: e687b43b16b398eaa155ae8442b6aac0
SHA256: 6010b059c3883332532b52482a32abd1320b17908fe48e80cc0c9e7a74b61fca

Внимание! Мы стараемся тщательно проверять все программы, но не гарантируем абсолютную безопасность скачиваемых файлов. Администрация сайта не
несет ответственности за содержание файлов, программ и возможный вред от их использования.

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

  • скачать с сервера 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 и прочее (полное описание…)

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

скачать PHPPHP 8.1.11

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

скачать PhpStormPhpStorm 2022.1.1

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

скачать VertrigoServVertrigoServ 2.57

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

скачать phpMyAdminphpMyAdmin 5.2.0

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

скачать Perl ExpressPerl Express 2.4.5

Perl Express — уникальная и мощная интегрированная среда разработки под, которая включает множественные инструменты для работы с языком программирования Perl…

This tutorial provides all the steps required to install PHP 8 on Windows 10. The steps should be similar on the other versions of Windows.

In some cases, we need to develop or test our application against a specific version of PHP or to install it separately. In such cases, we can download it from the official site instead of using a bundled package in the form of XAMPP or WAMP. Once installed, we can configure the latest PHP to work with the web servers including Apache and NGINX.

Notes: You may also be interested in our debugging tutorials to debug PHP. These include How To Install NetBeans on Windows, How To Install NetBeans On Ubuntu, How To Debug PHP In NetBeans On Windows, How To Debug PHP Web Apps In NetBeans On Windows, How To Remote Debug PHP Web Apps In NetBeans On Windows, How To Install Eclipse for PHP on Windows, and How To Debug PHP In Eclipse On Windows.

Step 1 — Download PHP 8 for Windows

Go to the official download link and download the required version of PHP 8 for Windows. The distributions are provided as tar and windows binaries. While writing this tutorial, PHP 8.0.3 is the most recent one, hence we will discuss the installation steps specific to PHP 8.0.3. Click the Windows Download Link and it will open the page having Binaries and Sources packaged for Windows.

Install PHP 8 On Windows 10 - Download Options

Fig 1

Install PHP 8 On Windows 10 - Download Options

Fig 2

We can see that PHP is available either as Thread Safe and Non Thread Safe. In simple terms, we can use Thread Safe PHP if we are using mod_php as worker MPM in Apache which spans multiple threads concurrently to process the requests and Non Thread Safe can be used for CGI. The Thread Safe version is required for web servers running in a multithreaded context.

The download page also provided binaries for both 32-bit and 64-bit Operating Systems. We will download the Zip Thread Safe version for 64-bit Operating System having the title as — VC15 x64 Thread Safe. As a regular user, we do not need the Debug Pack which is required for PHP developers.

Step 2 — Extract the Zip

Extract the downloaded zip at a specific location. It will look similar to the one having the PHP executable file as shown in Fig 3.

Install PHP 8 On Windows 10 - Extract

Fig 3

Step 3 — Verify Installation

Open the command prompt and type php —version to check the available version. It will look similar to Fig 4 in case existing PHP versions are available.

Install PHP 8 On Windows 10 - Version Checks

Fig 4

It will show the error ‘php’ is not recognized as an internal or external command, operable program or batch file., in case PHP is not installed on the system.

We need to configure the environment variable to access PHP from the command line. You can follow the below-mentioned steps to do so.

Right Click -> My Computer(This PC) -> Properties -> Scroll Down -> Advanced System Settings

The above steps will open the Windows Settings Panel as shown in Fig 5.

Install PHP 8 On Windows 10 - Advanced System Settings

Fig 5

Now click the Environment Variables Button, select Path under either User variables or System Variables based on your preference, and click the Edit Button. We need to add/update the path of the installed PHP to the system Path.

Click the New/Edit Button and add/update the path to the PHP bin which is E:toolsphpphp-7.3.1 in my case. Press the OK Button 3 times to close all the windows. This sets the PHP 8 on system environment variables to access the same from the console.

Now again open the console and test the PHP version as shown in Fig 6.

Install PHP 8 On Windows 10 - Version Checks

Fig 6

These are the basic steps required to install PHP 8 on Windows 10.

Step 4 — Getting Started With PHP Development

In this step, we will write a simple program and print Hello World on the console using the PHP executable configured by us in the previous step. Open your favorite editor and write the program as shown below.

<?php
// Print Hello World !!
echo "Hello World !!n";

Now save the file as index.php and execute it using the command as shown below.

E:programsphp>php index.php
Hello World !!

In this way, we can execute the PHP program on the console. Though PHP is meant for web development, we can also use it for console-based development. The latest PHP supports the modern programming concepts i.e. OOPS and it also supports strict typing.

Step 5 — Configure With Apache

You might have installed the Apache Web Server either independently or installed it as part of the bundled packages including WAMP, XAMPP, etc. In this step, we will simply configure the Apache Web Server to use the PHP installed by us in the previous steps.

Copy the file php.ini-development available at the path where we have extracted PHP and save it as php.ini at the same location.

Open the httpd.conf file of your Apache Web Server installation and search for the line having LoadModule php7_module or LoadModule php_module. Now comment on the line and add the path to your PHP as shown below.

#LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.4.9/php7apache2_4.dll"
LoadModule php_module "e:/tools/php/php-8.0.3/php8apache2_4.dll"
PHPIniDir "e:/tools/php/php-8.0.3"

You might not find the php7_module or php_module  in case the Apache HTTP Server is installed without using any bundled software. If Apache 2 is installed directly as shown in How To Install Apache 2 On Windows, you just need to add the module to the httpd.conf as highlighted below.

....
....
#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so

LoadModule php_module "e:/tools/php/php-8.0.3/php8apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "e:/tools/php/php-8.0.3"

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
....
....

....
....
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>

....
....

Save the file and restart the webserver. Now create a file test.php at your webroot of the Apache server as shown below.

<?php
echo phpinfo();

Save the file, open your browser, and open the link — http://localhost/test.php. It should show the PHP settings as shown in Fig 7.

Install PHP 8 On Windows 10 - Info

Fig 7

You can also enable the PHP extensions required for your project. The most important one is the pdo_mysql. I have updated the php.ini file and enabled it as shown below.

....
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
....

You must also enable to extensions directory by updating the php.ini file as shown below.

; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
;extension_dir = "./"
; On windows:
;extension_dir = "ext"
extension_dir = "E:toolsphpphp-8.0.3ext"

Below mentioned is the output of phpinfo() before and after enabling the PDO extension.

Install PHP 8 On Windows 10 - Before Enabling PDO extension

Fig 8

Install PHP 8 On Windows 10 - After Enabling PDO extension

Fig 9

We have successfully configured the latest PHP installed by us to work with the Apache Web Server.

Step 6 — WampServer & XAMPP

The relevant tutorials to configure or install WampServer and XAMPP include How To Install WampServer on Windows, How To Install XAMPP On Windows, How To Update PHP Version In XAMPP On Windows.

Summary

In this tutorial, we have installed the latest PHP on Windows i.e. PHP 8 on Windows 10, and also configured the system path to use it from the console. We have also executed our first program in PHP to print Hello World on the console. In the last section, we have configured the PHP installation to work with the Apache Web Server and saw how to enable PHP extensions using the PDO extension example.

Этот раздел содержит инструкции для ручной установки и настройки
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

Понравилась статья? Поделить с друзьями:
  • Php поменять кодировку с utf 8 на windows 1251
  • Php перекодировка windows 1251 в utf 8
  • Php конвертировать файл windows 1251 в utf 8
  • Photoshop cs6 13 windows russian retail
  • Photoshop cs5 для windows 7 x64