Thursday, May 21, 2009

Installing Apache Server in Debian 5.0 - Lenny

I need to install web server for intranet server. I have a Debian 5.0 box. Therefore it is natural to have apache server installed the newest
  • I logged in as su (Super User). BTW you need to have gcc library installed properly. It means you have to have complete library.
  • I downloaded httpd-2.2.11.tar.bz2.I moved downloaded file into /opt by typing this command : mv httpd-2.2.11.tar.bz2 /opt/. Now the file was moved to /opt.
  • I went to /opt by typing cd /opt.
  • I extract httpd-2.2.11.tar.bz2 with this command : tar xjv httpd-2.2.11.tar.bz2. Directory httpd-2.2.11 was created
  • I went in to that directory : cd /opt/httpd-2.2.11
  • Then I read INSTALL file. It says that I should use this script
$ ./configure --prefix=PREFIX
$ make
$ make install
$ PREFIX/bin/apachectl start

  • Since I wanted Apache lives inside "/usr/local/apache2" so I changed the script. The script then looked like this :
$ ./configure --prefix=/usr/local/apache2
$ make
$ make install

  • The first command that I typed was "./configure --prefix=/usr/local/apache2"
  • Next I invoke "make" to build various executables. It was about 10 minutes compilation time in my 512 MB PC.
  • Next I invoke "make install" to install the executables. Running time was about 3 minutes.
  • To start apache server I invoked "/etc/init.d/apache start"
  • I tested the installation by using firefox browser. I typed in address bar : 127.0.0.1. Then I saw the result.
  • I congratulate my self by eating salad and chicken.

Installing FIrefox 3 in Debian 5.0 - Lenny

I needed to have a browser which is familiar with me Firefox. My default Debian 5.0 Installation does not have this browser. So I downloaded from mozilla.com
  • In my computer firefox-3.0.10.tar.bz2 was downloaded into /temp. I directly downloaded it from mozilla.com
  • I moved it into /opt (Since I fell comfortable with installing new software in that directory)
  • I submitted a command like this : tar xjf firefox-3.0.10.tar.bz2. This command created a new directory : firefox
  • Then I went to /usr/bin by typing : cd /usr/bin
  • I created a softlink to /opt/firefox/firefox by typing : ln -s /opt/firefox/firefox. This action created a softlink file named firefox which linked to /opt/firefox/firefox
  • I created a menu Item Inside the Internet sub menu in my Debian 5.0

Now after installing firefox 3.0 I needed installing flash plugin.
  • I moved the downloaded file into /opt by issuing : mv install_flash_player_10_linux.tar.gz /opt/
  • I extracted the file by issuing command : tar xzf install_flash_player_10_linux.tar.gz. It created a new directory : install_flash_player_10_linux
  • I went to the directory : install_flash_player_10_linux
  • Then I issued a command inside the directory : ./flashplayer-installer
  • I was asked where is my browser installed. I answer with this : /opt/firefox. Because it is where my browser installed.
  • Then I was asked to proceed with the Installation and I said Y.
  • I tested my installation by invoking firefox : IT WAS ALIVE AND KICKING.