Koozali.org: home of the SME Server

Joomla 3.3 and SME 9 (valid solution?)

Offline eastend99

  • **
  • 48
  • +0/-0
Joomla 3.3 and SME 9 (valid solution?)
« 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

It uses the CENTOS SCL repo, 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

guest22

Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #1 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 (old, outdated and no longer valid)

and

http://wiki.contribs.org/Upgrade_php/mysql


guest

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #2 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #3 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

« Last Edit: October 23, 2014, 02:47:06 AM by janet »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #4 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

guest22

Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #5 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

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #6 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 ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.


Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #8 on: October 23, 2014, 12:16:51 PM »
HF, impressive job, well done

Offline eastend99

  • **
  • 48
  • +0/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #9 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. 

Offline eastend99

  • **
  • 48
  • +0/-0
Re: Joomla 3.3 and SME 9 (valid solution?)
« Reply #10 on: October 26, 2014, 03:25:06 PM »
I created a howto (example) on the wiki page http://wiki.contribs.org/Software_collections
<edited typo>
« Last Edit: October 26, 2014, 03:44:59 PM by eastend99 »