You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/els-for-languages/php/README.md
+14-19Lines changed: 14 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,10 +154,6 @@ Each version of PHP can be installed individually or all versions at once.
154
154
155
155
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.
156
156
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
-
161
157
#### Enabling a module through `default.ini`
162
158
163
159
To enable or disable extensions in your installed PHP version:
@@ -181,9 +177,7 @@ To enable or disable extensions in your installed PHP version:
181
177
182
178
#### Enabling a module through the configuration files
183
179
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.
187
181
188
182
1. Locate the extension’s `.ini` file (e.g., `memcached.ini`) in the directory:
189
183
@@ -192,21 +186,22 @@ Typically, extensions with their own `.ini` files are enabled or disabled direct
192
186
```
193
187
/opt/alt/phpXY/etc/php.d.all/
194
188
```
189
+
195
190
</CodeWithCopy>
196
191
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>
206
195
207
-
</CodeWithCopy>
196
+
```
197
+
/opt/alt/phpXY/etc/php.d/
198
+
```
199
+
200
+
</CodeWithCopy>
208
201
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
+
:::
210
205
211
206
#### Increase Upload/Memory Limits
212
207
@@ -740,4 +735,4 @@ zlib
740
735
741
736
### Conclusion
742
737
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