Skip to content

Commit 0930b2d

Browse files
committed
Add Mezzio and AlmaLinux WSL2 to download page
Signed-off-by: arhimede <julian@dotkernel.com>
1 parent 7e31303 commit 0930b2d

6 files changed

Lines changed: 66 additions & 6 deletions

downloads.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function option(string $value, string $desc, $attributes = []): string
6666
'linux' => [
6767
'name' => 'Linux',
6868
'variants' => [
69+
'linux-almalinux' => 'AlmaLinux',
6970
'linux-debian' => 'Debian',
7071
'linux-fedora' => 'Fedora',
7172
'linux-redhat' => 'RedHat',
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<p>
2+
On the command line, run the following commands:
3+
</p>
4+
<pre><code class="language-bash line-numbers">
5+
# add Remi repository and few utilities
6+
sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %almalinux).rpm -y
7+
8+
# define what version of PHP you want to install
9+
sudo dnf module enable php:remi-<?= $version; ?> -y
10+
11+
# install PHP with default extensions
12+
sudo dnf install php -y
13+
14+
# From now on, you can switch to a different PHP version directly, for instance 8.5
15+
sudo dnf module switch-to php:remi-8.5 -y
16+
</code></pre>
17+
18+
19+
<p>
20+
If you want to add various PHP extensions, on the command line run the following commands:
21+
</p>
22+
<pre><code class="language-bash line-numbers">
23+
# add a new non-default PHP extensions, for instance php-intl
24+
sudo dnf install php-intl -y
25+
26+
# add a new PECL PHP extension, for instance Redis
27+
sudo dnf install php-pecl-redis -y
28+
</code></pre>
29+
<h3>Note</h3>
30+
<p>
31+
Instructions for setting up a development environment with PHP on AlmaLinux 9 and 10, running on Windows WSL2 or on virtual servers, can be found on:
32+
</p>
33+
<p>
34+
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
35+
</p>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<p>
2+
On the command line, run the following commands:
3+
</p>
4+
<pre><code class="language-bash line-numbers">
5+
# update the packages
6+
sudo dnf update
7+
8+
# install PHP with default extensions
9+
sudo dnf install php -y
10+
</code></pre>
11+
12+
<p>
13+
If you want to add various PHP extensions, on the command line run the following commands:
14+
</p>
15+
<pre><code class="language-bash line-numbers">
16+
# add a new non-default PHP extensions, for instance php-intl
17+
sudo dnf install php-intl -y
18+
19+
# add a new PECL PHP extension, for instance Redis
20+
sudo dnf install php-pecl-redis -y
21+
</code></pre>
22+
<h3>Note</h3>
23+
<p>
24+
Instructions for setting up a development environment with PHP on AlmaLinux 9 and 10, running on Windows WSL2 or on virtual servers, can be found on:
25+
</p>
26+
<p>
27+
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
28+
</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux-almalinux-cli-community.php
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux-almalinux-cli-default.php

include/download-instructions/windows-wsl-almalinux.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)