Apache: Difference between revisions

From XPUB & Lens-Based wiki
Line 11: Line 11:
== Modules ==
== Modules ==


Current installs of apache break up different common configuration options into "modules" (actually just lots of little text files containing the necessary commands / parameters). You can use the commands: ''a2enmod'' and ''a2dismod'' to ''enable'' and ''disable'' a particular module, for instance to activate having a public_html folder in your home, simply switch on the "userdir" option with:
Current installs of apache break up different common configuration options into "modules" (actually just lots of little text files containing the necessary commands / parameters). You can use the commands: ''a2enmod'' and ''a2dismod'' to ''enable'' and ''disable'' a particular module.
 
=== userdir ===
 
For instance to activate having a public_html folder in your home, simply switch on the "userdir" option with:


<source lang="bash">
<source lang="bash">
sudo a2enmod userdir
sudo a2enmod userdir
</source>
</source>
== Reloading changes ==


Apache reads the configuration files when it starts up (and then not again unless "forced" to in some way). So if you make changes, you can restart the server to make sure they get loaded again:
Apache reads the configuration files when it starts up (and then not again unless "forced" to in some way). So if you make changes, you can restart the server to make sure they get loaded again:

Revision as of 18:46, 12 July 2009

Possibly the most used open source software in the world, Apache is a web (HTTP) server. Since the creation of the web server, the Apache Software Foundation now hosts many open source projects along with the original web server.

The Apache Software Foundation website

Installing

Apache is available (if not preinstalled) on all Linux Distributions, Windows, and Mac OS X (where it's called "Web Sharing").

Gentoo

Modules

Current installs of apache break up different common configuration options into "modules" (actually just lots of little text files containing the necessary commands / parameters). You can use the commands: a2enmod and a2dismod to enable and disable a particular module.

userdir

For instance to activate having a public_html folder in your home, simply switch on the "userdir" option with:

sudo a2enmod userdir

Reloading changes

Apache reads the configuration files when it starts up (and then not again unless "forced" to in some way). So if you make changes, you can restart the server to make sure they get loaded again:

/etc/init.d/apache2 restart