I had the same problem, I think the post-install scripts on Debian haven't been tested for all conditions. I manually created the DB, assigned permissions and set the zm.conf file correctly. Now the system works fine, but I still have the shared memory errors. Why oh why did I move from locally ...