Monday, October 11, 2010

How to find the location where Apache Server is installed on your Linux machine

Ahh!! I had a hard time finding where exactly is my apache server was installed. I installed the server a week back and then forgot. find command was taking ages to find it for me, but fortunately i stumbled on an interesting way of doing it. Following are the steps that I followed:
1. Go to the directory where you have unpacked httpd-2.2.16.tar.gz. For me the directory name was apache_server.
2. In apache_server look for a file name "configure" . Then open it using your favorite editor. Eg: vi configure
3. In this file look for a value for "ac_default_prefix" variable. It should look something like ac_default_prefix=/usr/local
4. Thus /usr/local is where your Apache Server is installed.

Note: If you have installed it using a prefix command, then you do echo $PREFIX. I think it should work for you.

No comments:

Post a Comment