We will need to read those references if we want to go further.
Webcam streaming with Raspberry Pi
and
How To : Stream A Webcam From The Raspberry Pi
How To : Stream A Webcam From The Raspberry Pi Part 2
and the easiest way:
How To: Raspberry PI Web Cam Server
get some key words from the article above:
just read ,
http://pingbin.com/2012/12/raspberry-pi-web-cam-server-motion/
and notice /etc/motion/motion.conf ( there are tons of precise comments to guide users to set motion well )
and /etc/default/motion (to enable the motion as daemon)
You are way to go, have fun!