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

Title: Joomla 3.3 and SME 9 (valid solution?)
Post 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
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: guest22 on October 22, 2014, 09:36:45 PM
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
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: ReetP on October 23, 2014, 12:38:52 AM
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
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: janet on October 23, 2014, 02:45:06 AM
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

Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: janet on October 23, 2014, 02:55:52 AM
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.
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: guest22 on October 23, 2014, 07:38:50 AM
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)
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: janet on October 23, 2014, 11:48:51 AM
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 ?
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: guest22 on October 23, 2014, 12:09:09 PM
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
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: Stefano on October 23, 2014, 12:16:51 PM
HF, impressive job, well done
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: eastend99 on October 23, 2014, 04:09:37 PM
Thanks for all the answers and stuff to read!

When I look at the wiki page Software Collections
Quote
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:
Code: [Select]
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. 
Title: Re: Joomla 3.3 and SME 9 (valid solution?)
Post by: eastend99 on October 26, 2014, 03:25:06 PM
I created a howto (example) on the wiki page http://wiki.contribs.org/Software_collections (http://wiki.contribs.org/Software_collections)
<edited typo>