Upgrade PHP?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade PHP?

Post by abrist »

hmmm, so you built 5.4 from source but still have 5.3 packages installed? You may have to remove the yum packages first if that is the case. This can be a dicey process as you need to make sure that the compile options are correct. Do you not have the option of getting prebuilt php 5.4 packages from yum?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Upgrade PHP?

Post by vAJ »

I couldn't find a repo that had one...
Andrew J. - Do you even grok?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade PHP?

Post by abrist »

Yeah, you may need to use a fedora repo for those packages:
http://serverfault.com/questions/456968 ... 3-with-yum
What distribution and release number are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Upgrade PHP?

Post by vAJ »

Running Centos 6.4, updated a while back from the 6.3 VM that was available on the XI download site.
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Upgrade PHP?

Post by vAJ »

Crap, that repo updated me to 5.5...
Andrew J. - Do you even grok?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade PHP?

Post by abrist »

I assume you will have issues with 5.5 as our source guardian package only supports to 5.4. Crap is right. That was the only other repo I have notes about. Fedora must have just moved to 5.5. You may be stuck with either:

1. rolling back to 5.3
2. tinkering with the 5.4 source install
3. finding another repo with 5.4
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Upgrade PHP?

Post by vAJ »

I'm rolling the VM back to my last snapshot. Not worried about the perf data lost. I've taken this VM down too many rabbit holes.

When I get it back, I'll be on 5.3.3. Do I need to remove the 5.3.3 packages with YUM before trying 5.4 from source again?
Andrew J. - Do you even grok?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrade PHP?

Post by slansing »

You should remove all previous PHP versions and packages associated, then fully install php 5.4, let us know how this works!
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Upgrade PHP?

Post by vAJ »

So, do I need all of this:

Code: Select all

php-cli.x86_64                        5.3.3-22.el6                     @base
php-common.x86_64                     5.3.3-22.el6                     @base
php-gd.x86_64                         5.3.3-22.el6                     @base
php-ldap.x86_64                       5.3.3-22.el6                     @base
php-mbstring.x86_64                   5.3.3-22.el6                     @base
php-mcrypt.x86_64                     5.3.3-1.el6.rf                   @rpmforge
php-mssql.x86_64                      5.3.3-1.el6                      @epel
php-mysql.x86_64                      5.3.3-22.el6                     @base
php-pdo.x86_64                        5.3.3-22.el6                     @base
php-pear.noarch                       1:1.9.4-4.el6                    @base
php-pear-HTML-Template-IT.noarch      1.3.0-2.el5                      @/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-pgsql.x86_64                      5.3.3-22.el6                     @base
php-snmp.x86_64                       5.3.3-22.el6                     @base
php-xml.x86_64                        5.3.3-22.el6                     @base
Which PHP modules are required for XI?
Andrew J. - Do you even grok?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrade PHP?

Post by slansing »

You will need all of that, looks as though that list will fit the bill. Better safe than sorry late in any case!
Locked