Author: Jenthe Noordsij (jnoordsij)
Committer: Derick Rethans (derickr)
Date: 2026-11-22T11:20:19Z

Commit: 
https://github.com/php/web-php/commit/6c7c28b692be1793be0d3b440ec0c420e92b290d
Raw diff: 
https://github.com/php/web-php/commit/6c7c28b692be1793be0d3b440ec0c420e92b290d.diff

Update Ubuntu install to match Debian

Ubuntu now also uses the packages.sury.org repository

Changed paths:
  M  include/download-instructions/linux-ubuntu-cli-community.php


Diff:

diff --git a/include/download-instructions/linux-ubuntu-cli-community.php 
b/include/download-instructions/linux-ubuntu-cli-community.php
index d325b48ca5..6a5a1f5dec 100644
--- a/include/download-instructions/linux-ubuntu-cli-community.php
+++ b/include/download-instructions/linux-ubuntu-cli-community.php
@@ -13,10 +13,18 @@
 </p>
 </div>
 <pre><code class="language-bash line-numbers">
-# Add the ondrej/php repository.
+# Add the packages.sury.org/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 install -y lsb-release ca-certificates curl
+sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb 
https://packages.sury.org/debsuryorg-archive-keyring.deb
+sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
+sudo tee /etc/apt/sources.list.d/php.sources &lt;&lt;EOF
+Types: deb
+URIs: https://packages.sury.org/php/
+Suites: $(lsb_release -sc)
+Components: main
+Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
+EOF
 sudo apt update
 
 # Install PHP.

Reply via email to