
| Your Daily Source for Apache News and Information |
|
| Breaking News | Preferences | Contribute | Triggers | Link Us | Search | About |
\n'); } if ( plugin ) { document.write(' '); } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){ document.write('
|
In this week's article, I'll take you through installing an Apache server. I'm assuming you've never done this before, but that you know a few things about your operating system. If you're beyond this stage, come back in a few weeks, as we'll move on to more advanced things from here. Acquiring ApacheApache is free software. That is, it is Open Source, and can be downloaded, and redistributed, without any cost. You can read the full text of the Apache license (it's very short) on the Apache web site at http://www.apache.org/LICENSE.txt. But basically what it says is that you are free to use the product, as well as to redistribute it, without charge. You can download Apache from the Apache Server web site, at http://www.apache.org/httpd.html There you'll find the Apache source code, as well as binary (precompiled) distributions for a large number of platforms. Build it yourselfUnless there is some overwhelming reason not to do so, you really should get the source code and compile it yourself. There are a number of reasons for this.
By building yourself from the source code, you'll make sure you have the Apache server that is right for you, rather than something that someone else thought might be best for you. Quick form (guide for the impatient)If you look at the file 1. Overview for the impatient
--------------------------
$ ./configure --prefix=PREFIX
$ make
$ make install
$ PREFIX/bin/apachectl start
NOTE: PREFIX is not the string "PREFIX". Instead use the Unix
filesystem path under which Apache should be installed. For
instance use "/usr/local/apache" for PREFIX above.
You'll find that the Apache documentation is very complete, and very helpful, if you know where to look. Following the above instructions will give you a usable installation of Apache to get you started, and this is probably the way that you want to install it the first time. For example, if you wanted to install Apache in ./configure --prefix=/home/httpd
make
make install
/home/httpd/bin/apachectl start
Longer form - using configureThe command above - As you saw in the above example, you can pass certain parameters to Enabling DSO supportOne To build Apache with DSO support, and make most of the available Apache modules ready to use, type the following command: ./configure --prefix=/path/to/apache \
--enable-module=most \
--enable-shared=max
(Note: You can type that all on one line. The \ indicates that the command line is continued on the next line. This syntax is supported on most Unix operating systems.) In this case ``most'' means all of the modules that are shipped with Apache, leaving out those that are considered experimental, or which don't run on all platforms. You will then need to enable, or disable, various module, by uncommenting, or commenting out, mod_perl, mod_php, and other stuff
Really long form - using ConfigureUsing
After running ``little-c'' To configure your installation with make, make installWhichever way you configure the installation, you will then need to compile the code by typing Starting your new serverOne of the things that will be built is a handy utility called /usr/local/apache/bin/apachectl start (This assumes that you installed Apache in In future articlesIn upcoming articles, I'll discuss in more detail what you can do with And, in a future article, I'll talk about |
|
||||||||||||||||||||||||||||||||||||||||
|

| About Triggers | Media Kit | Security | Triggers | Login |
|
All times are recorded in UTC. Linux is a trademark of Linus Torvalds. Powered by Linux 2.4, Apache 1.3, and PHP 4 Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy. |