Following up on Akhil's plan, a good source of projective modules which are not free is via nontrivial vector bundles: smooth sections of the bundle form a projective module over the ring R of smooth functions, but a non-free module if the bundle is nontrivial. 

So, you could do something simple like this: apply the exterior algebra construction to the cotangent bundle over S^2; this gives a nonfree projective R-module N of the sort Akhil referred to. Then the normal bundle to N gives a nonfree projective P, and if 1 denotes the trivial line bundle, the direct sum 1 + P gives a commutative R-algebra M in a mindless way by defining all products of sections of P to be zero. The product M x N is then free, but the center M is not.