Koozali.org: home of the SME Server

Upgrade PHP on SME 5.6

Greg Zartman

Upgrade PHP on SME 5.6
« on: July 14, 2003, 06:01:36 AM »
Does anyone know of any pitfalls in upgrading PHP 4.2.1 to 4.2.3 on SME 5.6?   The reason that I ask is that Mitel is staying with the 4.2.1 rpms in SME 6.0beta 2, which makes one wonder if there is an issue with php 4.2.1+

I've successfully installed updated RH 7.3 php rpms and all seems well, but .....

In a nutshell, I uninstalled the following stock SME rpms:

php-4.2.1xxxx
php-imap-4.2.1xxxx
php-ldap-4.2.1xxxx
php-mysql-4.2.1

and then installed the following RH 7.3 rpms:

php-4.2.3-1db_rh73.i386.rpm
php-imap-4.2.3-1db_rh73.i386.rpm
php-ldap-4.2.3-1db_rh73.i386.rpm
php-mysql-4.2.3-1db_rh73.i386.rpm

Thank you.

Greg Zartman

Dan Brown

Re: Upgrade PHP on SME 5.6
« Reply #1 on: July 14, 2003, 07:13:29 AM »
Well, if you're going to upgrade at all, go all the way to 4.3.2 IMO.  Then just do

# pear install Log
# /sbin/e-smith/expand-template /etc/php.ini

and restart apache.

I expect the reason Mitel is staying with 4.1.2 is that's the latest version RH has built RPMs for.

Greg Zartman

Re: Upgrade PHP on SME 5.6
« Reply #2 on: July 14, 2003, 08:48:01 AM »
> Well, if you're going to upgrade at all, go all the way to
> 4.3.2 IMO.  Then just do

4.3.2 breaks stock IMP on SME 5.6 whereas 4.2.3 doesn't.  Seems I recall you mentioning this at one point...  Probably just a matter of upgrading IMP to the lastest version.

Thanks for the info Dan.

Regards,

Greg Zartman

Craig Jensen

Re: Upgrade PHP on SME 5.6
« Reply #3 on: July 14, 2003, 09:48:26 AM »
Greg,  I have successfully installed the packages by Dan Brown as he stated... with all the bells and whistles, on SME 5.6.  Works great here.

Craig Jensen

Guck Puppy

Re: Upgrade PHP on SME 5.6
« Reply #4 on: July 14, 2003, 11:09:40 AM »
Greg Zartman wrote:

> > Well, if you're going to upgrade at all, go all the way to
> > 4.3.2 IMO.  Then just do

> 4.3.2 breaks stock IMP on SME 5.6 whereas 4.2.3 doesn't.
> Seems I recall you mentioning this at one point...  Probably
> just a matter of upgrading IMP to the lastest version.

It does break it. That's why you should perform the commands Dan mentioned just after the quote :

# pear install Log
# /sbin/e-smith/expand-template /etc/php.ini

This fixes the break to IMP.

G

Greg Zartman

Re: Upgrade PHP on SME 5.6
« Reply #5 on: July 14, 2003, 07:51:21 PM »
> It does break it. That's why you should perform the commands
> Dan mentioned just after the quote :
>
> # pear install Log
> # /sbin/e-smith/expand-template /etc/php.ini
>
> This fixes the break to IMP.

Interesting.  I tried this, but IMP still didn't work right.  Maybe it was the version for the Log pear package that I installed.  I am trying this upgrade on a VMware SME install, which didn't have direct access to the net.   Therefore, I downloaded the Log library from the pear site, copied to a local directory on my VMware SME install, then installed from the local directory.  

Regards,

Greg Zartman

Tony Hansen

Re: Upgrade PHP on SME 5.6
« Reply #6 on: July 19, 2003, 10:34:46 AM »
I hate to be such an idiot, but how do you uninstall these?

> In a nutshell, I uninstalled the following stock SME rpms:
> php-4.2.1xxxx

