Koozali.org: home of the SME Server

ANNOUNCE: Patched PHP 4.1.2 RPMs available

Dan Brown

ANNOUNCE: Patched PHP 4.1.2 RPMs available
« on: March 11, 2002, 07:07:57 AM »
I've built RPMs of PHP 4.1.2 incorporating Mitel's security patch; they are now available for download at my contrib directory at

ftp://ftp.e-smith.org/pub/e-smith/contrib/DanBrown/RPMS/

   IMPORTANT:  If you are using my PHP 4.1.1 RPMs, or any version other than that provided by Mitel's latest update blades, you should upgrade to this version to fix a security vulnerability.

   My HOWTO has been updated to reflect the new versions.

NOTE:

   Mitel's Update1 blade specifically requires their version of PHP.  Since I didn't hear any better suggestions on how to handle this fact, these RPMs have an Obsoletes: tag that obsoletes 5.1.2 Update1, 5.1.1 Update1, and 5.0 Update4.  This will, I expect, result in those blades showing as "Not Installed" in your blades panel.  However, it should also allow my updates to be installed without using the --force or --nodeps flags to RPM.

   These RPMs were built by taking the stock PHP 4.1.2 tarball, and applying Mitel's (Charlie's) patch to it without modification.  It "works" in that it builds without errors, and the resulting RPMs install and seem to run, but I can't vouch for the effectiveness of the patch in this application.  Charlie's written that he doesn't know of any reason that it wouldn't work, but I'm sure he's not willing to guarantee it either.  It'd be good if somebody who knew what s/he's doing would take a look at it; that would not be me.

   As always, any feedback on these RPMs is appreciated.

Dean Mumby

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #1 on: March 11, 2002, 10:16:33 AM »
Hi Dan
I was just wondering how your rpms where built. I followed your original howto upgrade php to 4.0.6 on essg4.1.2 and that was great since you used the arvin rpms which where complied with bcmath and pdflib support. Are your new 4.1.2 prms compiled with bcmath and / or pdflib support, I have a php web app that builds pdf documents from a mysql database and have not been able to set it up since upgrading to sme5.1.2.

Confucius

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #2 on: March 11, 2002, 01:28:40 PM »
Dan,

I ran into troubles with your good efforts, I have NO php activities anymore on my server.

1st I ran into the trouble that lines like

   php_value include_path     '.:/home/httpd/horde-phplib'
   php_value auto_prepend_file /home/httpd/horde-phplib/prepend.php3
   php_flag  magic_quotes_gpc off
   php_flag  track_vars       on

are not accepted from the httpd.conf anymore...

2nd... When I wanna open a php file it goes into download mode.

I hope you can investigate this problem a little :-)

Harro

Dan Brown

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #3 on: March 11, 2002, 04:54:32 PM »
They have bcmath; don't know about pdflib.  Doesn't look like it, though.  They were built by taking RedHat's source RPM from their rawhide release and re-building it under RH 7.1.

Harro, what happens when you restart httpd-e-smith?

Confucius

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #4 on: March 11, 2002, 10:48:06 PM »
Dan,

It stays the same. I tried the commandline u mentioned in the HowTo and offcourse the most thinkable 'service httpd restart'

I GOT error messages. I decided to go back to what I had and FORCE it over the rpm's I had from you when I suddenly discovered that Arvin's rpm's also are patched and I had to work quick so I was very happy. Now I have a working Apache again and they are patched. So in the worst case you can drop investigating this if nobody else comes with the same problem.

Harro

Dan Brown

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #5 on: March 11, 2002, 10:53:27 PM »
Harro, without the error messages, I have no way to investigate this.

guestHH

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #6 on: March 12, 2002, 02:45:53 AM »
Just to let you know Dan: Worked like a charm.

SME 5.1.2, IMP3.0 with your 4.11 update.

Regards,
guestHH

Dan G.

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #7 on: March 12, 2002, 02:53:53 AM »
Worked on my test box, so I put it onto 2 production servers today.  No problems. Smooth sailing for 20 live users on webmail.

Thanks for the contribution.

Dan

Jean-Philippe

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #8 on: March 12, 2002, 05:52:58 PM »
No problem at all for me too : thanks for your good work (as usual), Dan !!!

DINCLAUX Laurent

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #9 on: March 20, 2002, 03:47:38 AM »
Problem with the mysql ext:

In phpinfo, can't see mysql ext ...

DINCLAUX Laurent

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #10 on: March 20, 2002, 04:55:37 AM »
Please help ... (SMEServer-5.1.2_Update1)

I've done exactelly what is described in the How to but mysql, imap and ldap don't appear in phpinfo page !

Dan Brown

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #11 on: March 20, 2002, 06:15:32 AM »
Take a look at /etc/php.ini, and make sure that you have lines that say:

extension=mysql.so
extension=imap.so
extension=ldap.so

If you don't, add them.  If they appear like this:

;extension=mysql.so

...then remove the semicolon.  Restart httpd-e-smith, and you should be ready to go.

DINCLAUX Laurent

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #12 on: March 20, 2002, 06:35:39 AM »
I've lokked at it already....

Found it:
extension_dir = ./

Have to change it to:
extension_dir = /usr/lib/php4/


Now PHP works well.......

What does './' means ? Is it where php.ini reside (/etc) ?

DINCLAUX Laurent

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #13 on: March 20, 2002, 06:35:52 AM »
I've looked at it already....

Found it:
extension_dir = ./

Have to change it to:
extension_dir = /usr/lib/php4/


Now PHP works well.......

What does './' means ? Is it where php.ini reside (/etc) ?

Confucius

Re: ANNOUNCE: Patched PHP 4.1.2 RPMs available
« Reply #14 on: March 20, 2002, 06:42:44 PM »
Dan,

In reply to my first mentioning that it didn't work I like to make my personal apologies to you.

I read the part about Expat & MM before doing the upgrade. My system had the Expat & MM already BUT.. they were done by Roels Arvin and that caused a NO GO on the system. Simply forced them over the ones from Roels and worked on down to the bottom, did the install of IMP 3.0 and even that went smooth.

My excuses again... great job you did...

Harro