![]() Once the Git repository is cloned, new changes can be pulled without having to download the whole repository over and over again.īuilding the configuration script and configuring the build will take about a minute. The Git repository of PHP in master branch (the branch for the latest and upcoming version) is around 420 MB at the time of writing. On a fresh Ubuntu 21.04 installation, it will require downloading ~210 MB of files. The initial setup of installing the build tools (such as compilers and libraries) will take about five minutes. The compiled form will be suitable for testing, rather than using them in a production server.Ī short version of the guide for the copy-paste pleasure is available at the TL DR section. This guide focuses on compiling PHP from its source code, so it's easy to try out new features not yet released. Further, they often contain various PHP extensions as decoupled install-able packages, so it is easy to customize the PHP run time with any combination of PHP extensions. Installing from such sources does not require compiling PHP, because they are already compiled, and ready to install. PHP is readily available to download and install for many operating systems, including Windows, Debian/Ubuntu, Fedora, Mac OS, etc. This is a more beginner-friendly guide on how to fetch its source from GitHub, install the necessaries for compilation, compile, and test run PHP. Compiling PHP from its source is easier than it sounds.
0 Comments
Leave a Reply. |