How to enable php55?
Hi all,
I have a rhel 6.7 system with php53, 54, and 55 installed. Just installed 55 but I am having a hard time getting php55 to stay enabled. I found this article: https://access.redhat.com/solutions/1451783
however when I log off and back on the system php is not enabled. I have also ran source /opt/rh/php55/enable but I still have the same results when I log off.
How can I get this to stay enabled?
Thanks!
Responses
Hi Gary,
You need to, for example, put the source /opt/rh/php55/enable command into your .bashrc file, so that it's run whenever you start a shell. See also Permanently Enable a Software Collection.
Well, yes, but then the environment variables won't be correct, and that could lead to problems. See How can I make a Red Hat Software Collection persist after a reboot/logout? for an explanation.
Also, some collections (such as servers or databases) contain init scripts, which you can use to enable them permanently. See Running a System Service from a Software Collection.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
