Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: eastend99 on October 22, 2014, 09:12:11 PM
-
I found the following topic on installing PHP 5.4 on CENTOS 6 through the SCL repo:
http://www.ilsistemista.net/index.php/linux-a-unix/45-joomla-3-3-centos-6-and-php-version-putting-all-together.html (http://www.ilsistemista.net/index.php/linux-a-unix/45-joomla-3-3-centos-6-and-php-version-putting-all-together.html)
It uses the CENTOS SCL repo, http://wiki.centos.org/AdditionalResources/Repositories/SCL (http://wiki.centos.org/AdditionalResources/Repositories/SCL)
It allows you to install a maintained PHP 5.4 version alongside the default 5.3 version, PHP 5.4 is enabled by using a wrapper cgi script in the cgi-bin folder of the website ibay.
I tested it, this seems to work. I know this is a workaround, not a very nice solution, but I need it. Other options are to move to CENTOS 7 or ditch Joomla.
Does the cgi-bin PHP wrapper method have any security implications (misconfiguring PHP settings, possible PHP vulnerabilities excluded)?
Is this method considered "valid" to enable PHP 5.4 on SME9? Or should I look for other solutions?
If it is, I will add it to the wiki.
TIA,
Marcel
-
Hi,
As background reading material, not an advice, for my PHP skills are zero.
http://wiki.contribs.org/PHP5 (http://wiki.contribs.org/PHP5) (old, outdated and no longer valid)
and
http://wiki.contribs.org/Upgrade_php/mysql (http://wiki.contribs.org/Upgrade_php/mysql)
guest
-
I tested it, this seems to work. I know this is a workaround, not a very nice solution, but I need it. Other options are to move to CENTOS 7 or ditch Joomla.
Does the cgi-bin PHP wrapper method have any security implications (misconfiguring PHP settings, possible PHP vulnerabilities excluded)?
Is this method considered "valid" to enable PHP 5.4 on SME9? Or should I look for other solutions?
If it is, I will add it to the wiki.
I have no idea on the security implications of this but others should be able to advise.
One possible answer is create a bug for it (tends to catch the devs eyes !!!!). That can be cloned off to a wiki doc bug.
Whatever you do, do make sure it gets documented though !
B. Rgds
John
-
eastend99 & all
CentOS6.x (sme9) supports Software Collections, which is the answer that many people have wanted over the years to allow different versions of software components to be installed.
The system can be configured so that certain apps will use a certain (required) version of a package, but still leave the LinuxOS standard package version installed to avoid incompatibilities & upgrade issues etc.
Now that we have a final released version of SME9, then perhaps it's time to start exploring how to use these Software Collections.
Described here
https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/1/html/Software_Collections_Guide/sect-What_Are_Software_Collections.html
See this post by Charlie Brady
http://forums.contribs.org/index.php/topic,50433.msg253730.html#msg253730
which refers to
https://access.redhat.com/site/documentation/en-US/Red_Hat_Developer_Toolset/1/html/Software_Collections_Guide/
http://developerblog.redhat.com/2013/08/06/using-drupal-7-with-the-php-5-4-and-mysql-software-collections/
https://www.google.ca/webhp?q=mysql55%20el5%20rpm
-
To all & particularly members of the Docs team
The use of Software Collections on SME9 would be a very good Howto article.
ie
step by step what to do to enable & use on SME9.
-
To all & particularly members of the Docs team
The use of Software Collections on SME9 would be a very good Howto article.
ie
step by step what to do to enable & use on SME9.
Here is a start to get people going and start experimenting and add their experiences:
http://wiki.contribs.org/Software_collections (http://wiki.contribs.org/Software_collections)
-
RequestedDeletion
Good job HF.
Re
"Software Collections is only available for SME Server 9.x 64-bit"
So not for 32 bit systems.
Where did you see that reference ?
-
https://access.redhat.com/documentation/en-US/Red_Hat_Software_Collections/1-Beta/html/1.2_Release_Notes/chap-RHSCL.html#sect-RHSCL-About
section 1.4
-
HF, impressive job, well done
-
Thanks for all the answers and stuff to read!
When I look at the wiki page Software Collections
http://wiki.contribs.org/Software_collections
this is exactly what I did. Install scl-utils, enable the CENTOS SCL repo and install php54.
Normally the way the SCL software package is invoked is with a scl enable command, which creates the right environment:
myserver #scl enable php54 'php -v'
PHP 5.4.16 (cli) (built: Jul 10 2014 10:06:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
I think it should be possible to force apache to start using php54 environment. Using a cgi script has the benefit of enabling a single ibay (website) to use php5.4.
-
I created a howto (example) on the wiki page http://wiki.contribs.org/Software_collections (http://wiki.contribs.org/Software_collections)
<edited typo>