Help File Library: Debian: Installing and Configuring Apache
By Cristhian Kim
Posted: August 18, 2002
In this Help File I'll discuss on setting up a simple Apache Webserver install. By the
end of this tutorial you'll be able to serve plain HTML pages. I'm assuming that
you already have a base Debian installation installed.
Installing
- Get root access.
- Type:
apt-get install apache
- It will probably install extra packages such as: apache-common. Press [Y]
- After it finishes installing it will run apacheconfig it will say
Finding
DSO mods....... and so on. Just wait and say [Yes] when Save these changes to
to the configuration files? [Y/n].
- You'll see a whole bunch of messages. You might get a few error messages such
as:
[Sun Aug 18 14:00:05 2002] [alert] apache: Could not determine the server's
fully qualified domain name, using 127.0.0.1 for ServerName Don't worry I'll
discuss how to fix this on the next section.
Configuartion
- First thing you should know is that the Debian package[*.deb] of Apache saves
its configuration file to /etc/apache/httpd.conf .
- So to edit it, type:
vi /etc/apache/httpd.conf (I'm assuming you know how
to use the vi editor. You can also use emacs, which there is a Help File for. Note: You
have to be root.)
- Now look for ServerName. You should come across
#ServerName new.host.name. Just get rid of the # sign. (In configuration files "#" makes it ignore things
after it.).
- Also change
new.host.name to what you would like. In my case I use
www.ragex.org.
Also, as side note, DocumentRoot is set to /var/www. That means that things in
the /var/www folder will show up on your website. So /var/www/index.html is your
your main page of your webserver.
- Now that where good to go restart the server by typing as root.
/etc/init.d/apache restart
- Thats all! Have fun!
I'll write more articles when I have time on installing / configuring "cgi-bin"
and php.
|
|


|