• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • 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.
0
theOctopus
Asked:
theOctopus
  • 4
  • 3
1 Solution
 
omarfaridCommented:
how it was installed ? was it a solaris package? if yes then you may delete it wilth pkgrm command
0
 
theOctopusAuthor Commented:
Yes. it was a Solaris specific package: httpd-2.0.55-sparc-sun-solaris2.8.tar.gz

How would I remove it?
0
 
omarfaridCommented:
this is a tar file and is not a package? can you describe installation steps?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
0
 
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...
0
 
omarfaridCommented:
/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
0
 
theOctopusAuthor Commented:
I think I will just leave it inside /etc

It should not be a problem.

Thank you for the procedure though.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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