Hello,
I would like to create a set of email users under a VirtualMin environment. I have programmed a PHP script that handles the registration, but I would need to create email users as well. I considered the Virtualmin API the easiest way, but I am having some problems.
I call from PHP
system(’/usr/sbin/virtualmin create-user --domain domain.com --user user --pass pass --quota 1048576 --real “John Smith”’);
but at first I was getting: /usr/sbin/virtualmin must be run as root
I have commented out the lines that check for user-root at the virtualmin script, but now I get:
Command create-user was not found
I would appreciate some help on this matter. Is it a permissions error still? Is there any easy way to this problem?