File tree Expand file tree Collapse file tree 12 files changed +39
-10
lines changed
include/download-instructions Expand file tree Collapse file tree 12 files changed +39
-10
lines changed Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<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
+ curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
7
+
8
+ # Install PHP.
11
9
sudo apt-get install -y php<?= $ version ; ?>
12
10
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Update the package lists.
5
6
sudo apt update
7
+
8
+ # Install PHP.
6
9
sudo apt install -y php
7
10
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Add the Remi's RPM repository.
5
6
sudo dnf install -y dnf-plugins-core
6
7
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
7
8
sudo dnf module reset php -y
8
9
sudo dnf module enable php:remi-<?= $ version ; ?> -y
10
+
11
+ # Install PHP.
9
12
sudo dnf install -y php
10
13
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Install PHP.
5
6
sudo dnf install -y php
6
7
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Add the ondrej/php repository.
5
6
sudo apt update
6
7
sudo 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
8
9
sudo apt update
10
+
11
+ # Install PHP.
9
12
sudo apt install -y php<?= $ version ; ?>
10
13
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Update the package lists.
5
6
sudo apt update
7
+
8
+ # Install PHP.
6
9
sudo apt install -y php
7
10
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<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 ; ?>
7
10
8
11
brew link --force --overwrite php@<?= $ version ; ?>
9
12
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<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.
5
9
brew install php@<?= $ version ; ?>
6
10
7
11
brew link --force --overwrite php@<?= $ version ; ?>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<pre><code class="language-bash line-numbers">
5
+ # Please refer to https://guide.macports.org/chunked/installing.macports.html for installing MacPorts.
5
6
sudo port install php<?= $ versionNoDot ; ?>
6
7
</code></pre>
Original file line number Diff line number Diff line change 2
2
On the command line, run the following commands:
3
3
</p>
4
4
<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.
5
9
choco install php --version=<?= $ version ; ?> -y
6
10
</code></pre>
You can’t perform that action at this time.
0 commit comments