Koozali.org: home of the SME Server

Software Collections

Offline janet

  • ****
  • 4,812
  • +0/-0
Software Collections
« on: October 23, 2014, 03:07:09 AM »
Dear All, Developers & Wiki & Docs team members

Charlie Brady brought to our attention some time ago that SME9/CentOS6 supports software collections, which will allow multiple versions of packages to be installed & be selectively used by apps/contribs where the app requires a specific non standard version of a package eg php5.4

This should really be further investigated & detailed Howto instructions created for users to avail of these Software Collections.

Who wants to get involved in investigating this ?

Refer to
http://forums.contribs.org/index.php/topic,51221.msg259761.html#msg259761
which has links to a previous post etc & Red Hat info

Info about Software Collections starts here
https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/1/html/Software_Collections_Guide/

Have fun !

This will be a good thing for SME users wanting to install newer/current versions of contribs etc that need latest versions of packages like PHP, MYSQL & so on.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

guest22

Re: Software Collections
« Reply #1 on: October 23, 2014, 07:54:26 AM »

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Software Collections
« Reply #2 on: October 23, 2014, 04:24:02 PM »
http://blog.famillecollet.com/post/2014/09/03/PHP-5.5-as-Software-Collection

it seems that it is available for i386 with scl php55
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

guest22

Re: Software Collections
« Reply #3 on: October 23, 2014, 05:29:39 PM »
That could be stephdl, it depends on which "repo" you're using. Redhat/CentOS official slc repo's only provide the 64 bit versions. The link you provided points to a /remi repo, which may contain 32 bit versions of the RPM's.


If we've figured it out, we'll wikize it ;-)


guest

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Software Collections
« Reply #4 on: October 23, 2014, 10:55:07 PM »
Charlie Brady brought to our attention some time ago that SME9/CentOS6 supports software collections, which will allow multiple versions of packages to be installed & be selectively used by apps/contribs where the app requires a specific non standard version of a package eg php5.4

For SME9 you should also look at docker.

guest22

Re: Software Collections
« Reply #5 on: October 23, 2014, 11:05:56 PM »
For SME9 you should also look at docker.


Agree, that's a WIP here http://wiki.contribs.org/Docker, but progress and general interest is slow.


Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Software Collections
« Reply #7 on: October 28, 2014, 07:50:34 AM »
reference to that link : http://wiki.contribs.org/Software_collections#run_php54_on_a_hosted_website_.28virtual_host.29

A question, did you try to simply use an ibay instead of a virtualhost....maybe a user wants to use the scl collection with an ibay and not a virtualhost which link to an ibay...I have the feeling that all is in place if you want to use scl with an ibay, except  that you have to do a wrapper in the cgi folder. My 2c but I didn't test it.

This is what I can read in httpd.conf for owncloud

 <Directory /home/e-smith/files/ibays/owncloud/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
 </Directory>


That could be a nice rpm to easily install scl collection, at least for php. It lacks only an automatic way to write the wrapper in cgi-bin but we can use the content property to do it.

If you want to roll a rpm i can help/advice/do it
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Software Collections
« Reply #8 on: October 30, 2014, 06:43:16 PM »
Charlie Brady brought to our attention some time ago that SME9/CentOS6 supports software collections, which will allow multiple versions of packages to be installed & be selectively used by apps/contribs where the app requires a specific non standard version of a package eg php5.4

Source rpms can be found here:

ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/RHSCL/SRPMS/

A new set of packages was announced this morning:

https://www.redhat.com/en/about/press-releases/latest-version-red-hat-software-collections-now-generally-available

Offline Xavier.A

  • ***
  • 104
  • +0/-0
Re: Software Collections
« Reply #9 on: October 30, 2014, 11:45:54 PM »
“When the wise man points to the moon, the fool looks at the finger.”

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Software Collections
« Reply #10 on: October 31, 2014, 03:04:54 AM »
This is a game changer if it gets up and running OK on SME, chuck in docker and the skies the loimit and that's probably understating it..

While my skill set is limited I can as always run and test the shite :-) out of it :-)
--
qui scribit bis legit

Offline davidS

  • ***
  • 80
  • +0/-0
Re: Software Collections
« Reply #11 on: November 06, 2014, 05:49:05 PM »
reference to that link : http://wiki.contribs.org/Software_collections#run_php54_on_a_hosted_website_.28virtual_host.29

A question, did you try to simply use an ibay instead of a virtualhost....maybe a user wants to use the scl collection with an ibay and not a virtualhost which link to an ibay...I have the feeling that all is in place if you want to use scl with an ibay, except  that you have to do a wrapper in the cgi folder. My 2c but I didn't test it.

This is what I can read in httpd.conf for owncloud

 <Directory /home/e-smith/files/ibays/owncloud/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
 </Directory>


That could be a nice rpm to easily install scl collection, at least for php. It lacks only an automatic way to write the wrapper in cgi-bin but we can use the content property to do it.

If you want to roll a rpm i can help/advice/do it

hi stephdl
Can you explain to me how this can be done to an IBAY and not to a domain (virtualhost)
it will be easier because I install Joomla before I have a domain

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Software Collections
« Reply #12 on: November 07, 2014, 05:11:22 PM »
I'm testing another way, more userfriendly, from my point of view of course

I would enable the scl from the ibay and not from the domain

need more test and a rpm

Code: [Select]
{
       use esmith::AccountsDB;
        my $accounts = esmith::AccountsDB->open_ro;

        my @ibays = $accounts->ibays;
        foreach my $ibay (@ibays) {

                my $phpRHCL = $ibay->prop("phpSCL") || "";
                my $key = $ibay->key;

                if ($phpRHCL eq 'enabled') {

                        # write the configuration

                        $OUT .= "\n";
                        $OUT .= "\n";
                        $OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
                        $OUT .= "    # use PHP of RHSCL  instead of the default PHP\n";
                        $OUT .= "    AddHandler php-cgi .php\n";
                        $OUT .= "    Action php-cgi /cgi-bin/php54-wrapper\n";
                        $OUT .= "</Directory>\n";
                        $OUT .= "\n";
                        $OUT .= "\n";

                }
        }
}


You have still to put the wrapper in the cgi-bin and for enabling it.

Code: [Select]
db accounts setprop ibayname  phpSCL enabled
signal-event ibay-modify ibayname
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Software Collections
« Reply #13 on: November 07, 2014, 05:22:29 PM »
[/code]

You have still to put the wrapper in the cgi-bin and for enabling it.

Code: [Select]
db accounts setprop ibayname  phpSCL enabled
signal-event ibay-modify ibayname

I'd choose another name than phpSCL, because with SCL, you can have several different php versions installed, so you could switch for example between:

- Stock php (5.3.3, using mod_php)
- php54 from SCL (as a CGI)
- php56 from SCL (as a CGI)
C'est la fin du monde !!! :lol:

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Software Collections
« Reply #14 on: November 07, 2014, 05:57:09 PM »
indeed, thanks for the tips, I'm fighting against the virtualhost since I want one wrapper for all ibays....next soon
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!