New ISPConfig module for WHMCS

Discussion in 'Tips/Tricks/Mods' started by cwispy, Dec 11, 2014.

  1. nokia80

    nokia80 Member

    Hi cwispy,

    first have a nice days and a good new year.


    Now it work only the module make a new client and not more service in one account.




    good work nice module

    EDIT

    The module works a lot beter never the old module make the website and dns and mail on the good server this module works great. onley i need the functie more service under one account.
     
    Last edited: Dec 25, 2014
  2. AVG

    AVG Member

    Hi cwispy,

    First I would like to tell thank you for you awesome work.

    And i have a question, what i'm doing wrong, the module is creating user in ISPConfig control panel, but doesn't create web site, ftp user etc.
    i have an SOAP Error: no_server_error<br />

    I have created Server Group, Server, included server in server group.
    Also i did selected it in the module config of the product.
    But always get this error.

    I use WHMCS 5.3.5, and ISPConfig 3.0.5.4p5
     
  3. cwispy

    cwispy Active Member

    Hi AVG,

    If you turn on module debugging in whmcs you will get some error details in the module logs which should help us work out whats going on.
     
  4. AVG

    AVG Member

    Hi cwispy
    Thanks for your answer.
    DEBUG for section no_server_error<br />

    Array
    (
    [accountid] => 13
    [serviceid] => 13
    [userid] => 7
    [domain] => superpuper.eu
    [username] => superpup
    [password] => *************
    [packageid] => 1
    [pid] => 1
    [serverid] => 1
    [type] => hostingaccount
    [producttype] => hostingaccount
    [moduletype] => ispcfg3
    [configoption1] => whmcs
    [configoption2] => ***********
    [configoption3] => xhost.su:8080
    [configoption4] => on
    [configoption5] => 2
    [configoption6] => default
    [configoption7] => fast-cgi
    [configoption8] => no
    [configoption9] => on
    [configoption10] =>
    [configoption11] =>
    [configoption12] => 10024
    [configoption13] => -1
    [configoption14] => CGI
    [configoption15] => none
    [configoption16] => fast-cgi
    [configoption17] => on
    [configoption18] =>
    [configoption19] =>
    [configoption20] => ru
    [configoption21] => on
    [configoption22] => on
    [configoption23] =>
    [configoption24] =>
    [customfields] => Array
    (
    )

    [configoptions] => Array
    (
    )

    [clientsdetails] => Array
    (
    [userid] => 7
    [id] => 7
    [firstname] => Privet
    [lastname] => Dela
    [companyname] => SUPER
    => [email protected]
    [address1] => Rezeknes 11-11
    [address2] =>
    [city] => Centr
    [fullstate] => Pocti
    [state] => Pocti
    [postcode] => LV-1555
    [countrycode] => LV
    [country] => LV
    [statecode] => Pocti
    [countryname] => Latvia
    [phonecc] => 371
    [phonenumber] => 26123456
    [billingcid] => 0
    [notes] =>
    [password] => 2b4caf06534bcc7f9a1e08f10196c927:HZJZn
    [twofaenabled] =>
    [currency] => 3
    [defaultgateway] =>
    [cctype] =>
    [cclastfour] =>
    [securityqid] => 0
    [securityqans] =>
    [groupid] => 0
    [status] => Inactive
    [credit] => 0.00
    [taxexempt] =>
    [latefeeoveride] =>
    [overideduenotices] =>
    [separateinvoices] =>
    [disableautocc] =>
    [emailoptout] => 0
    [overrideautoclose] => 0
    [language] =>
    [lastlogin] => Date: 27/12/2014 13:08&lt;br&gt;IP Address: 84.245.224.99&lt;br&gt;Host: LocalHQ-SW2.Teika.livas.lv
    )

    [server] => 1
    [serverip] => 188.***.***.***
    [serverhostname] => 188.***.***.***
    [serverusername] => root
    [serverpassword] => *************
    [serveraccesshash] =>
    [serversecure] => on
    [action] => create
    )
     
  5. BenM

    BenM Member

    Hi,
    Any idea on how to make the products, login & server independent?
    Now we have to fill information per product, but i like this to be universal and set by selecting the server of choice.

    Skip: this info
    -------

    ISPConfig Remote Username.
    ISPConfig Remote Password Remote Password configured in ISPConfig.
    ISPConfig URL E.g. ispconfig.example.tld:8080
    ISPConfig SSL Tick if you enabled SSL on your ISPConfig Controlpanel Web Interface.
    ---------
    Use this info
    Benefits also the nameservers and IP adres settings.
    Server Details

    Type Ispcfg3
    Username
    Password
    Access Hash
    Secure Tick to use SSL Mode for Connections

    Select your server
    Ill like this to be automatic set in the client profile by ordering a products en services by selecting the server.
    Order
    Product/Service
    Server
    Domain
    Dedicated IP
    Username
    Password


    I hope it is clear. So I can use products and services automatically on different servers.

    Anyone have a good idea?

    Thanks
    Ben
     
    Last edited: Jan 7, 2015
  6. nokia80

    nokia80 Member

    hi Ben can you remove your link in your post it points to Members Only page. thanks
     
  7. BenM

    BenM Member

    done
     
  8. concept21

    concept21 Active Member

    Is this GNU GPL??? :p

    What kind of product can it provision now? :)
     
  9. cwispy

    cwispy Active Member

    I will have to do some tests, but it may be because the language var is empty. I dont know why its empty when you have set the lang to ru.
     
  10. cwispy

    cwispy Active Member

    Yes it is GNU GPL3 as I mentioned in the first post. :)
    Whatever you configure the template in ISPConfig to do.
     
  11. cwispy

    cwispy Active Member

    Hi Ben,

    I understand what you are asking for, however I do not know how I would be able to accomplish this at the moment. I will give it some thought and see what I can come up with.
     
  12. webguyz

    webguyz Active Member HowtoForge Supporter

    I have the same problem as AVG. Same error when trying to create a new order.

    Array
    (
    [accountid] => 491
    [serviceid] => 491
    [userid] => 325
    [domain] => whipeedip.com
    [username] => whipeedi
    [password] => 363Uecd0bO
    [packageid] => 80
    [pid] => 80
    [serverid] => 19
    [type] => hostingaccount
    [producttype] => hostingaccount
    [moduletype] => ispcfg3
    [configoption1] => ispcfg3
    [configoption2] => xxxxxxxxxx
    [configoption3] => xxxx.xxxxx.com:8080
    [configoption4] =>
    [configoption5] => 2
    [configoption6] => xxxxmaster
    [configoption7] => no,fast-cgi,mod,suphp,php-fpm
    [configoption8] => no
    [configoption9] => on
    [configoption10] =>
    [configoption11] =>
    [configoption12] => 2000
    [configoption13] => 20000
    [configoption14] => y,y,y,n,y,n
    [configoption15] => none
    [configoption16] => php-fpm
    [configoption17] => on
    [configoption18] => on
    [configoption19] => ns1.xxxmaster.com,ns2.xxxmaster.com,hostmaster,1,72.xxx.59.xx
    [configoption20] => en
    [configoption21] =>
    [configoption22] => on
    [configoption23] =>
    [configoption24] =>
    [customfields] => Array
    (
    )
    [configoptions] => Array
    (
    )
    [clientsdetails] => Array
    (
    [userid] => 325
    [id] => 325
    [firstname] => Rick
    [lastname] => xxxxxxx
    [fullname] => Rick xxxx
    [companyname] =>
    => [EMAIL][email protected]
    [address1] => test
    [address2] => test
    [city] => Chicago
    [fullstate] => Illinois
    [state] => IL
    [postcode] => 60453
    [countrycode] => US
    [country] => US
    [statecode] => IL
    [countryname] => United States
    [phonecc] => 1
    [phonenumber] => 123413
    [phonenumberformatted] => +1.123413
    [billingcid] => 0
    [notes] =>
    [password] => UBNYUJ5fsIMQUHBPDJckit6R9o0mgOhcfUvW9g==
    [twofaenabled] =>
    [currency] => 1
    [defaultgateway] =>
    [cctype] =>
    [cclastfour] =>
    [securityqid] => 0
    [securityqans] =>
    [groupid] => 0
    [status] => Active
    [credit] => 0.00
    [taxexempt] =>
    [latefeeoveride] =>
    [overideduenotices] =>
    [separateinvoices] =>
    [disableautocc] =>
    [emailoptout] => 0
    [overrideautoclose] => 0
    [language] =>
    [lastlogin] => Date: 01/11/2015 09:58<br>IP Address: 76.xx.53.xxx<br>Host: cpe-76-xxx-53-xx.il.res.rr.com
    )
    [server] => 1
    [serverip] => 72.xxx.59.xxxx
    [serverhostname] => xxxx.xxxxxx.com
    [serverusername] => root
    [serverpassword] => xxxxxxx
    [serveraccesshash] =>
    [serversecure] =>
    [action] => create
    )
     
  13. cwispy

    cwispy Active Member

    I have just committed a new version of the module to github. Can you guys try the new version and see if it fixes your issues? I was unable to actually reproduce it here, but I did notice that the version on github was out of sync with the version I was working on, so hopefully the changes make it work for you now.
     
  14. AVG

    AVG Member

    I'm sorry cwispy, but i was tested a new version of your module from github, but get the same error.
    Here DEBUG from whmcs

    Array
    (
    [accountid] => 13
    [serviceid] => 13
    [userid] => 7
    [domain] => superpuper.eu
    [username] => superpup
    [password] => *********
    [packageid] => 1
    [pid] => 1
    [serverid] => 1
    [type] => hostingaccount
    [producttype] => hostingaccount
    [moduletype] => ispcfg3
    [configoption1] => whmcs
    [configoption2] => ********
    [configoption3] => *******:8080
    [configoption4] => on
    [configoption5] => 2
    [configoption6] => default
    [configoption7] => fast-cgi
    [configoption8] => no
    [configoption9] => on
    [configoption10] =>
    [configoption11] =>
    [configoption12] => 10024
    [configoption13] => -1
    [configoption14] => CGI
    [configoption15] => none
    [configoption16] => fast-cgi
    [configoption17] => on
    [configoption18] =>
    [configoption19] =>
    [configoption20] => en
    [configoption21] => on
    [configoption22] => on
    [configoption23] =>
    [configoption24] =>
    [customfields] => Array
    (
    )

    [configoptions] => Array
    (
    )

    [clientsdetails] => Array
    (
    [userid] => 7
    [id] => 7
    [firstname] => Privet
    [lastname] => Dela
    [companyname] => SUPER
    => dancebeatfm@****.lv
    [address1] => Rezeknes 11-11
    [address2] =>
    [city] => Centr
    [fullstate] => Pocti
    [state] => Pocti
    [postcode] => LV-1555
    [countrycode] => LV
    [country] => LV
    [statecode] => Pocti
    [countryname] => Latvia
    [phonecc] => 371
    [phonenumber] => 26123456
    [billingcid] => 0
    [notes] =>
    [password] => 2b4caf06534bcc7f9a1e08f10196c927:HZJZn
    [twofaenabled] =>
    [currency] => 3
    [defaultgateway] =>
    [cctype] =>
    [cclastfour] =>
    [securityqid] => 0
    [securityqans] =>
    [groupid] => 0
    [status] => Inactive
    [credit] => 0.00
    [taxexempt] =>
    [latefeeoveride] =>
    [overideduenotices] =>
    [separateinvoices] =>
    [disableautocc] =>
    [emailoptout] => 0
    [overrideautoclose] => 0
    [language] =>
    [lastlogin] => Date: 27/12/2014 13:08&lt;br&gt;IP Address: 84.245.224.99&lt;br&gt;Host: LocalHQ-SW2.Teika.livas.lv
    )

    [server] => 1
    [serverip] => 188.***.***.***
    [serverhostname] => 188.***.***.***
    [serverusername] => whmcs
    [serverpassword] => ********
    [serveraccesshash] =>
    [serversecure] =>
    [action] => create
    )
     
  15. AVG

    AVG Member

    May be the problem exists because i use a multiserver setup of ispconfig3 ?
     
  16. webguyz

    webguyz Active Member HowtoForge Supporter

    cwispy,
    Good question by AVG. I have multiserver setup but only have the master listed in server group. Does this module work with multiserver?
     
  17. cwispy

    cwispy Active Member

    If you have a multi server setup, you should have all the servers that are associated with the product listed in the server group. I am running a 4 server multi server setup here. 1 x Web/Db, 1 x Mail and 2 x DNS. So I have all 4 of them listed in the server group.

    Basically if the server is listed in the ISPConfig template that the product is referencing, then the server name also needs to be listed in the WHMCS server group.
     
    AVG likes this.
  18. AVG

    AVG Member

    Thank you cwispy, the problem was that I did not add another server of ispconfig in whmcs, but only the master server. Now everything works.
    Thanks again for your work.
     
  19. cwispy

    cwispy Active Member

    Thanks great news AVG!! So glad you have now got it working. Hopefully its the same problem on webguyz setup. :)
     
  20. AVG

    AVG Member

    cwispy could you test please ftp login by ftp user which is created by whmcs in ispconfig.
    in my situation ftp user in ispconfig is created, but i cant login, as if wrong password.
    Then i was changed password from ispconfig for user which one was created by whmcs all the same cant login.
    But when i create a ftp user directly from ispconfig, everything is fine, i can login with no problem.
    Sorry for my bad english.
     

Share This Page