Skip to content

Commit 6f08df3

Browse files
authored
TCR-606: Update ALT-PHP documentation
1 parent c32a271 commit 6f08df3

File tree

1 file changed

+13
-0
lines changed
  • docs/cloudlinuxos/cloudlinux_os_components

1 file changed

+13
-0
lines changed

docs/cloudlinuxos/cloudlinux_os_components/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4529,6 +4529,19 @@ modules=json,zip,fileinfo
45294529
```
45304530
</div>
45314531

4532+
To reset the extensions for end users to the default list of extensions as defined in the `defaults.cfg` file, you can run the following command:
4533+
```
4534+
cagefsctl --list-enabled | grep -v enabled | grep -v '^$' | while read -r line; do \
4535+
id "$line" &>/dev/null && selectorctl --reset-user-extensions --version=8.4 --user="$line" || echo "User $line does not exist, skipping"; \
4536+
done
4537+
```
4538+
4539+
This command will reset the extensions for all users on PHP version 8.4 to the default list. You can specify a different PHP version by modifying the `--version` argument in the command above.
4540+
4541+
To reset the extensions for a specific user, you can use the following command:
4542+
```
4543+
selectorctl --reset-user-extensions --version=8.4 --user=user1
4544+
```
45324545

45334546
#### Individual PHP.ini files
45344547

0 commit comments

Comments
 (0)