• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

How do I uninstall apache2 installed in the wrong folder on Solaris

I am a unix newbie and recently installed apache2 in the /etc folder on a solaris machine when I should have installed in in /opt. I installed from a binary distribution.

Now I need to uninstall it and reinstall it in the /etc folder.

Basically all I did was

pfexec install-bindist.sh $APACHE_HOME
where APACHE_HOME = /etc/apache2

Is it ok to just delete the apache2 folder. I didn't do anything else.

Thank you in advance.
  • 4
  • 3
1 Solution
how it was installed ? was it a solaris package? if yes then you may delete it wilth pkgrm command
theOctopusAuthor Commented:
Yes. it was a Solaris specific package: httpd-2.0.55-sparc-sun-solaris2.8.tar.gz

How would I remove it?
this is a tar file and is not a package? can you describe installation steps?
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

theOctopusAuthor Commented:
OR is it ok for it to be installed in /etc/apache2

It says it is online when I run svcs -l apache2
theOctopusAuthor Commented:
1. I downloaded the tar.gz file.
2. Unzipped it locally.
3. Uploaded to the server.
4. Ran the bindist-install.sh.
5. cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf
6. svcadm enable apache2

And it says it is online...
/etc is for system files (by convention) and it is better to not install any s/w in it. You may try moving apatche2 dir to /opt and see if it is ok:

mv /etc/apatche2 /opt

If you really wants to delete / uninstall it then try

cd /etc
rm -rf apache2 (please make sure you don't have any files in apache2 dir that you need)

You may also describe the steps you did to get it installed so I may give better procedure
theOctopusAuthor Commented:
I think I will just leave it inside /etc

It should not be a problem.

Thank you for the procedure though.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now