New ISPConfig module for WHMCS

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

  1. cwispy

    cwispy Active Member

    Hi Octa,
    I can not replicate your issue. Have you assigned servers to the limit template in ispconfig?
     
  2. DaniU

    DaniU New Member

    Thanks.
    I think I found where the problem lies. Its the current version 57 of FF, which is causing the problem. I tried the dev Version 58 of FF and the ESR Version, there everything works fine just like in Chrome. I have tried Opera as well, but this browser is based on Chrome, so I expected it to work, which was the case then. Maybe they have changed something with the big quantom FF update. I hope the release of Version 58 makes it working again.
    But I found another issue, which is happening in every browser:
    If I click on the SSO Button in the WHMCS Clientarea for the first time its just loading the login page of ispconfig, but the credential fields are empty and the user is not getting logged in. If I make an reload of the page everything works as espected and the user is logged in. If I close the ISPCfg Page and click again on the SSO Button everything working fine. So this just happens, when I use the SSO Button for the first time. I presume this has something to do with the Session Cookies. Can you confirm this issue?
     
  3. cwispy

    cwispy Active Member

    Good work in coming up with those findings. I have seen the same issue with the login issue. I will need to check, but I am pretty sure that by clicking the logout button I was able to click the SSO button again and get automatically logged in.
     
  4. DaniU

    DaniU New Member

    Thanks for your compliment :).
    Weird thing: today everything works fine. If I do an login over the SSO for the first time, the user is getting logged in and I do not need to reload the page. I don't know what happened yesterday, maybe its something in our System. I hope it will stay that way.
    The thing with the logout button you are talking about, is working fine for me.
    In the Github you write that the addon is still under developement. Is it possible to use it at the moment in a productive environment? Or are there any issues, that still occur? Is there a list of things you want to implement?
    Thanks :)
     
  5. cwispy

    cwispy Active Member

    Good to hear that its now working ok for you.

    As for the non production status, its more around the module has not been tested thoroughly enough and I am sure there is still some bugs and quite probably some missing error capturing through out the code, as this version of the module is a major update from the original version that I and many others have been running for a few years now. I would not be advising people to run it in production, but at the same time, the more testing people can do to find the remaining issues, the sooner it will be ready for production use.
     
  6. BenM

    BenM Member

    Hi,
    Got the same problem as Octa. The {ip} field does not get filled.
    And the e-mail adres creation is okay from whmcs and i can see it in ISPconfig, but whmcs report
    Current Mailboxes ( 0 of Unlimited )

     
  7. cwispy

    cwispy Active Member

    Are you running a multi server or single server setup? In all my tests I can not get this to happen, and I am testing with a multiserver setup at the moment.

    I will look into the mailbox issues.
     
  8. octa.ci

    octa.ci New Member

    I am running a multi server setup. In the templates the servers are set up.
    The only thing is that all servers are after firewall and have internal IPs not the public IP what is seen from outside. Also I have the same issue with e-mails, although the database users and other things, except FTP are working properly.
     
  9. cwispy

    cwispy Active Member

    The module now gets the IP addresses for the servers from ispconfig. In the template, are you configuring a website?
     
  10. BenM

    BenM Member

    I am running a single server
     
  11. BenM

    BenM Member

    Why not use the ip adres from the server setup from whmcs?
     
  12. cwispy

    cwispy Active Member

    Because I am trying to make the module not be reliant on whmcs for anything. That way any changes in ispconfig will not affect the service.

    Can you look in your module log on whmcs for the createprednszone and createpostdnszone lines and post what they show. This is what my test systems say.
    Code:
    createprednszone   
    example2.com
    DNS Template 193 1 example2.com 10.0.136.20 ispcfg-srv3.ispcfg3.tld ispcfg-srv4.ispcfg3.tld [email protected]
    
    createpostdnszone
    example2.com
    DNS Template 1
    
     
  13. BenM

    BenM Member

    DNS Template 52 2 host-direct.nl ns5.web-direct.nl ns5.nl [email protected]
    Yes the ip is empty
     
  14. cwispy

    cwispy Active Member

    So that means the module is not able to find the ip of the webserver from ispconfig.

    Have a look at the log entry for postcreate client and see what the id value is for
    [default_webserver] => 1

    In this instance, the id of the webserver is 1.
     
  15. BenM

    BenM Member

    This is the dump from post create client, dont see any webserver at all
    ... is hidden by me

    Array
    (
    [company_name] => ....
    [contact_name] => Ben Meesters
    [customer_no] => 21
    [username] => ...
    [password] => ...
    [language] => en
    [usertheme] => default
    [street] => ...
    [zip] => ...
    [city] => ..
    [state] => Noord-Brabant
    [country] => NL
    [telephone] => ...
    [mobile] => ...
    [fax] => ...
    => ...
    [template_master] => 1
    [default_mailserver] => 1
    [limit_maildomain] => -1
    [limit_mailbox] => -1
    [limit_mailalias] => -1
    [limit_mailaliasdomain] => -1
    [limit_mailforward] => -1
    [limit_mailcatchall] => -1
    [limit_mailrouting] => 0
    [limit_mailfilter] => -1
    [limit_fetchmail] => -1
    [limit_mailquota] => -1
    [limit_spamfilter_wblist] => 0
    [limit_spamfilter_user] => 0
    [limit_spamfilter_policy] => 0
    [default_xmppserver] => 1
    [xmpp_servers] => 1
    [limit_xmpp_domain] => -1
    [limit_xmpp_user] => -1
    [limit_xmpp_muc] => n
    [limit_xmpp_anon] => n
    [limit_xmpp_auth_options] =>
    [limit_xmpp_vjud] => n
    [limit_xmpp_proxy] => n
    [limit_xmpp_status] => n
    [limit_xmpp_pastebin] => n
    [limit_xmpp_httparchive] => n
    [default_webserver] => 1
    [limit_web_ip] =>
    [limit_web_domain] => -1
    [limit_web_quota] => -1
    [web_php_options] => no,fast-cgi,cgi,mod,suphp,php-fpm,hhvm
    [limit_cgi] => y
    [limit_ssi] => y
    [limit_perl] => y
    [limit_ruby] => y
    [limit_python] => y
    [force_suexec] => y
    [limit_hterror] => y
    [limit_wildcard] => y
    [limit_ssl] => y
    [limit_ssl_letsencrypt] => y
    [limit_web_subdomain] => -1
    [limit_web_aliasdomain] => -1
    [limit_ftp_user] => -1
    [limit_shell_user] => 0
    [ssh_chroot] => no,jailkit
    [limit_webdav_user] => 0
    [limit_backup] => y
    [limit_directive_snippets] => y
    [limit_aps] => -1
    [default_dnsserver] => 1
    [db_servers] => 1
    [limit_dns_zone] => -1
    [default_slave_dnsserver] => 1
    [limit_dns_slave_zone] => -1
    [limit_dns_record] => -1
    [default_dbserver] => 1
    [dns_servers] => 1
    [limit_database] => -1
    [limit_database_user] => -1
    [limit_database_quota] => -1
    [limit_cron] => 0
    [limit_cron_type] => url
    [limit_cron_frequency] => 5
    [limit_traffic_quota] => -1
    [limit_domainmodule] => 0
    [limit_mailmailinglist] => -1
    [limit_openvz_vm] => 0
    [limit_openvz_vm_template_id] => 1
    [limit_client] => 0
    [parent_client_id] => 0
    [locked] => 0
    [added_date] => 2018-01-19
    [added_by] =>
    [created_at] => 2018-01-19
    )
     
  16. cwispy

    cwispy Active Member

    I have just pushed three commits to github. Get the latest ispcfg3.php, functions/base.php and templates/emails.tpl files and check the email count issue and the dns issue.
     
  17. BenM

    BenM Member

    E-mail is fixed :)
    DNS still emty {ip}
    Default webserver is in
    DNS Template 55 2 host-direct.nl ns5.web-direct.nl ns5.nl [email protected]
    Array
    (
    [company_name] =>
    [contact_name] =>
    [customer_no] => 21
    [username] =>
    [password] =>
    [language] => en
    [usertheme] => default
    [street] =>
    [zip] =>
    [city] =>
    [state] =>
    [country] =>
    [telephone] =>
    [mobile] =>
    [fax] =>
    => [email protected]
    [template_master] => 1
    [default_mailserver] => 1
    [limit_maildomain] => -1
    [limit_mailbox] => -1
    [limit_mailalias] => -1
    [limit_mailaliasdomain] => -1
    [limit_mailforward] => -1
    [limit_mailcatchall] => -1
    [limit_mailrouting] => 0
    [limit_mailfilter] => -1
    [limit_fetchmail] => -1
    [limit_mailquota] => -1
    [limit_spamfilter_wblist] => 0
    [limit_spamfilter_user] => 0
    [limit_spamfilter_policy] => 0
    [default_xmppserver] => 1
    [xmpp_servers] => 1
    [limit_xmpp_domain] => -1
    [limit_xmpp_user] => -1
    [limit_xmpp_muc] => n
    [limit_xmpp_anon] => n
    [limit_xmpp_auth_options] =>
    [limit_xmpp_vjud] => n
    [limit_xmpp_proxy] => n
    [limit_xmpp_status] => n
    [limit_xmpp_pastebin] => n
    [limit_xmpp_httparchive] => n
    [default_webserver] => 1
    [limit_web_ip] =>
    [limit_web_domain] => -1
    [limit_web_quota] => -1
    [web_php_options] => no,fast-cgi,cgi,mod,suphp,php-fpm,hhvm
    [limit_cgi] => y
    [limit_ssi] => y
    [limit_perl] => y
    [limit_ruby] => y
    [limit_python] => y
    [force_suexec] => y
    [limit_hterror] => y
    [limit_wildcard] => y
    [limit_ssl] => y
    [limit_ssl_letsencrypt] => y
    [limit_web_subdomain] => -1
    [limit_web_aliasdomain] => -1
    [limit_ftp_user] => -1
    [limit_shell_user] => 0
    [ssh_chroot] => no,jailkit
    [limit_webdav_user] => 0
    [limit_backup] => y
    [limit_directive_snippets] => y
    [limit_aps] => -1
    [default_dnsserver] => 1
    [db_servers] => 1
    [limit_dns_zone] => -1
    [default_slave_dnsserver] => 1
    [limit_dns_slave_zone] => -1
    [limit_dns_record] => -1
    [default_dbserver] => 1
    [dns_servers] => 1
    [limit_database] => -1
    [limit_database_user] => -1
    [limit_database_quota] => -1
    [limit_cron] => 0
    [limit_cron_type] => url
    [limit_cron_frequency] => 5
    [limit_traffic_quota] => -1
    [limit_domainmodule] => 0
    [limit_mailmailinglist] => -1
    [limit_openvz_vm] => 0
    [limit_openvz_vm_template_id] => 1
    [limit_client] => 0
    [parent_client_id] => 0
    [locked] => 0
    [added_date] => 2018-01-20
    [added_by] =>
    [created_at] => 2018-01-20
    )
     
  18. cwispy

    cwispy Active Member

    Ok, I think I have found the issue this time. Grab the newest commit of ispcfg3.php from githib.
     
  19. BenM

    BenM Member

    Sorry, emty {ip}
    DNS Template 57 2 host-direct.nl ns5.web-direct.nl ns5.nl [email protected]
    Array
    (
    [company_name] =>
    [contact_name] =>
    [customer_no] => 21
    [username] =>
    [password] =>
    [language] => en
    [usertheme] => default
    [street] =>
    [zip] =>
    [city] =>
    [state] =>
    [country] => NL
    [telephone] =>
    [mobile] =>
    [fax] =>
    =>
    [template_master] => 1
    [default_mailserver] => 1
    [limit_maildomain] => -1
    [limit_mailbox] => -1
    [limit_mailalias] => -1
    [limit_mailaliasdomain] => -1
    [limit_mailforward] => -1
    [limit_mailcatchall] => -1
    [limit_mailrouting] => 0
    [limit_mailfilter] => -1
    [limit_fetchmail] => -1
    [limit_mailquota] => -1
    [limit_spamfilter_wblist] => 0
    [limit_spamfilter_user] => 0
    [limit_spamfilter_policy] => 0
    [default_xmppserver] => 1
    [xmpp_servers] => 1
    [limit_xmpp_domain] => -1
    [limit_xmpp_user] => -1
    [limit_xmpp_muc] => n
    [limit_xmpp_anon] => n
    [limit_xmpp_auth_options] =>
    [limit_xmpp_vjud] => n
    [limit_xmpp_proxy] => n
    [limit_xmpp_status] => n
    [limit_xmpp_pastebin] => n
    [limit_xmpp_httparchive] => n
    [default_webserver] => 1
    [limit_web_ip] =>
    [limit_web_domain] => -1
    [limit_web_quota] => -1
    [web_php_options] => no,fast-cgi,cgi,mod,suphp,php-fpm,hhvm
    [limit_cgi] => y
    [limit_ssi] => y
    [limit_perl] => y
    [limit_ruby] => y
    [limit_python] => y
    [force_suexec] => y
    [limit_hterror] => y
    [limit_wildcard] => y
    [limit_ssl] => y
    [limit_ssl_letsencrypt] => y
    [limit_web_subdomain] => -1
    [limit_web_aliasdomain] => -1
    [limit_ftp_user] => -1
    [limit_shell_user] => 0
    [ssh_chroot] => no,jailkit
    [limit_webdav_user] => 0
    [limit_backup] => y
    [limit_directive_snippets] => y
    [limit_aps] => -1
    [default_dnsserver] => 1
    [db_servers] => 1
    [limit_dns_zone] => -1
    [default_slave_dnsserver] => 1
    [limit_dns_slave_zone] => -1
    [limit_dns_record] => -1
    [default_dbserver] => 1
    [dns_servers] => 1
    [limit_database] => -1
    [limit_database_user] => -1
    [limit_database_quota] => -1
    [limit_cron] => 0
    [limit_cron_type] => url
    [limit_cron_frequency] => 5
    [limit_traffic_quota] => -1
    [limit_domainmodule] => 0
    [limit_mailmailinglist] => -1
    [limit_openvz_vm] => 0
    [limit_openvz_vm_template_id] => 1
    [limit_client] => 0
    [parent_client_id] => 0
    [locked] => 0
    [added_date] => 2018-01-20
    [added_by] =>
    [created_at] => 2018-01-20
    )
     
  20. cwispy

    cwispy Active Member

    Do you have an IP address in the server config settings on the ispconfig server? Even if its not being managed by ispconfig.

    Screenshot_2018-01-20_21-26-54.png
     

Share This Page