[web-php] master: Update Ubuntu install to match Debian
| From: | Jenthe Noordsij via Derick Rethans | Date: | Sun, 22 Nov 2026 11:20:23 +0000 |
| Subject: | [web-php] master: Update Ubuntu install to match Debian | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-34250@lists.php.net to get a copy of this message | ||
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 <<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.