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/cloudlinuxos/alt-ea_packages/README.md
+30-35Lines changed: 30 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1330,23 +1330,19 @@ a desired feature in hosting environments.
1330
1330
1331
1331
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.
1332
1332
1333
-
PHP extensions can be enabled or disabled in different configuration files.
1334
-
* If you need to enable or disable an extension by *default* across all systems, list it by updating the `default.ini`.
1335
-
* 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.
1336
-
1337
1333
#### Enabling a module through `default.ini`
1338
1334
1339
1335
To enable or disable extensions in your installed PHP version:
1340
1336
1341
1337
1. Open the `default.ini` file, usually located in the PHP configuration directory, in an editor of your choice:
1342
1338
1343
-
<divclass="notranslate">
1339
+
<divclass="notranslate">
1344
1340
1345
-
```
1346
-
/opt/alt/phpXY/etc/php.d/default.ini
1347
-
```
1341
+
```
1342
+
/opt/alt/phpXY/etc/php.d/default.ini
1343
+
```
1348
1344
1349
-
</div>
1345
+
</div>
1350
1346
1351
1347
2. Edit the list of extensions:
1352
1348
* To enable an extension, remove the semicolon `;` at the beginning of the line.
@@ -1357,32 +1353,31 @@ To enable or disable extensions in your installed PHP version:
1357
1353
1358
1354
#### Enabling a module through the configuration files
1359
1355
1360
-
Typically, extensions with their own `.ini` files are enabled or disabled directly in those files, allowing more control for a specific PHP configuration.
1361
-
* 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.
1362
-
* If that does not work or you want to enable it on all systems by default, add it to `default.ini`.
1356
+
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.
1363
1357
1364
1358
1. Locate the extension’s `.ini` file (e.g., `memcached.ini`) in the directory:
1365
1359
1366
-
<divclass="notranslate">
1360
+
<divclass="notranslate">
1367
1361
1368
-
```
1369
-
/opt/alt/phpXY/etc/php.d.all/
1370
-
```
1371
-
</div>
1362
+
```
1363
+
/opt/alt/phpXY/etc/php.d.all/
1364
+
```
1372
1365
1373
-
2. Open the file and find the lines starting with a semicolon `;` before the extension name (e.g., `;extension=memcached.so`).
1374
-
* 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.
1375
-
*To disable an extension, add a semicolon `;` at the beginning of the line.
1376
-
* If the extension line is missing, add the line:
1377
-
<divclass="notranslate">
1378
-
1379
-
```
1380
-
extension=memcached.so
1381
-
```
1366
+
</div>
1367
+
1368
+
2.To enable the extension, copy the located `.ini` file to:
1369
+
1370
+
<divclass="notranslate">
1371
+
1372
+
```
1373
+
/opt/alt/phpXY/etc/php.d/
1374
+
```
1382
1375
1383
-
</div>
1376
+
</div>
1384
1377
1385
-
3. Save the changes in the ini file.
1378
+
:::warning
1379
+
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.
1380
+
:::
1386
1381
1387
1382
#### Increase Upload/Memory Limits
1388
1383
@@ -1391,15 +1386,15 @@ If you need to increase memory and upload size limits:
1391
1386
1. Open the `default.ini` file in an editor of your choice.
0 commit comments