I agree with the last few posts for sure. Get a teacher if you can afford it, don't skimp out. You will make much faster progress. Also, practicing to a metronome is a must. I was a classical guitar major in school and I had a very strict schedule -- despite having to practice for 3-4 hours a day (sometimes 6-8 when preparing for juries and recitals). Here are just SOME things that I used to include in my schedule...
10 minutes - warmup exercises
30 minutes - work on chords (fingerings, changes, inversions, theory, etc. Also work on fluidity of chordal changes with metronome)
30 minutes - technical exercises (scales, leads, rhythm exercises to metronome)
30 minute BREAK (don't overdo it, if your hands start hurting at ANY TIME, IMMEDIATELY STOP PLAYING AND GO REST! Stretch your hands, drink some water, hydrate yourself, and just give yourself a break)
20 minutes - Song #1 (usually a concert piece I was working on, or could just be a song you're trying to learn for fun.
Break it down by EACH MEASURE. Perfect it, get it up to speed with a metronome, and then move on to the next measure. Once you've perfected the 2nd measure, then go back and play the two you just learned back to back, and so on and so forth with the other measures. Some guitarists play sloppy because they've never perfected a song. It's good to take a piece section by section, delve into it, understand it, and know how to play it perfectly. Doing this will help you get better at gaining speed faster, developing precision, and also helping keep you from getting frustrated.... instead of looking at an entire song and thinking "holy crap this is going to take me forever to learn!", getting frustrated and giving up on it to learn something else, this will help you focus on just taking it one step at a time. Baby steps.
Song #2 - 30 minutes, Song #3 - 30 minutes, Improvising over X chord changes - 30 minute, Etc etc
Obviously that was just a part of my schedule, and it's going to differ on everyone else. As a beginner, I would only recommend like 30-60 minutes per day until your hands, muscles and tendons get used to the idea of playing guitar. So working out a schedule for you that makes sense for you is going to be key. It's different for everyone as we all have different learning styles, and some learn quicker than others, some have muscle memory that others don't, etc.
But seriously do stop if you feel pain with any practice routine. Take a break and then come back to it.
Good luck man!