New ISPConfig module for WHMCS

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

  1. kevtucker

    kevtucker New Member

    If i fill this in with the above or turn off DNS setting create I get The no server error again :(

    I created the template as your post recommended and use that as template 2.

    Screen Shot 2016-07-15 at 09.17.14.png
     
  2. cwispy

    cwispy Active Member

    Do you have a single server or multi-server setup?
     
  3. kevtucker

    kevtucker New Member

    Single Server setup.
     
  4. BeNeDeLuX

    BeNeDeLuX New Member

    I have exact the same error as kevtucker:
    Code:
    Module Command Error
    SOAP Error: no_server_error<br />
    Used the current ispcfg3 script for v3.1 (selected 3.1 under settings). The customer is created fine but the domain is missing because of the error.
    I´m running 3.1.b2 with MultiServer Setup.
     
  5. cwispy

    cwispy Active Member

    Do you have your name server listed in the server group in whmcs?
     
  6. cwispy

    cwispy Active Member

    Turn on module logging in whmcs and see what it says when it produces the error?
     
  7. BeNeDeLuX

    BeNeDeLuX New Member

    Yes, the name servers are listed in the server group in whmcs:

    [​IMG]
     
  8. cwispy

    cwispy Active Member

    The name server settings there have no effect on the module. You must list each server in the server group as per the instructions on the github wiki. The only settings that matter to the module are the Hostname, IP Address and Type.

    Refer to the WHMCS Add Servers and WHMCS Server Group https://github.com/cwispy/ispcfg3/wiki
     
  9. BeNeDeLuX

    BeNeDeLuX New Member

    Yep, this was my fault! I did not select the Server Group :confused: I´m sorry.
    The customer as the domain is now created but there are still some more errors:

    Code:
    Module Command Error
    SOAP Error: invalid_system_user_or_group_txt<br> invalid_system_user_or_group_txt<br> directory_error_regex<br /> directory_error_notinweb<br>
    The FTP Account and the Maildomain is not created as far as i can see (because of the invalid system user or group?)

    Thanks cwispy
     
  10. cwispy

    cwispy Active Member

    What does the module log show? I am not sure where that error is coming from. Unless your running different software on your servers.
     
  11. nokia80

    nokia80 Member

    Hi all,

    i get this error
    SOAP Error: Could not connect to host
    SOAP Error: Could not connect to host
    SOAP Error: Could not connect to host

    After update of the module sombody any idee?

    Thanks
     
  12. cwispy

    cwispy Active Member

    I have checked in a change that fixed the soap connection on newer systems. You may want to check out the latest version and see if that fixes your issue.
     
  13. nokia80

    nokia80 Member

    Thanks works
     
  14. cwispy

    cwispy Active Member

    I missed the connection string in most of the other functions. This has been rectified now if you get the latest copy from github.
     
  15. AVG

    AVG Member

    Hello guys.
    I have updated my ISPconfig servers to version 3.1
    But now i have a error in whmcs when i try to create a new account.
    The error is the following:
    Column 'nginx_directives' cannot be null INSERT INTO `web_domain` (`server_id`, `ip_address`, `ipv6_address`, `domain`, `type`, `parent_domain_id`, `vhost_type`, `hd_quota`, `traffic_quota`, `cgi`, `ssi`, `suexec`, `errordocs`, `subdomain`, `ssl`, `ssl_letsencrypt`, `php`, `fastcgi_php_version`, `perl`, `ruby`, `python`, `enable_pagespeed`, `active`, `web_folder`, `redirect_type`, `redirect_path`, `seo_redirect`, `rewrite_rules`, `rewrite_to_https`, `ssl_state`, `ssl_locality`, `ssl_organisation`, `ssl_organisation_unit`, `ssl_country`, `ssl_domain`, `ssl_key`, `ssl_request`, `ssl_cert`, `ssl_bundle`, `ssl_action`, `enable_spdy`, `stats_password`, `stats_type`, `backup_interval`, `backup_copies`, `backup_excludes`, `document_root`, `system_user`, `system_group`, `allow_override`, `php_fpm_use_socket`, `pm`, `pm_max_children`, `pm_start_servers`, `pm_min_spare_servers`, `pm_max_spare_servers`, `pm_process_idle_timeout`, `pm_max_requests`, `php_open_basedir`, `custom_php_ini`, `apache_directives`, `nginx_directives`, `proxy_directives`, `added_date`, `added_by`, `http_port`, `https_port`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`) VALUES ('1', '*', '', 'zapert.com', 'vhost', '0', 'name', '10024', '-1', 'y', 'y', 'y', '1', 'www', 'y', 'n', 'fast-cgi', '', 'y', 'y', 'y', 'n', 'y', '', '', '', '', NULL, 'n', '', '', '', '', '', '', '', '', '', '', '', 'n', '$1$CURPSiAZ$BrKli5ctRKIo/GNTvRhYx0', 'awstats', '', '1', '', '-', '-', '-', 'All', 'y', 'dynamic', '10', '2', '1', '5', '10', '0', '/', '', NULL, NULL, NULL, '2016-10-01', 'whmcs', '80', '443', '132', '132', 'riud', 'riud', '')

    I use a multiserver setup.
    I use the last whmcs ispconfig module from github.
    Till i updated ISPconfig to version 3.1, everything was worked like it should.
     
  16. webguyz

    webguyz Active Member HowtoForge Supporter

    My guess is its complaining about the 3 NULL's toward the bottom of the SQL statement. All other fields have a ,'','' if there is no data. Would look at the code to see if I could find what generating them.
     
  17. AVG

    AVG Member

    I'm sorry my dear friend, but about what code you are talking about ?
     
  18. webguyz

    webguyz Active Member HowtoForge Supporter

    that you uploaded to WHMCS at /whmcs_folder/modules/servers/ispcfg3.php
    I would scan thru and try and find what is the code that generates the 3 NULL's in the error message and modify it.
    Or just wait to see if others run into the same issue as they start to upgrade to 3.1.
     
  19. AVG

    AVG Member

    Ok, now i understand.
    So please here you are.
    I have zipped the file.
     

    Attached Files:

  20. romlaum

    romlaum New Member

    Hello,
    I've a big problem. I need to setup this module and all works fine exept "DNS zone" creation.
    In module config "create DNS" is checked and settins are "dnscust.domain.xxx,dnscust2.domain.xxx,info,1,1xx.xxx.xxx.xxx"
    When I run a manual creation, I see in ispcfg server :

    02.10.2016-10:25 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    02.10.2016-10:25 - DEBUG - Found 9 changes, starting update process.
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1016
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1017
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1018
    02.10.2016-10:25 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    02.10.2016-10:25 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    02.10.2016-10:25 - DEBUG - Adding the group: client57
    02.10.2016-10:25 - DEBUG - Adding the user: web41
    02.10.2016-10:25 - DEBUG - Creating symlink: ln -s /var/www/clients/client57/web41/ /var/www/teztezrtezr.com
    02.10.2016-10:25 - DEBUG - Creating symlink: ln -s /var/www/clients/client57/web41/ /var/www/clients/client57/teztezrtezr.com
    xfs_quota: invalid group name: web41
    02.10.2016-10:25 - DEBUG - exec: chown -R web41:client57 /var/www/clients/client57/web41/web
    02.10.2016-10:25 - DEBUG - exec: chown web41:client57 /var/www/clients/client57/web41/web
    02.10.2016-10:25 - DEBUG - exec: usermod --groups sshusers web41 2>/dev/null
    02.10.2016-10:25 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/teztezrtezr.com.vhost
    02.10.2016-10:25 - DEBUG - Creating symlink: /etc/httpd/conf/sites-enabled/100-teztezrtezr.com.vhost->/etc/httpd/conf/sites-available/teztezrtezr.com.vhost
    02.10.2016-10:25 - DEBUG - Created AWStats config file: /etc/awstats/awstats.teztezrtezr.com.conf
    02.10.2016-10:25 - DEBUG - Apache status is: running
    02.10.2016-10:25 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    02.10.2016-10:25 - DEBUG - Restarting httpd: systemctl restart httpd.service
    02.10.2016-10:25 - DEBUG - Apache restart return value is: 0
    02.10.2016-10:25 - DEBUG - Apache online status after restart is: running
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1019
    02.10.2016-10:25 - DEBUG - Calling function 'insert' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_insert'.
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1020
    02.10.2016-10:25 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
    02.10.2016-10:25 - DEBUG - Writing BIND named.conf.local file: /etc/named.conf.local
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1021
    02.10.2016-10:25 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
    02.10.2016-10:25 - DEBUG - Writing BIND named.conf.local file: /etc/named.conf.local
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1022
    02.10.2016-10:25 - DEBUG - Calling function 'domain_dkim_insert' from plugin 'mail_plugin_dkim' raised by event 'mail_domain_insert'.
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1023
    02.10.2016-10:25 - DEBUG - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
    02.10.2016-10:25 - DEBUG - Writing BIND named.conf.local file: /etc/named.conf.local
    02.10.2016-10:25 - DEBUG - Processed datalog_id 1024
    02.10.2016-10:25 - DEBUG - Calling function 'restartBind' from module 'dns_module'.
    02.10.2016-10:25 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

    So all DNS settings are correctly saved in database, but named just ignore all...
    All servers are loaded in WHMCS iscpcfg group.

    Do you have an idea to start research ?
    (and thanks to cwispy who tried to help me yesterday !)
     

Share This Page