I have something similar on my installation (gentoo). I found a quick and dirty trick for the moment : i gave the apache user a valid shell, then when i want to start or stop zm from console, i do a su - apache. I can then "zmpkg.pl whatever'. Hope this help, waiting for better answer :) Try ...