Saturday, August 20, 2011

how to install and running apache server by compiling the source


first you have to download apache 2.2
go to http://httpd.apache.org/download.cgi and download Unix Source: httpd-2.2.15.tar.bz2

then go to http://httpd.apache.org/docs/2.0/install.html and read the instructions carefully seriously please read it

PREFIX=path you installs the server

you can ignore Customize$ vi PREFIX/conf/httpd.conf part instead you can open the PREFIX/conf/httpd.conf file using the text editor and edit ServerName part which is by default a comment with "localhost". if you are told to change the port find "Listen" and change the value next to it to port number by the way default port number is 80
save and quit

after doing all this to test your server type "sh PREFIX/bin/apachectl start"
then open a browser and type localhost:

then if you did the config properly it will show "it works!"
if you are told to deploy files(put files to the server) copy them to htdocs folder assume that you put a hello.html file into it then to open it in the browser you have to type localhost:/hello.html

sample for hello.html
==============



type this in a txt editor and save it as hello.html if you wont to try it

enjoy!!!!!
:)

How to edit grub in ubuntu 9.10

1) go to /boot/grub and search for grub.cfg
2) open the file, edit it as you want and save it in desktop or somewhere else.
3) give "sudo cp /home/(ur file directory)/grub.cfg /boot/grub"
command in terminal to replace original file with the edited one.
done :D
don't try this if ur a n00b to linux/ubuntu :P ur system might crash!