Monday, July 4, 2011

Apache : Compiling and installing

STEP 1:Download $ lynx http://httpd.apache.org/download.cgi

STEP 2:Extract $ gzip -d httpd-NN.tar.gz //Where NN must be replaced with the version number
$ tar xvf httpd-NN.tar
$ cd httpd-NN
STEP 3:Configure $ ./configure --prefix=PREFIX //Where PREFIX has to replaced with the installation directory

STEP 4:Compile
$ make

STEP 5:Install
$ make install
STEP 6:Customize
$ vi PREFIX/conf/httpd.conf
STEP 7:Test
$ PREFIX/bin/apachectl -k start

Mount an external NTFS usb Drive

STEP 1:Plug in your USB drive and got to the TERMINAL and type in "dmesg",you can see some similar output as pasted below,

"SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB) sda: assuming drive cache: write through sda: sda1 Attached scsi disk sda at scsi2, channel 0, id 0, lun 0 USB Mass Storage device found at 2"
Note the line where it says "sda:sda1".It states that its a sda disk pinting to sda1

STEP 2:Now its pretty straight forward,

mount -t ntfs /dev/sda1 /some/folder