Solved

Apache httpd on linux --- "make install" installs apache under /usr/local/apache2. where can we modify the default installation path?

Posted on 2011-03-03
6
554 Views
Last Modified: 2012-05-11
Hello everybody, I am new to Apache. I was tryinng to install apache on Linux, when i faced a challenge. I tried "make install" and it was trying to install apache under /usr/local/apache2. But i want to change this default installation path. I want to install some where else. Where can I change it. Please help me!!!!
0
Comment
Question by:Raz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
Adjroth earned 500 total points
ID: 35024991
You'll need to configure it using "./configure" first.

Example:
./configure --prefix=/path/to/apache
make install

Here are two links to help you out:
http://httpd.apache.org/docs/2.0/install.html
http://httpd.apache.org/docs/2.0/programs/configure.html#installationdirectories
0
 
LVL 35

Expert Comment

by:torimar
ID: 35024998
In order to install a program to another than its default directory you would have to modify the 'make' file that comes with it.
The section that deals with the installation target will be marked by the variable "$(NORMAL_INSTALL)". Underneath, you will most likely find another variable called "$(DESTDIR)" or similar the definition of which will have to be altered in order to change the destination folder.

But this is not recommended at all.
In a program/service as complex as Apache there is no end to things that could or will go wrong if you meddle with the make-file - unless you really know what you are doing.

It is not even recommended to install Apache manually. Install it via your system's package manager (apt-get, aptitude, yum, pacman, zypper, yast etc.): this will make sure you install the version from your distros repository, which will be maintained and updated automatically when you update your system.
For security reasons, in a web application as critical as Apache, it is most important to make sure it is always up-to-date and all security fixes are applied immediately.
0
 

Author Comment

by:Raz
ID: 35025453
I have untarred httpd-2.2.17.tar. Executed following commands under httpd-2.2.17
./configure
make
make install (here is my problem)

Where do I find the make file?

I see below three files under httpd-2.2.17

Makefile
Makefile.in
Makefile.win

But there are no entries -  $(NORMAL_INSTALL) , $(DESTDIR)

Here are the contents of my httpd-2.2.17 directory.

$ pwd
/apps/elsdev/httpd-2.2.17
$ ls
ABOUT_APACHE  BuildAll.dsp  CHANGES        config.status  emacs-style  include         libhttpd.dsp  Makefile.win  modules.o      README            server   VERSIONING
acinclude.m4  BuildBin.dsp  config.layout  configure      httpd        INSTALL         LICENSE       modules       NOTICE         README.platforms  srclib
Apache.dsw    buildconf     config.log     configure.in   httpd.dsp    InstallBin.dsp  Makefile      modules.c     NWGNUmakefile  README-win32.txt  support
build         buildmark.o   config.nice    docs           httpd.spec   LAYOUT          Makefile.in   modules.lo    os             ROADMAP           test
0
Independent Software Vendors: 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!

 
LVL 35

Expert Comment

by:torimar
ID: 35025496
Did you try the solution suggested by Adjroth?

Since Apache seems to have the install dir as a configure option, that appears to be the easiest and most normal way to go.
Check the second link posted by Adjroth.
0
 

Author Comment

by:Raz
ID: 35025704
Sorry, I overlooked the links provided by Adjroth. They solved my problem. Thanks a lot Adjroth!!!!!

Thank you too torimar.
0
 

Author Closing Comment

by:Raz
ID: 35025916
Great!!! thank you
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I change the default encoding to utf8MB4 for PHP server running Cpanel 5 137
PHP Register global 21 106
BASH script to modify crontab? 3 95
AWS EC2 & RDS Instance 5 64
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question