Koozali.org: home of the SME Server

How to degrade 8:)

Roger

How to degrade 8:)
« on: March 11, 2002, 05:30:51 AM »
Hello,

I have SMEServer v5.0 Update 3 installed. Also followed "How to upgrade PHP in SME Server v5.1.2". With the recent security problem with PHP I turned off file uploads. Now, with the recent fix from e-smith I have tried installing the Update 4 from the blades control panel and get the following error:

"New package php-4.0.6-7es4.i386 conflicts with installed package php-4.1.1-2.i586.
New package php-mysql-4.0.6-7es4.i386 conflicts with installed package php-mysql-4.1.1-2.i586.
New package php-imap-4.0.6-7es4.i386 conflicts with installed package php-imap-4.1.1-2.i586.
New package php-ldap-4.0.6-7es4.i386 conflicts with installed package php-ldap-4.1.1-2.i586.".

Can I somehow gracefully "degrade" to what was there before and then install the blade? I have tried rpm -e on php-4.1.1 but it complains about dependencies, etc. and terminates.

Thanks,
Roger.

Dan Brown

Re: How to degrade 8:)
« Reply #1 on: March 11, 2002, 06:01:05 AM »
Well, you could mount the SME 5 CD and do this:

# cd /mnt/cdrom/e-smith/RPMS
# rpm -Fvh --oldpackage php*

and then install the blade.

Or, you could wait a couple of hours until my patched PHP 4.1.2 RPMs are available on ftp.e-smith.org.

Roger

Re: How to degrade 8:)
« Reply #2 on: March 11, 2002, 06:10:39 AM »
Thanks Dan...I suppose I can wait a few hours 8:) and thank you.

Continuing on single-mindedly...I desperately need to turn on non-standard PHP options. I am following the path that I need to build an RPM to do that properly within e-smith (which seems to be what you are doing...hence my questions). Assuming this is the correct approach...is there a magic recipe (howto) somwhere for this? Everything I have found so far on the use of rpm has been so general that it seems useless.

Thanks again,
Roger.

Dan Brown

Re: How to degrade 8:)
« Reply #3 on: March 11, 2002, 06:17:05 AM »
No, don't build it on an e-smith system unless you have no other choice.  Install RedHat 7.1 on a machine, and use that as your development machine.  As I think I mentioned earlier, if you're adding stuff to PHP, you'd probably be best off starting with an existing PHP source RPM (like the one available in my contrib area, which I borrowed from Redhat) and adding to it, rather than starting from scratch.  Take a look at the spec file, and see what you need to add.

Roger

Re: How to degrade 8:)
« Reply #4 on: March 11, 2002, 06:33:55 AM »
Thanks Dan,

I have a Red Hat 7.1 machine and will use that. I assume your contrib area is the one mentioned in your howto (ftp://ftp.e-smith.org/pub/e-smith/contrib/DanBrown/RPMS). I will poke around and give it a try.
Roger.