The scl Utility
Last modified: August 28, 2024
Overview
To manage software packages in a Software Collection Library (SCL) environment via the command line, use the scl
utility.
EasyApache 4 (EA4) uses SCLs for PHP versions. SCLs allow multiple concurrent software packages to reside on your file system. You can use this utility if you run multiple websites that require different PHP versions.
For more information about EasyApache, read our About EasyApache 4 documentation.
The scl
Utility
The scl
utility uses the following syntax:
scl option action library 'command'
Variable | Description | Possible values | Example |
---|---|---|---|
option |
The desired option. |
|
-l |
action |
The action to perform. |
|
enable |
library |
The SCL. |
|
ea-php70 |
'command' |
The command to run in the SCL environment. | For a list of valid commands, run the php --help or pecl --help commands. |
'php -m' |
Example
To view the ea-php70
SCL modules, run the following command:
scl enable ea-php70 'php -m'
The output will resemble the following example:
Click to view...
|
|