If you want to create your own blogging environment on a local web server, then you should look into installing WAMP (Windows) / MAMP (Mac OS X). Rather than writing a local blogging site for yourself from scratch, you probably want to look into some pre-written PHP scripts for this.
Or probably just go with jaydeee's comment and try WordPress blog locally.. yeah. Do that. Sounds very simple.