Skip to content

Commit 60fe699

Browse files
authored
Merge pull request #195 from sboldyreva/minor-php-update
Updates to alt-php
2 parents 51e42ec + 46c143f commit 60fe699

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

docs/.vuepress/routes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
"/els-for-languages/php/#running-code-on-a-specific-version-through-the-cli": "/els-for-languages/php/#Running_code_on_a_specific_version_through_the_CLI",
4242
"/els-for-languages/php/#modules-and-pecl-extensions": "/els-for-languages/php/#Modules_and_pecl_extensions",
4343
"/els-for-languages/php/#the-bin-files": "/els-for-languages/php/#The_bin_files",
44-
"/els-for-languages/php/#how-to-use-php-els": "/els-for-languages/php/#Increase_upload_or_memory_limits"
44+
"/els-for-languages/php/#how-to-use-php-els": "/els-for-languages/php/#Increase_upload_or_memory_limits",
45+
"/els-for-languages/php/#Update_alt_php": "/els-for-languages/php/#Update_alt-php"
4546
}

docs/els-for-languages/php/README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ alt-php provides a more flexible and convenient environment for working with dif
3333
| :-----------------------------------: | :----------: | :-------------------------------: | :---------: |
3434
| CentOS, CloudLinux, OracleLinux, etc. | RPM | 7.x, 8.x, 9.x | 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
3535
| AlmaLinux | RPM | 8.x, 9.x | 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
36+
| Amazon Linux 2 | RPM | - | 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
3637
| Ubuntu | DEB | 16.04, 18.04, 20.04, 22.04, 24.04 | 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
3738
| Debian | DEB | 10, 11, 12 | 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
3839
| Windows | - | Windows Server 2019, 2022, 2025 | 5.6, 7.2, 7.3, 7.4 , 8.0, 8.1 |
@@ -127,8 +128,19 @@ TuxCare provides technical support according to the [support policy](https://tux
127128

128129
### Install ALT-PHP
129130

130-
The following steps are provided for both **RPM-based** (CentOS, CloudLinux, Oracle Linux, AlmaLinux, etc) and **DEB-based** (Debian, Ubuntu) systems. Please select the appropriate tab for your distribution.
131+
The following steps are provided for both **RPM-based** (CentOS, CloudLinux, Oracle Linux, AlmaLinux, Amazon Linux 2, etc) and **DEB-based** (Debian, Ubuntu) systems. Please select the appropriate tab for your distribution.
131132

133+
:::tip
134+
**Amazon Linux 2-specific preprequisities**. Before installing `alt-php`, make sure `libvpx` is installed. Amazon Linux 2 provides two version of libvpx: 1.9 (the default) and 1.3. `alt-php` requires 1.3 for compatibility with EL 7 systems like CentOS 7:
135+
136+
<CodeWithCopy>
137+
138+
```
139+
sudo yum install libvpx-1.3.0
140+
```
141+
</CodeWithCopy>
142+
143+
:::
132144

133145
1. Download the installer script:
134146

@@ -384,13 +396,13 @@ To display detailed information about the installed package, run the following c
384396

385397
Dependencies for a successful installation of alt packages may vary depending on the specific packages and their versions. However, typically, the system automatically manages dependencies and provides the necessary packages when installing selected components:
386398

387-
For example:
388-
389399
<CodeTabs :tabs="[
390400
{ title: 'RPM', content: `sudo yum deplist alt-php73 ` },
391401
{ title: 'DEB', content: `sudo apt-cache depends alt-php74` }
392402
]" />
393403