Also, Dan, how up-to-date is this page?
http://www.familybrown.org/howtos/php-upgrade-howto-sme512.html
Is the process to upgrade to 4.3.2 similar?
I don't care about webmail working, I don't use it anyway, I wrote
my own php email program to handle the thousands of junkmails I get.

It sure would be nice to have a procedure to upgrade to 4.3.2.

Tony Hansen

Pete Walker

Re: Upgrade PHP on SME 5.6
« Reply #7 on: July 19, 2003, 03:11:18 PM »
Tony,

I have just upgraded my PHP to 4.3.2 using Greg's HOWTO at http://www.leiinc.com/repository/Linux/Mitel_SME_Server/HowToGuides/sme56_imp-horde-php_upgrade.htm with no problems.

Thanks to Greg for an excellent, easy to follow process.

Cheers,

Pete.

Scott

Re: Upgrade PHP on SME 5.6
« Reply #8 on: August 10, 2003, 05:22:46 AM »
<<<http://www.leiinc.com/repository/Linux/Mitel_SME_Server/HowToGuides/sme56_imp-horde-php_upgrade.htm with no problems.

Thanks to Greg for an excellent, easy to follow process.

Cheers,

Pete.>>>>>

Thanks to Pete and Greg. The guide works flawlessly.
I just ran it and now the phpwebsite scripts are
responding. I still don't have it fully configured yet,
but the problems I think are in the phpwebsite
scripts.

But the main point is that PHP4.3.2 is installed on my
SME56 and working fine.

Scott

Craig

Re: Upgrade PHP on SME 5.6
« Reply #9 on: November 11, 2003, 07:44:19 PM »
Hi.

I just did the install as stated above, but now the calendar extension isn't loaded. How do I get this back?

Thanks!

Trevor

Re: Upgrade PHP on SME 5.6
« Reply #10 on: November 20, 2003, 01:03:44 AM »
Trying to run this update... I have some other contribes previously installed.. Any idea how to get around and/or update these dependencies???

# rpm -Uvh php_4.3.2/*
error: failed dependencies:
        libdb-3.3.so   is needed by php-4.3.2-2db
        php = 4.1.2-2es3 is needed by php-pgsql-4.1.2-2es3

Thanks!

PS... Thanks to the individuals in this community that contribute sooo much of their time helping others here. Pete, Greg, Dan to name only a few...

Guck Puppy

Re: Upgrade PHP on SME 5.6
« Reply #11 on: November 20, 2003, 10:26:35 PM »
Trevor wrote:

> # rpm -Uvh php_4.3.2/*
> error: failed dependencies:
>         libdb-3.3.so   is needed by php-4.3.2-2db
>         php = 4.1.2-2es3 is needed by php-pgsql-4.1.2-2es3

Do you need the php postgres interface? If so, download the 4.3.2 version of it.

http://rpmfind.speakeasy.net/linux/rpm2html/search.php?query=libdb-3.3.so&submit=Search+...&system=redhat-7.3&arch=

Locates the libdb-3.3.so required.

All just part of the 'fix the dependencies' game which is so fun to play!

Go! Play! Fun!

Dan Brown

Re: Upgrade PHP on SME 5.6
« Reply #12 on: November 20, 2003, 10:37:40 PM »
...and if you don't need it, rpm -e it.  BTW, I have RPMs out now of 4.3.4, which is said to fix lots of bugs in 4.3.2 and 4.3.3; it'd be better to upgrade to those packages.

Guck Puppy

Re: Upgrade PHP on SME 5.6
« Reply #13 on: November 21, 2003, 12:51:58 AM »
Dan Brown wrote:
> I have RPMs out
> now of 4.3.4, which is said to fix lots of bugs in 4.3.2 and
> 4.3.3; it'd be better to upgrade to those packages.

Whereabouts Dan?

http://www.ibiblio.org/pub/Linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/
doesn't show them...

G

Dan Brown

Re: Upgrade PHP on SME 5.6
« Reply #14 on: November 21, 2003, 01:10:38 AM »
Ugh, looks like Mitel (again) changed the IP address they're trying to rsync from, so it was failing.  Should be up there tonight.