Saturday, November 7, 2009

Installing Apache 2.2.14 in Ubuntu

1.) Open the terminal window and log as root
        sudo su
    Then give root password and enter

2.) Next we have to update the package index. ( https://help.ubuntu.com/8.04/serverguide/C/apt-get.html ) The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:
    apt-get update

3.) Now you have to check whether you have installed gcc and make packages already in Ubuntu. ( http://ubuntuforums.org/showthread.php?t=261366 ) To check that run the following command
    dpkg --get-selections > installed-software

From above command they will create a list of what you have installed already in youe OS. After running that command you are not visible any changes in your terminal. Because that just create a file in your current position. So you have to run the bellow command to find where you are now.
    pwd
Next run the bellow command to open that file
    gedit /the_path_given_by_above_command/install-software
From that list you can check whether you have installe gcc and make packages already.

4.) If you are not installed gcc this is the command. We do this to get development tools. The importace of gcc ( http://en.wikipedia.org/wiki/GNU_Compiler_Collection ) is to compile various programs under GNU project.
    apt-get install gcc

5.) Then you have to install make package too. Why we install "make" ( http://en.wikipedia.org/wiki/Make_(software) ) , because make is a utility for automatically building executable programs and libraries from source code.
    apt-get install make

6.) Now you have to download the Apache source file. To do that visit this site ( http://httpd.apache.org/download.cgi ) and download the relavant stable version.

7.) This step is an extra thing that most of people don't follow but Apache developers thougherally ask to follow. That is verify that you have download the real source file. This can be check by using public key encryption process.
    If you are trying to check PGP method you have to install pgpgpg package first.
    apt-get install pgpgpg

8.) Next thing we have to do is extract the downloaded source directory. To do that go to the downloaded directory by using
    cd /path_to_the_directory_where_you_save_the_source/
command and then give bellow command
    tar zxvf file_name
In here z stands for "filter the archive through gzip", x stands for "extract files from an archive" v stands for "verbosely list files processed" and f stands for "use archive file"

9.) Then you have to go into extracted directory and configure. The next step is to configure the Apache source tree for your particular platform and personal requirements. To configure, give this command
    ./configure --prefix=/user/local/apache2.2.14

10.) Now you can build the various parts which form the Apache package by simply running the command
    make
The time taken to process depend on your computer power as well as the modules that you have choosed to configure above command.

11.) Now it's time to install the package under the configured installation /user/local/apache2.2.14 The command is
    make install
After running this command some directories and files will create on that given path.

12.) Now the basics are over. Now you can customize it. To do that go into /user/local/apache2.2.14./conf/ directory and open httpd.conf file and customize.

13.) Now you can start your Apache HTTP server by immediately running
    /usr/local/apache2.2.14/bin/apachectl start
Then open a web browser and type http://127.0.1.1 in the browser address bar.
You can stop apache server by running following command
    /usr/local/apache2.2.14/bin/apachectl stop


                    *** That's it.***

*** Further Editing in httpd.conf file will be later ***

            THANK YOU...


Saturday, October 3, 2009

Primary stages of networking

If you want to connect your laptop to a desktop ...

The very first thing is you have to get a network cable. There you have mainly three options. They are Cat 5, Cat 5E, Cat 6. I recommend Cat 5E. The difference between Cat 5 and Cat 5E cables will give you a chance to choose Cat 5E. The unit prize of Cat 5E and Cat 6 will again give you a hint to choose Cat 5E. Always think about your target and try to achieve it in simple, efficient and effective way.
There are again several categories of Cat 5E cable. I used Cat 5E UTP cable. Next get two rj 45 connectors. Then fix the Cat 5E cable to those connectors by using a crimping tool. When you connect the cable keep in mind that you want to prepare cross cable not straight cable. Because you are going to connect two mac devices together. So you have to undergo some color conventions. That means those 8 wires within the Cat 5E cable should connect in two different patterens. You have to use T-568A and T-568B combination.

That's it. Now you have to connect the cable to the computers.

Saturday, September 26, 2009

Love to Ubuntu

How to give permission to access a folder to a normal user...

First of all you have to create a root login. To do that, go to terminal and type sudo su then it will ask a password. Give the password when you gave as root password while you install Ubuntu. Now you are logged as root. You can see that where the symbol $ has changed to # in terminal. Now type passwd and type a password new password. Than will be your root password when you log as root. The user name is "root". Then restart your computer and log as root by giving "root" as username and the password that you have given above.

Now begins the real stuff where you trying to provide permission for a folder access to another user. First of all open the terminal and go to the place where you want to give the permission by using cd command. Then create a directory by using mkdir command. Then type "chown -R username:group foldername" and press enter. You can find group name by using ls -l Then again run ls -l command and you can see that the username and the group of that folder has changed to root to the relavant user.

Sometimes you will think why I wrote this and to at what time we need this kind of thing. Yes, I'll tell where I needed this thing. I'm using LAMP and Macromediad Dreamwever(through wine) in Ubuntu. So I needed to save my web pages in the /var/www folder. But you will not be able to do that in GUI mode if you are not log as root. By doing this I was able to over come that problem. Most of the websites are hosted in Linux servers. So why don't you try to implement your web site in a Linux environment. Try it now.

Wednesday, September 23, 2009

ICT 3003 - Software Quality Assurance

All the stuff in first tutorial is here

http://www.softwareqatest.com/qatfaq1.html#FAQ1_1

Friday, September 18, 2009


This is my very first blog creating attempt:)