diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php index b60513b212..2719c33967 100644 --- a/downloads-get-instructions.php +++ b/downloads-get-instructions.php @@ -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') { diff --git a/downloads.php b/downloads.php index 4548c745a3..2be768c465 100644 --- a/downloads.php +++ b/downloads.php @@ -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', @@ -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', ], diff --git a/include/download-instructions/linux-almalinux-cli-community.php b/include/download-instructions/linux-almalinux-cli-community.php new file mode 100644 index 0000000000..7ba4b30092 --- /dev/null +++ b/include/download-instructions/linux-almalinux-cli-community.php @@ -0,0 +1,35 @@ +

+On the command line, run the following commands: +

+

+# 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- -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
+
+ + +

+If you want to add various PHP extensions, on the command line run the following commands: +

+

+# 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
+
+

Note

+

+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: +

+

https://docs.dotkernel.org/development/ +

diff --git a/include/download-instructions/linux-almalinux-cli-default.php b/include/download-instructions/linux-almalinux-cli-default.php new file mode 100644 index 0000000000..9a25e093e8 --- /dev/null +++ b/include/download-instructions/linux-almalinux-cli-default.php @@ -0,0 +1,28 @@ +

+On the command line, run the following commands: +

+

+# update the packages
+sudo dnf update
+
+# install PHP with default extensions
+sudo dnf install php -y
+
+ +

+If you want to add various PHP extensions, on the command line run the following commands: +

+

+# 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
+
+

Note

+

+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: +

+

https://docs.dotkernel.org/development/ +

diff --git a/include/download-instructions/linux-almalinux-web-community.php b/include/download-instructions/linux-almalinux-web-community.php new file mode 120000 index 0000000000..0ebf126d0b --- /dev/null +++ b/include/download-instructions/linux-almalinux-web-community.php @@ -0,0 +1 @@ +linux-almalinux-cli-community.php \ No newline at end of file diff --git a/include/download-instructions/linux-almalinux-web-default.php b/include/download-instructions/linux-almalinux-web-default.php new file mode 120000 index 0000000000..72e69357c2 --- /dev/null +++ b/include/download-instructions/linux-almalinux-web-default.php @@ -0,0 +1 @@ +linux-almalinux-cli-default.php \ No newline at end of file