File tree Expand file tree Collapse file tree 12 files changed +41
-10
lines changed
include/download-instructions Expand file tree Collapse file tree 12 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5- sudo apt-get update
6- sudo apt-get install -y lsb-release ca-certificates apt-transport-https curl
7- sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
8- sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
9- sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
10- sudo apt-get update
5+ # Add the packages.sury.org/php repository.
6+ sudo apt update
7+ sudo apt install -y curl
8+ curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
9+
10+ # Install PHP.
1111sudo apt-get install -y php<?= $ version ; ?>
1212</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Update the package lists.
56sudo apt update
7+
8+ # Install PHP.
69sudo apt install -y php
710</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Add the Remi's RPM repository.
56sudo dnf install -y dnf-plugins-core
67sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
78sudo dnf module reset php -y
89sudo dnf module enable php:remi-<?= $ version ; ?> -y
10+
11+ # Install PHP.
912sudo dnf install -y php
1013</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Install PHP.
56sudo dnf install -y php
67</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Add the ondrej/php repository.
56sudo apt update
67sudo apt install -y software-properties-common
7- sudo add-apt-repository ppa:ondrej/php -y
8+ sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
89sudo apt update
10+
11+ # Install PHP.
912sudo apt install -y php<?= $ version ; ?>
1013</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Update the package lists.
56sudo apt update
7+
8+ # Install PHP.
69sudo apt install -y php
710</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5- brew tap shivammathur/php
6- brew install php@<?= $ version ; ?>
5+ # Download and install Homebrew.
6+ curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
7+
8+ # Install and link PHP.
9+ brew install shivammathur/php/php@<?= $ version ; ?>
710
811brew link --force --overwrite php@<?= $ version ; ?>
912</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Download and install Homebrew.
6+ curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
7+
8+ # Install and link PHP.
59brew install php@<?= $ version ; ?>
610
711brew link --force --overwrite php@<?= $ version ; ?>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-bash line-numbers">
5+ # Please refer to https://guide.macports.org/chunked/installing.macports.html for installing MacPorts.
56sudo port install php<?= $ versionNoDot ; ?>
67</code></pre>
Original file line number Diff line number Diff line change 22On the command line, run the following commands:
33</p>
44<pre><code class="language-powershell line-numbers">
5+ # Download and install Chocolatey.
6+ powershell -c "irm https://community.chocolatey.org/install.ps1|iex"
7+
8+ # Download and install PHP.
59choco install php --version=<?= $ version ; ?> -y
610</code></pre>
You can’t perform that action at this time.
0 commit comments