In this documentation we will discuss on how a user can use the scl utility to manage software packages in a Software Collection Library (SCL) environment with the help of the command line.
The SCLs for PHP versions are used by EasyApache 4 (EA4), allowing multiple concurrent software packages to reside on the file system of the user. If a user runs multiple websites requiring different PHP versions, he can use this utility. To know more about SCLs, one can read our Introduction to EasyApache 4 documentation.
The scl utility makes a use of this following syntax:
scl option action library ‘command’
This utility uses certain variables with its possible values. They are:
Possible value: -l, –list — Lists the server’s available software package collections, and
-h, -help — Displays the scl utility’s help output.
Possible value: enable, register and deregister.
Possible value: A valid PHP software collection and an absolute filepath to the software collection.
Possible value: For a list of valid commands, run the php –help or pecl –help commands.
Example: ‘php -m’
If a user desires to view the ea-php70 SCL modules, he can run the following command:
scl enable ea-php70 ‘php -m’
The output will resemble like [PHP Modules], like:
ctype and many more.
All information on how to use the command line to manage the software packages in SCL is outlined in this review.