for example one of my side projects is a webapp I have been building since september 2009, at which time I worked on it very intensely. Then I left it for a good few months, to only pick it up again when I was reminded that the problem it would solve was still a very real one - this spurred me on to work on it for another three months or so. I haven't picked it up again in the last two months.
I think I need real people around me to make the problem appear much more real, and keep me motivated. I think that is my rationale for this approach.
Unfortunately, both of these are hard to come by when working on a PhD. They are actually the two areas that I struggle with most in my PhD research. Getting a PhD is very isolating -- you are often the only one working on your problem, and it often seems like no one else cares. Also, I enjoy more real-world, applicable problems, yet most of what PhD students work on is theoretical or not market-ready by far.
I have a friend who has a PhD, and I regularly joke with him about being the "world's leading expert in something 10 people in the entire world give a shit about." Unfortunately, the joke is only funny because it's literally true.
I've worked from home on my own projects off and on for nearly 20 years and still have some of the problems you describe. Go and do a project on a customer site and they cannot believe how efficient I am. Started a (failed) project with someone, the pressure of having someone else relying on me was great (not that it is the reason it failed, but he didn't quite feel the same way).
Do something at home and hey I'm replying to this on HN :-)
Find someone to team up with and do what you really want to do, don't try and distract yourself with something else you may never finish.
What about users/customers? Perfectionism aside, how about launching a version 0.1 of your webapp?
A lot of it will also depend on your advisor. A more hands-off advisor will certainly mean trouble for you, as the required pressure to keep you focused will not be there. Finally, conference deadlines are the other big motivator for PhD students. If you don't think that would help focus you, then you'll be setting yourself up for failure (and possibly depression).
Also, I'm not sure how feasible it is to do a "part-time" PhD. That might work with a master's where it's almost exactly like bachelor's part 2, but a PhD is more of an all-or-nothing endeavor. The one exception I know of is for people starting/spinning-off companies based on their research. Even there, it's a lot of work, and I personally find it very hard to maintain good forward progress in both at the same time.