Skip to content
4 changes: 4 additions & 0 deletions downloads-get-instructions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
$options['os'] = 'linux';
$options['osvariant'] = 'linux-ubuntu';
}
if ($options['osvariant'] === 'windows-wsl-almalinux') {
$options['os'] = 'linux';
$options['osvariant'] = 'linux-almalinux';
}
}
if ($options['os'] === 'osx' || $options['os'] === 'windows') {
if ($options['version'] === 'default') {
Expand Down
2 changes: 2 additions & 0 deletions downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function option(string $value, string $desc, $attributes = []): string
'variants' => [
'linux-debian' => 'Debian',
'linux-fedora' => 'Fedora',
'linux-almalinux' => 'AlmaLinux',
'linux-redhat' => 'RedHat',
'linux-ubuntu' => 'Ubuntu',
'linux-docker' => 'Docker',
Expand All @@ -89,6 +90,7 @@ function option(string $value, string $desc, $attributes = []): string
'windows-chocolatey' => 'Chocolatey',
'windows-scoop' => 'Scoop',
'windows-docker' => 'Docker',
'windows-wsl-almalinux' => 'WSL/AlmaLinux',
'windows-wsl-debian' => 'WSL/Debian',
'windows-wsl-ubuntu' => 'WSL/Ubuntu',
],
Expand Down
35 changes: 35 additions & 0 deletions include/download-instructions/linux-almalinux-cli-community.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# add Remi repository and few utilities
sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %almalinux).rpm -y

# define what version of PHP you want to install
sudo dnf module enable php:remi-<?= $version; ?> -y

# install PHP with default extensions
sudo dnf install php -y

# From now on, you can switch to a different PHP version directly, for instance 8.5
sudo dnf module switch-to php:remi-8.5 -y
</code></pre>


<p>
If you want to add various PHP extensions, on the command line run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# add a new non-default PHP extensions, for instance php-intl
sudo dnf install php-intl -y

# add a new PECL PHP extension, for instance Redis
sudo dnf install php-pecl-redis -y
</code></pre>
<h3>Note</h3>
<p>
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:
</p>
<p>
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
</p>
28 changes: 28 additions & 0 deletions include/download-instructions/linux-almalinux-cli-default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# update the packages
sudo dnf update

# install PHP with default extensions
sudo dnf install php -y
</code></pre>

<p>
If you want to add various PHP extensions, on the command line run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# add a new non-default PHP extensions, for instance php-intl
sudo dnf install php-intl -y

# add a new PECL PHP extension, for instance Redis
sudo dnf install php-pecl-redis -y
</code></pre>
<h3>Note</h3>
<p>
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:
</p>
<p>
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
</p>