How to enable PHP from RHSCL in RHEL 7
Environment
- Red Hat Enterprise Linux (RHEL)
- 7.x
- Red Hat Software Collections (RHSCL)
Issue
- Unable to enable PHP 7.x in RHEL 7
- How do you enable rh-php7x?
Resolution
The following command enabled rh-php7x:
scl enable rh-php7x [Used SHELL]
Replace the x on the command above with the version you're trying to enable:
# PHP 7.1
scl enable rh-php71 bash
# PHP 7.2
scl enable rh-php72 bash
# PHP 7.3
scl enable rh-php73 bash
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments