Thursday, August 5, 2010

Debian: Installing and Configuring Apache

1 comments
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

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.

Sunday, January 10, 2010

CentOS Tzdata Fix Released for ngladesh's Daylight Saving Time (DST) 2010

0 comments
Bangladesh's Daylight Saving Time (DST) Ended and Clocks Across the Country Move Back by One Hour.

However I have posted a BUG report to CentOS development team and CentOS has released a fix for tzdata package. For more information please visit :

http://bugs.centos.org/view.php?id=4112


All CentOS users, who are using NTP for Time Synchronization with other countries of world via any means and auto update of security fixes are requested to update there tzdata package on Machine running CentOS by running command:

#yum -y update tzdata

After updating tzdata package, you will automatically synchronized with world time.

Happy Linuxing

Ahamed Bauani
Freelance ICT Consultant &
Complex Internet Networking Expert


Related Post:

Bangladesh's Daylight Saving Time (DST) Ended and Clocks Across the Country Move Back by One Hour


Cross Posted on Bauani's Technology Blog

Other Blog Posts by Maintainer

ICT News of Bangladesh

Linux Lews - Power by Google