OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: "Correctly" uninstall default Apache and install Apache 2.2.4?

From: Matthew Weigel (uniqueidempot.net)
Date: Mon Apr 21 2008 - 13:38:59 CDT


Ed Flecko wrote:
> Hi folks,
> For a variety of reasons and features, I'd like to install the
> apache-httpd-2.2.4.tgz package. As a side note, I tried to install it
> on OpenBSD 4.2, and there are a few package dependencies it apparently
> is missing (at least on my box, which runs 4.2 without X) because the
> install fails.

http://www.openbsd.org/faq/faq4.html#FilesNeeded
http://www.openbsd.org/faq/upgrade42.html#libexpat

It was a bug in the 4.2 filesets, expat was moved from the package
system to xbase42.tgz, which fewer people install than base42.tgz .

> 1.) Is there a "correct" way to uninstall the default Apache 1.3 that
> ships with OpenBSD? I can't use a "pkg_delete..." can I?

No. Just leave it.

> 2.) Maybe I don't need to? If I don't uninstall the original Apache,
> will the new version overwrite the 1.3 version?

If you install the package of Apache 2.2, it won't owerwrite the base
Apache. You'll have two Apache installs in two different locations,
both of which work and run independently of each other. You may need to
double check PATH settings, I'm not sure, but otherwise it should just
work if you only run the one you want to run. It's not like the base
Apache starts automatically, or anything.

> 3.) Do I need to chroot the Apache 2.2.4 or will the "default" install
> set it up that way?

I don't have an answer for this one. :-)
--
  Matthew Weigel
  hacker
  uniqueidempot.net