This installation method uses binaries provided by a third-party provider. It contains patches to the PHP source code added by the build provider, over which the PHP project has no control.

Specifically, this provider includes a patch that adds telemetry to the Apache 2 and PHP-FPM modules.


# Add the ondrej/php repository.
sudo apt update
sudo apt install -y software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
sudo apt update

# Install PHP.
sudo apt install -y php