Install and build php 5

Random Guy 70hz answered on February 18, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • install php7.4 linux
  • install php7.4 in linux server
  • php use different version
  • ubuntu php 5.2
  • php ini development or production
  • install php windows 10
  • install php-fpm
  • install php 7
  • install php 7.4
  • install php 7.4
  • command to downgrade php version to 7.4
  • php 8.1 release date
  • getting started with php
  • install php7
  • latest php version
  • php version 5.6
  • set php version in php.ini
  • PHP (php 7.3.5) sample
  • how to set up a php server
  • how to using package php
  • php installation
  • php version 7.4
  • php version 7.4
  • php version 7.4
  • php version 7.4
  • php version 7.4

  • Install and build php 5

    0

    Setup the build directory

    This should be done only once before building PHP.

    Create the build directory c:\php-sdk

    Unpack the binary tools archive into this directory, it should contain three sub-directories: bin, script and share

    Open the command prompt and enter the build directory:

    Run the buildtree batch script which will create the desired directory structure:

    bin\phpsdk_buildtree.bat phpdev

    The buildtree script hasn't been updated for newer versions of VC++ so:

    If compiling for VC11: copy C:\php-sdk\phpdev\vc9 to C:\php-sdk\phpdev\vc11

    If compiling for VC14: copy C:\php-sdk\phpdev\vc9 to C:\php-sdk\phpdev\vc14

    Extract the PHP source code to C:\php-sdk\phpdev\vc##\x##, where:

    vc## is the compiler version you are using (vc9, vc11 or vc14)

    x## is your architecture (x86 or x64)

    For example: C:\php-sdk\phpdev\vc11\x86\php-5.6.4-src

    In the same directory where you extracted the PHP source there is a deps directory. Here you will need to extract the libraries required to build PHP, which you downloaded in the perevious step (the deps-*.7z archive).

    Popularity 1/10 Helpfulness 1/10 Language php
    Source: wiki.php.net
    Tags: build php
    Link to this answer
    Share Copy Link
    Contributed on Feb 18 2023
    Random Guy 70hz
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0

    If compiling PHP 5.4, open the “Windows SDK 6.1 shell” and execute the following command in it:

    If compiling PHP 5.5 or 5.6 open the “VS2012 x86 Native Tools Command Prompt”

    If compiling PHP 7.0+ open either the “VS2015 x64 Native Tools Command Prompt” or the “VS2015 x86 Native Tools Command Prompt”.

    All commands in the rest of this document should be run in the appropriate command prompt.

    Popularity 1/10 Helpfulness 1/10 Language php
    Source: wiki.php.net
    Tags: php build
    Link to this answer
    Share Copy Link
    Contributed on Feb 18 2023
    Random Guy 70hz
    0 Answers  Avg Quality 2/10

    0

    Open the command prompt and enter the build directory:

    cd c:\php-sdk\

    Set up the build environment variables:

    bin\phpsdk_setvars.bat

    Change directory to the location of your PHP source code, e.g.

    cd C:\php-sdk\phpdev\vc11\x86\php-5.6.4-src

    Run:

    buildconf

    To get an overview of the compiling flags:

    configure --help

    Create your configure command:

    configure --disable-all --enable-cli --enable-$remains

    To build PHP, run:

    nmake

    If you want the resulting PHP builds and extensions to be zipped, after 'nmake' also run:

    nmake snap

    The compiled PHP is now under “C:\php-sdk\phpdev\vcXX\x86\php-source-directory\Release_TS”. If you ran 'nmake snap' the zip file will also be here.

    If you compiled with “--disable-zts” the compiled PHP will be under “C:\php-sdk\phpdev\vcXX\x86\php-source-directory\Release”

    Popularity 1/10 Helpfulness 1/10 Language php
    Source: wiki.php.net
    Tags: build php
    Link to this answer
    Share Copy Link
    Contributed on Feb 18 2023
    Random Guy 70hz
    0 Answers  Avg Quality 2/10

    0

    Recompile after you have done some changes

    Clean up old compiled binaries

    nmake clean

    If you need to update the 'configure' script

    buildconf --force

    Create your makefile: see release

    configure --disable-all --enable-cli --enable-$remains

    if above dont work try:

    configure --disable-all --enable-cli 

    Compile

    nmake

    Popularity 1/10 Helpfulness 1/10 Language php
    Source: wiki.php.net
    Tags: php build
    Link to this answer
    Share Copy Link
    Contributed on Feb 18 2023
    Random Guy 70hz
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.