Introduction
PHP extensions for the CloudLinux Alt-PHP versions can be enabled through the command line with the selectorctl
command.
Procedure
Please note that the following examples are for inocube_loader for Alt-PHP 7.4. Be sure to replace ioncube_loader and 7.4 with the PHP extension you want enabled and the Alt-PHP version for which you want it enabled.
- Access the server's command line as the 'root' user via SSH or the "Terminal" application in WHM.
- Verify the extension is disabled.
[root@server ~]cPs# selectorctl --list-extensions --version=7.4 | grep -i ioncube_loader
- ioncube_loader
[root@server ~]cPs#The minus sign (-) next to the extension indicates that the extension is disabled. A plus sign (+) next to the extension means that the extension is enabled. A tilde (~) next to the extension means that it is compiled into the interpreter and cannot be disabled.
- Enable the extension.
selectorctl --enable-extensions=ioncube_loader --version=7.4
- Verify that the extension is enabled.
[root@server ~]cPs# selectorctl --list-extensions --version=7.4 | grep -i ioncube_loader
+ ioncube_loader
[root@server ~]cPs#
Comments
0 comments
Article is closed for comments.