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
1. Get root access.
2. Type: apt-get install apache
3. It will probably install extra packages such as: apache-common. Press [Y]
4. 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].
5. 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
1. First thing you should know is that the Debian package[*.deb] of Apache saves its configuration file to /etc/apache/httpd.conf .
2. 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.)
3. 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.).
4. 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.
5. Now that where good to go restart the server by typing as root.
/etc/init.d/apache restart
6. Thats all! Have fun!
I'll write more articles when I have time on installing / configuring "cgi-bin" and php.
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
1. Get root access.
2. Type: apt-get install apache
3. It will probably install extra packages such as: apache-common. Press [Y]
4. 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].
5. 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
1. First thing you should know is that the Debian package[*.deb] of Apache saves its configuration file to /etc/apache/httpd.conf .
2. 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.)
3. 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.).
4. 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.
5. Now that where good to go restart the server by typing as root.
/etc/init.d/apache restart
6. Thats all! Have fun!
I'll write more articles when I have time on installing / configuring "cgi-bin" and php.
