Skip to content

Commit 636b4eb

Browse files
authored
Update README.md
1 parent 59670d9 commit 636b4eb

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

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

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ Each version of PHP can be installed individually or all versions at once.
154154

155155
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.
156156

157-
PHP extensions can be enabled or disabled in different configuration files.
158-
* If you need to enable or disable an extension by *default* across all systems, list it by updating the `default.ini`.
159-
* If you want to enable or disable an extension only for a *specific* PHP version or setup, start by editing that extension's individual `.ini` file.
160-
161157
#### Enabling a module through `default.ini`
162158

163159
To enable or disable extensions in your installed PHP version:
@@ -181,9 +177,7 @@ To enable or disable extensions in your installed PHP version:
181177

182178
#### Enabling a module through the configuration files
183179

184-
Typically, extensions with their own `.ini` files are enabled or disabled directly in those files, allowing more control for a specific PHP configuration.
185-
* If you're unsure which file to modify to enable a specific extension, it's recommended to first try enabling it in the extension's own `.ini` file.
186-
* If that does not work or you want to enable it on all systems by default, add it to `default.ini`.
180+
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.
187181

188182
1. Locate the extension’s `.ini` file (e.g., `memcached.ini`) in the directory:
189183

@@ -192,21 +186,22 @@ Typically, extensions with their own `.ini` files are enabled or disabled direct
192186
```
193187
/opt/alt/phpXY/etc/php.d.all/
194188
```
189+
195190
</CodeWithCopy>
196191

197-
2. Open the file and find the lines starting with a semicolon `;` before the extension name (e.g., `;extension=memcached.so`).
198-
* The semicolon sign at the beginning of the line means that this extension is currently inactive. To enable an extension, remove the semicolon `;` at the beginning of the line.
199-
* To disable an extension, add a semicolon `;` at the beginning of the line.
200-
* If the extension line is missing, add the line:
201-
<CodeWithCopy>
202-
203-
```
204-
extension=memcached.so
205-
```
192+
2. To enable the extension, copy the located `.ini` file to:
193+
194+
<CodeWithCopy>
206195

207-
</CodeWithCopy>
196+
```
197+
/opt/alt/phpXY/etc/php.d/
198+
```
199+
200+
</CodeWithCopy>
208201

209-
3. Save the changes in the ini file.
202+
:::warning
203+
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.
204+
:::
210205

211206
#### Increase Upload/Memory Limits
212207

@@ -740,4 +735,4 @@ zlib
740735

741736
### Conclusion
742737

743-
As you can see, each version is entirely self-contained, and changing configurations in one will not impact the others, a desired feature in hosting environments.
738+
As you can see, each version is entirely self-contained, and changing configurations in one will not impact the others, a desired feature in hosting environments.

0 commit comments

Comments
 (0)