404+
For example:
405+
394406
<CodeTabs :tabs="[
395407
{ title: 'RPM', content:
396408
`sudo yum deplist alt-php73
@@ -428,7 +440,7 @@ It's important to pay attention to any error messages provided by the system and
428440

429441
</template>
430442

431-
<template #Update_alt_php>
443+
<template #Update_alt-php>
432444

433445
To update alt-php, you typically follow a process that involves using the package management tools provided by CloudLinux.
434446

@@ -793,7 +805,7 @@ zlib
793805

794806
The **default.ini** file is important for configuring alt-php. It sets default PHP settings and can be used to enable default extensions. We do not modify this file on our side. You need to update **default.ini** yourself to adjust PHP settings based on your Endless Lifecycle Support (ELS) usage and specific requirements.
795807

796-
#### Enabling a module through `default.ini`
808+
**Option 1: Enabling a module through `default.ini`**
797809

798810
To enable or disable extensions in your installed PHP version:
799811

@@ -814,7 +826,7 @@ To enable or disable extensions in your installed PHP version:
814826

815827
3. Save the changes in the `default.ini` file.
816828

817-
#### Enabling a module through the configuration files
829+
**Option 2: Enabling a module through the configuration files**
818830

819831
PHP extensions can also be enabled or disabled through their `.ini` configuration files. This method allows you to control which extensions are active for a specific PHP version or setup. If you're unsure which file to modify to enable a specific extension, start by checking the extension's own `.ini` file.
820832

@@ -842,7 +854,7 @@ PHP extensions can also be enabled or disabled through their `.ini` configuratio
842854
If the same extension is present in multiple `.ini` configuration files within the `/opt/alt/phpXY/etc/php.d/` directory, you may see warnings in PHP logs and possibly on your site.
843855
:::
844856

845-
#### Enabling_a_module_through_the_CLI
857+
**Option 3: Enabling a module through the CLI**
846858

847859
<CodeWithCopy>
848860

@@ -1091,7 +1103,7 @@ This section contains information about available ELS for PHP OVAL streams that
10911103
10921104
Currently, we provide OVAL data for the following OS versions:
10931105
1094-
* EL 7 (CentOS, CloudLinux, OracleLinux, etc.): [oval.xml](https://security.tuxcare.com/oval/els_alt_php/el7/oval.xml)
1106+
* EL 7 (CentOS, CloudLinux, OracleLinux, Amazon Linux 2, etc.): [oval.xml](https://security.tuxcare.com/oval/els_alt_php/el7/oval.xml)
10951107
* EL 8 (AlmaLinux, CentOS, CloudLinux, OracleLinux, etc.): [oval.xml](https://security.tuxcare.com/oval/els_alt_php/el8/oval.xml)
10961108
* EL 9 (AlmaLinux, CentOS, CloudLinux, etc.): [oval.xml](http://security.tuxcare.com/oval/els_alt_php/el9/oval.xml)
10971109
* Ubuntu 16.04: [oval.xml](https://security.tuxcare.com/oval/els_alt_php/ubuntu16.04/oval.xml)
@@ -1150,7 +1162,7 @@ TuxCare publishes the following CSAF files at [security.tuxcare.com](https://sec
11501162

11511163
Currently, we provide CSAF data for the following OS versions:
11521164

1153-
* EL 7 (CentOS, CloudLinux, OracleLinux, etc.): [security.tuxcare.com/csaf/v2/els_alt_php/el7/](https://security.tuxcare.com/csaf/v2/els_alt_php/el7/)
1165+
* EL 7 (CentOS, CloudLinux, OracleLinux, Amazon Linux 2, etc.): [security.tuxcare.com/csaf/v2/els_alt_php/el7/](https://security.tuxcare.com/csaf/v2/els_alt_php/el7/)
11541166
* EL 8 (AlmaLinux, CentOS, CloudLinux, OracleLinux, etc.): [security.tuxcare.com/csaf/v2/els_alt_php/el8/](https://security.tuxcare.com/csaf/v2/els_alt_php/el8/)
11551167
* EL 9 (AlmaLinux, CentOS, CloudLinux, etc.): [security.tuxcare.com/csaf/v2/els_alt_php/el9/](https://security.tuxcare.com/csaf/v2/els_alt_php/el9/)
11561168
* Ubuntu 16.04: [security.tuxcare.com/csaf/v2/els_alt_php/ubuntu16.04/](https://security.tuxcare.com/csaf/v2/els_alt_php/ubuntu16.04/)
@@ -1170,7 +1182,7 @@ The CSAF files are published in JSON format which is easy to parse and integrate
11701182

11711183
Currently, we provide errata for the following OS versions:
11721184

1173-
* EL 7 (CentOS, CloudLinux, OracleLinux, etc.): [security.tuxcare.com/errata/els_alt_php/el7/](https://security.tuxcare.com/errata/els_alt_php/el7/)
1185+
* EL 7 (CentOS, CloudLinux, OracleLinux, Amazon Linux 2, etc.): [security.tuxcare.com/errata/els_alt_php/el7/](https://security.tuxcare.com/errata/els_alt_php/el7/)
11741186
* EL 8 (AlmaLinux, CentOS, CloudLinux, OracleLinux, etc.): [security.tuxcare.com/errata/els_alt_php/el8/](https://security.tuxcare.com/errata/els_alt_php/el8/)
11751187
* EL 9 (AlmaLinux, CentOS, CloudLinux, etc.): [security.tuxcare.com/errata/els_alt_php/el9/](https://security.tuxcare.com/errata/els_alt_php/el9/)
11761188
* Ubuntu 16.04: [security.tuxcare.com/errata/els_alt_php/ubuntu16.04/](https://security.tuxcare.com/errata/els_alt_php/ubuntu16.04/)

0 commit comments

Comments
 (0)