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: Jason Larson (jasontfsol.org)
Date: Tue Apr 22 2008 - 12:51:08 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.
>
> Anyway,
>
> 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?
> 2.) Maybe I don't need to? If I don't uninstall the original Apache,
> will the new version overwrite the 1.3 version?
> 3.) Do I need to chroot the Apache 2.2.4 or will the "default" install
> set it up that way?
>
> Thank you,
> Ed
>

I don't think uninstalling the default Apache is recommended or needed.
The Apache 2 port should work just fine with the base Apache left alone.

Upgrading to 4.3 or a snapshot will get rid of any X dependency problems
you may run into as 'needed' cruft like expat is now shipped in base.

The Apache 2 port builds the unaltered version from apache.org. I don't
believe Apache 2 runs in a chroot by default, so that would be up to you
to configure manually.

Jason