Koozali.org: home of the SME Server

Update ZLIB to 1.2.3

Offline rdtaylor

  • **
  • 26
  • +0/-0
Update ZLIB to 1.2.3
« on: September 21, 2006, 02:14:17 AM »
Hi!

I want to make sure that PHP on my sme server has the latest ZLIB.

How do I go about doing this?

Centos updates don't seem to contain newer versions.

I downloaded the source and ran make and make install, but the PHPINFO page still shows the old version of ZLIB in php.

How does one make sure that php know about / uses the newer version of zlib??

cheers
Rob

Offline gregswallow

  • *
  • 651
  • +1/-0
Update ZLIB to 1.2.3
« Reply #1 on: September 21, 2006, 02:19:55 AM »
Out of curiousity, what doesn't work with the current version?

Offline rdtaylor

  • **
  • 26
  • +0/-0
Update ZLIB to 1.2.3
« Reply #2 on: September 21, 2006, 02:54:05 AM »
Hi Greg,

I am using SugarCRM, and having a weird problem uploading the 4.5.0b patch.

Advice received on the SugarCRM forum suggests that I should have the latest ZLIB.

I'm really a bit of a beginner at this stuff...but anyways...I've since been doing some reading which suggests that ZLIB 1.2.3 is not available for Centos 4.x.

If I want to try and grab the Fedora RPM, it moans because there are other dependencies...so I think I'm stuck...

I'm getting the distinct feeling that the advice on the SugarCRM forum is being given for lack of any real clue what the problem might be...

cheers
Rob

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Update ZLIB to 1.2.3
« Reply #3 on: September 21, 2006, 05:24:58 AM »
Quote from: "rdtaylor"

Advice received on the SugarCRM forum suggests that I should have the latest ZLIB.

I'm getting the distinct feeling that the advice on the SugarCRM forum is being given for lack of any real clue what the problem might be...

cheers
Rob


Code: [Select]
Update zlib

CentOS comes with an outdated version of zlib (1.2.1) which has a security hole. Therefore we compile and install the newest zlib (1.2.3) from the sources:

cd /tmp
wget http://www.zlib.net/zlib-1.2.3.tar.gz
tar xvfz zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --shared
make
make install


The above is from...
HowToForge
Regards,
William

IF I give advise.. It's only if it was me....

Offline rdtaylor

  • **
  • 26
  • +0/-0
Update ZLIB to 1.2.3
« Reply #4 on: September 22, 2006, 01:41:41 AM »
I've already done that...

but the phpinfo() function still shows the old ZLIB version...

Offline gregswallow

  • *
  • 651
  • +1/-0
Update ZLIB to 1.2.3
« Reply #5 on: September 22, 2006, 01:58:56 AM »
> but the phpinfo() function still shows the old ZLIB version...

Put the original SME7/CentOS zlib rpm back then.  Only install things via yum or rpm commands - you shouldn't have followed william_syd's advice.

I'd look into other ways of installing the patch - ie, can't you just copy the newer files over top of the existing ones?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Update ZLIB to 1.2.3
« Reply #6 on: September 22, 2006, 03:19:39 AM »
I was really just confirming what the OP had already done.

Anyway,
Code: [Select]
./configure --shared --prefix=/usr
is probably closer to the mark but I havn't tried it yet.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Update ZLIB to 1.2.3
« Reply #7 on: September 22, 2006, 04:26:20 AM »
Quote from: "rdtaylor"

I am using SugarCRM, and having a weird problem uploading the 4.5.0b patch.


I'm getting the distinct feeling that the advice on the SugarCRM forum is being given for lack of any real clue what the problem might be...

cheers
Rob


This wouldn't be because of the PHPBasedir restriction? Is the patch uploaded within SugarCRM ?

Quote from: "http://www.sugarcrm.com/forums/showpost.php?p=52931&postcount=27"
Sep 19 13:51:11 kremlin httpd: PHP Warning: unlink(): open_basedir restriction
in effect. File(/tmp/2tWaQp) is not within the allowed path(s): (/home/e-smith/f
iles/ibays/crm/) in /home/e-smith/files/ibays/crm/html/include/utils/file_utils.
php on line 66

I added /tmp to the list of open_basedir's in my httpd.conf file, and now I get this error:


Until the wiki/faq is back maybe this post will help...

http://forums.contribs.org/index.php?topic=33806.msg144668#msg144668
Regards,
William

IF I give advise.. It's only if it was me....