1830094 Members
12776 Online
109998 Solutions
New Discussion

Eliminate apache files

 
jmb
Regular Advisor

Eliminate apache files

I've got a system that, as far as I know, does not need apache for anything. There are a bunch of files under /usr/local/apache2.0.40, but I don't just want to remove those by themselves.

I've been looking for the package that installed those, but have not located it. I don't see B9416AA in swlist, and have also looked for http and webadmin.

I guess it's possible these are orphaned files, but I want to get rid of them if they're not needed. Any suggestions?
5 REPLIES 5
G. Vrijhoeven
Honored Contributor

Re: Eliminate apache files

Hi,

You could check if the files are part of SD installed software by using this command:

# swlist -l file | grep "/usr/local/apache2.0.40"

Regards,

Gideon
jmb
Regular Advisor

Re: Eliminate apache files

Good idea, but I did not get any results. I'm thinking this directory is simply installed as part of the O/S, and is just not part of a piece that can be "uninstalled." I wonder if there will be any surprises down the road if I remove the directory...?
Mel Burslan
Honored Contributor

Re: Eliminate apache files

run swremove in interactive mode and see if it gives you anything related to apache listed in the available software listings. If you think it came with the OS it should be in the installed products database. If not, somebody with root privieges must have downloaded the package from the web and expanded the tarball to put it up there.

if it is listed under available products in swremove, you can mark it and remove it.

just an idea.
________________________________
UNIX because I majored in cryptology...
A. Clay Stephenson
Acclaimed Contributor

Re: Eliminate apache files

If this is 11.11 (11i) then Apache is part of the HPUX11i-OE package and can be removed with an interactive swinstall session by opening the 11i-OE package and marking just the Apache component. However, if this were the HP-UX bundle, apache would be in /opt/apache. Because it is in /usr/local this is probably a non swinstall'ed bundle and can simply be removed. I would rename /usr/local/apache2.0.40 to something like .usr/local/apache2.0.40.furpsplat and set the permissions to 000. Wait a few days or hours and if no complaints then adios.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Eliminate apache files

Since swlist shows nothing, this was probably a compiled version, not from HP's distribution. Virtually all application software (including opensource like Apache) will use the /opt installation tree. /usr/local is (until a recent patch) a big security risk. Therefore, there is likely no unistall script. You can safely blow away /usr/local/apache2.0.40.


Bill Hassell, sysadmin