Skip to content

Commit 40cae5e

Browse files
committed
Updates
1 parent 9143e61 commit 40cae5e

File tree

1 file changed

+30
-35
lines changed

1 file changed

+30
-35
lines changed

docs/cloudlinuxos/alt-ea_packages/README.md

Lines changed: 30 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,23 +1330,19 @@ a desired feature in hosting environments.
13301330

13311331
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.
13321332

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-
13371333
#### Enabling a module through `default.ini`
13381334

13391335
To enable or disable extensions in your installed PHP version:
13401336

13411337
1. Open the `default.ini` file, usually located in the PHP configuration directory, in an editor of your choice:
13421338

1343-
<div class="notranslate">
1339+
<div class="notranslate">
13441340

1345-
```
1346-
/opt/alt/phpXY/etc/php.d/default.ini
1347-
```
1341+
```
1342+
/opt/alt/phpXY/etc/php.d/default.ini
1343+
```
13481344

1349-
</div>
1345+
</div>
13501346

13511347
2. Edit the list of extensions:
13521348
* 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:
13571353

13581354
#### Enabling a module through the configuration files
13591355

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.
13631357

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

1366-
<div class="notranslate">
1360+
<div class="notranslate">
13671361

1368-
```
1369-
/opt/alt/phpXY/etc/php.d.all/
1370-
```
1371-
</div>
1362+
```
1363+
/opt/alt/phpXY/etc/php.d.all/
1364+
```
13721365

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-
<div class="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+
<div class="notranslate">
1371+
1372+
```
1373+
/opt/alt/phpXY/etc/php.d/
1374+
```
13821375

1383-
</div>
1376+
</div>
13841377

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

13871382
#### Increase Upload/Memory Limits
13881383

@@ -1391,15 +1386,15 @@ If you need to increase memory and upload size limits:
13911386
1. Open the `default.ini` file in an editor of your choice.
13921387
2. Set the limits as needed, e.g:
13931388

1394-
<div class="notranslate">
1389+
<div class="notranslate">
13951390

1396-
```text
1397-
upload_max_filesize=40M
1398-
post_max_size=40M
1399-
memory_limit=256M
1400-
```
1391+
```text
1392+
upload_max_filesize=40M
1393+
post_max_size=40M
1394+
memory_limit=256M
1395+
```
14011396

1402-
</div>
1397+
</div>
14031398

14041399

14051400
## alt-python

0 commit comments

Comments
 (0)