Add user from command line

Discussion in 'Installation/Configuration' started by the_saint, Aug 4, 2008.

  1. the_saint

    the_saint New Member

    Is there any script to add user in ISPConfig from command line? I need a script to insert large number of user into the ISPconfig database. Remote framework will not work for me.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The remoting framework is the only way to do this. Why does it not work for you, it can be used from commandline scripts as well.
     
  3. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    saint,
    try taking the test.php script provided on ispconfig.org and rewriting it for multiple users ad. the remote framework can handle what your looking for. If you need a hand let me know.
     
  4. the_saint

    the_saint New Member

    Thanks for your reply.
    I have installed the remote framkework and created one user, when I call the test.php it shows "script ends" .
    I using ISPconfig version 2.2.16 and I have compile it with xml
     
  5. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    did it give you a # when it printed script-end?
     
  6. the_saint

    the_saint New Member

    it does not show any #
     
  7. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    then im assuming the new user did not appear in the control panel, and it did not actually work for you.
    1. after installing the remote framework did you put in the username and password in the remote framework and check off the appropriate boxes?
    2. do you have the correct username and password in the test script?
     
  8. the_saint

    the_saint New Member

    i have created the user and password and enable all the checkbox. But I leave the IP field blank. I also put the same user/pass in the test.php
     
  9. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    ok uncomment out the relevant portion of the test.php and see if it creates a user.
     

Share This Page