php5.4


#1

Hello,

I am having a hard time installing php54 on centos…I’m using the
following cookbook:

When deploying php using the default recipe, it installs 5.3…In that case
I setup an override attribute:

name “php54”

description "php54 applied to all instances."
run_list(
“recipe[yum]”,
“recipe[yum-epel]”,
“recipe[php]”
)

default_attributes( “php” => { “version” => “5.4.15” }

Is there another cookbook that I should be looking at to be able to switch
between php5.3 and 5.4?

Nikhil ShahSystem Administrator
nshah@theorchard.comp. (+1) 212 308-5648

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003

Follow us: The Daily Rind http://www.dailyrindblog.com/ • Facebook
http://www.facebook.com/theorchard • Twitter
http://www.twitter.com/orchtweets • YouTube
http://www.youtube.com/user/theorchard • LinkedIn
http://www.linkedin.com/company/the-orchard

Privileged And Confidential Communication. This electronic transmission,
and any documents attached hereto, (a) are protected by the Electronic
Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain
confidential and/or legally privileged information, and © are for the
sole use of the intended recipient named above. If you have received this
electronic message in error, please notify the sender and delete the
electronic message. Any disclosure, copying, distribution, or use of the
contents of the information received in error is strictly prohibited.


#2

I think the problem I was having is that I was using packages rather than
source.

On Thu, Aug 7, 2014 at 3:44 PM, Nikhil Shah nshah@theorchard.com wrote:

Hello,

I am having a hard time installing php54 on centos…I’m using the
following cookbook:
https://github.com/opscode-cookbooks/php

When deploying php using the default recipe, it installs 5.3…In that
case I setup an override attribute:

name “php54”

description "php54 applied to all instances."
run_list(
“recipe[yum]”,
“recipe[yum-epel]”,
“recipe[php]”
)

default_attributes( “php” => { “version” => “5.4.15” }

Is there another cookbook that I should be looking at to be able to switch
between php5.3 and 5.4?

Nikhil ShahSystem Administrator
nshah@theorchard.comp. (+1) 212 308-5648

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003
www.theorchard.com

Follow us: The Daily Rind http://www.dailyrindblog.com/ • Facebook
http://www.facebook.com/theorchard • Twitter
http://www.twitter.com/orchtweets • YouTube
http://www.youtube.com/user/theorchard • LinkedIn
http://www.linkedin.com/company/the-orchard

Privileged And Confidential Communication. This electronic
transmission, and any documents attached hereto, (a) are protected by the
Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may
contain confidential and/or legally privileged information, and © are for
the sole use of the intended recipient named above. If you have received
this electronic message in error, please notify the sender and delete the
electronic message. Any disclosure, copying, distribution, or use of the
contents of the information received in error is strictly prohibited.


Nikhil ShahSystem Administrator
nshah@theorchard.comp. (+1) 212 308-5648

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003

Follow us: The Daily Rind http://www.dailyrindblog.com/ • Facebook
http://www.facebook.com/theorchard • Twitter
http://www.twitter.com/orchtweets • YouTube
http://www.youtube.com/user/theorchard • LinkedIn
http://www.linkedin.com/company/the-orchard

Privileged And Confidential Communication. This electronic transmission,
and any documents attached hereto, (a) are protected by the Electronic
Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain
confidential and/or legally privileged information, and © are for the
sole use of the intended recipient named above. If you have received this
electronic message in error, please notify the sender and delete the
electronic message. Any disclosure, copying, distribution, or use of the
contents of the information received in error is strictly prohibited.


#3

php 5.4 is not part of any of the base CentOS repositories I’m aware of. Where, exactly, do you expect to find it?

There is a ‘webtatic’ repository at https://webtatic.com/packages/php54/ https://webtatic.com/packages/php54/,? that may serve. But you’ll need to enable and activate that repository with the yum cookbook or manually before this recipe can possibly work.


Nico Kadel-Garcia
Senior Systems Consultant
Email: nkadelgarcia-consultant@scholastic.com
Cell Phone: +1.339.368.2428


From: Nikhil Shah nshah@theorchard.com
Sent: Thursday, August 07, 2014 3:44 PM
To: chef@lists.opscode.com
Subject: [chef] php5.4

Hello,

I am having a hard time installing php54 on centos…I’m using the following cookbook:

When deploying php using the default recipe, it installs 5.3…In that case I setup an override attribute:

name "php54"
description "php54 applied to all instances."
run_list(
“recipe[yum]”,
“recipe[yum-epel]”,
“recipe[php]”
)

default_attributes(
“php” => {
“version” => “5.4.15”
}

Is there another cookbook that I should be looking at to be able to switch between php5.3 and 5.4?

Nikhil Shah * System Administrator
nshah@theorchard.commailto:nshah@theorchard.com * p. (+1) 212 308-5648

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003
www.theorchard.comhttp://www.theorchard.com/

Follow us: The Daily Rindhttp://www.dailyrindblog.com/ * Facebookhttp://www.facebook.com/theorchard * Twitterhttp://www.twitter.com/orchtweets * YouTubehttp://www.youtube.com/user/theorchard * LinkedInhttp://www.linkedin.com/company/the-orchard

Privileged And Confidential Communication. This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.


#4

Well, if there isn’t a php 5.4 package, one would expect the recipe to fail
instead of silently installing older version of php. So the issue is either
with the packaging or the recipe.

On Sun, Aug 10, 2014 at 9:27 PM, Kadel-Garcia, Nico <
NKadelGarcia-consultant@scholastic.com> wrote:

php 5.4 is not part of any of the base CentOS repositories I’m aware of.
Where, exactly, do you expect to find it?

There is a ‘webtatic’ repository at
https://webtatic.com/packages/php54/
https://webtatic.com/packages/php54/,​ that may serve. But you’ll need to
enable and activate that repository with the yum cookbook or manually
before this recipe can possibly work.


Nico Kadel-Garcia
Senior Systems Consultant
Email: nkadelgarcia-consultant@scholastic.com
Cell Phone: +1.339.368.2428

From: Nikhil Shah nshah@theorchard.com
Sent: Thursday, August 07, 2014 3:44 PM
To: chef@lists.opscode.com
Subject: [chef] php5.4

Hello,

I am having a hard time installing php54 on centos…I’m using the
following cookbook:
https://github.com/opscode-cookbooks/php

When deploying php using the default recipe, it installs 5.3…In that
case I setup an override attribute:

name “php54”

description "php54 applied to all instances."
run_list(
“recipe[yum]”,
“recipe[yum-epel]”,
“recipe[php]”
)

default_attributes( “php” => { “version” => “5.4.15” }

Is there another cookbook that I should be looking at to be able to
switch between php5.3 and 5.4?

Nikhil ShahSystem Administrator
nshah@theorchard.comp. (+1) 212 308-5648

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003
www.theorchard.com

Follow us: The Daily Rind http://www.dailyrindblog.com/ • Facebook
http://www.facebook.com/theorchard • Twitter
http://www.twitter.com/orchtweets • YouTube
http://www.youtube.com/user/theorchard • LinkedIn
http://www.linkedin.com/company/the-orchard

Privileged And Confidential Communication. This electronic
transmission, and any documents attached hereto, (a) are protected by the
Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may
contain confidential and/or legally privileged information, and © are for
the sole use of the intended recipient named above. If you have received
this electronic message in error, please notify the sender and delete the
electronic message. Any disclosure, copying, distribution, or use of the
contents of the information received in error is strictly prohibited.


Best regards, Dmitriy V.


#5

You can get PHP 5.4 from the IUS repository - getContainer

It actually uses a different package name though (php54), so you would
have to remove the old php packages first instead of just upgrading:

rpm -e --nodeps php php-common

yum install php54 php54-common

Hope that helps.

On Sun, 2014-08-10 at 21:40 -0700, DV wrote:

Well, if there isn’t a php 5.4 package, one would expect the recipe to
fail instead of silently installing older version of php. So the issue
is either with the packaging or the recipe.

On Sun, Aug 10, 2014 at 9:27 PM, Kadel-Garcia, Nico
NKadelGarcia-consultant@scholastic.com wrote:
php 5.4 is not part of any of the base CentOS repositories I’m
aware of. Where, exactly, do you expect to find it?

    There is a 'webtatic' repository
    at https://webtatic.com/packages/php54/,​ that may serve. But
    you'll need to enable and activate that repository with the
    yum cookbook or manually before this recipe can possibly work.
    
    
    
    --
    Nico Kadel-Garcia
    Senior Systems Consultant
    Email: nkadelgarcia-consultant@scholastic.com
    Cell Phone: +1.339.368.2428
    
    ______________________________________________________________
    From: Nikhil Shah <nshah@theorchard.com>
    Sent: Thursday, August 07, 2014 3:44 PM
    To: chef@lists.opscode.com
    Subject: [chef] php5.4 
     
    Hello, 
    
    
    I am having a hard time installing php54 on centos...I'm using
    the following cookbook:
    https://github.com/opscode-cookbooks/php
    
    
    When deploying php using the default recipe, it installs
    5.3...In that case I setup an override attribute:
    
    
    
    
            name "php54"
            description "php54 applied to all instances."
            run_list(
              "recipe[yum]",
              "recipe[yum-epel]",
              "recipe[php]"
            )
    
    
    
            default_attributes(
             "php" => {
                "version" =>"5.4.15"
              }
     
    
    
    
    
    
    
    Is there another cookbook that I should be looking at to be
    able to switch between php5.3 and 5.4?

#6

On Thu, Aug 7, 2014 at 8:44 PM, Nikhil Shah nshah@theorchard.com wrote:

Hello,

I am having a hard time installing php54 on centos…I’m using the following
cookbook:

If you want to stick with rpms…

  1. Use the webstatic repo others have mentioned
  1. Create a wrapper cookbook

  2. Do something like this in there


Andy Gale
http://andy-gale.com
http://twitter.com/andygale


#7

This raises the question- is there any plan or interest to update the
opscode cookbooks to support software collections, now that Red Hat is
using them as the preferred means of releasing newer software versions
like PHP 5.4?

https://www.softwarecollections.org/en/

http://developerblog.redhat.com/tag/software-collections/

On Mon, Aug 11, 2014 at 7:53 AM, Andy Gale andy@salgo.net wrote:

On Thu, Aug 7, 2014 at 8:44 PM, Nikhil Shah nshah@theorchard.com wrote:

Hello,

I am having a hard time installing php54 on centos…I’m using the following
cookbook:

If you want to stick with rpms…

  1. Use the webstatic repo others have mentioned

https://gist.github.com/salgo/7a8fc328679e24010f30

  1. Create a wrapper cookbook

  2. Do something like this in there

https://gist.github.com/salgo/f98f837c6e01f45b9a2a


Andy Gale
http://andy-gale.com
http://twitter.com/andygale


Brian Pitts
Web Operations Engineer