No, the username is always an abbreviation of the domain name for example hallo.com allows the user hallocom. I would like to be the creation of several services under one acount
That is not possible at this stage due the way WHMCS handles accounts. So every product will be setup as a new customer.
anyone that can help me? I used to use boxbilling, I am nobato to end at WHMCS I have proof in nginx and apache2 in wheezy servers I did what it says in the tutorial https://github.com/cwispy/ispcfg3/wiki and when you create an order it shows me an error, creates correctly ispconfig3 account but not the order or the DNS ERROR Code: Warning: Missing argument 3 for ModuleCallFunction(), called in /var/www/clients/client0/web1/web/includes/modulefunctions.php on line 0 and defined in /var/www/clients/client0/web1/web/includes/modulefunctions.php on line 0
I have everything in 1 ispconfig3 Server on this server I'm using Debian 7 pefect server apache2 http://muaja.com/cart.php
When you click on the System tab in ISPConfig, is the server name there exactly the same as the server name in WHMCS? They must match exactly.
The problem with loadingjkr's setup was that the server name in ISPConfig and in the servers tab in WHMCS did not match exactly. I will try and improve the documentation to make that fact more clear for those setting it up in the future.
tried it on apache2 with suphp works very well It creates very well in nginx, dns, ftp, email but when active php-fpm the 502 error occurs I have a problem with php5-fpm in nginx manages to activate normal but boot bad request when active php5-fpm
That issue is something to do with the configuration or setup of the server. Its not related to the ispcfg3 module. Try asking in the ISPConfig 3 Priority Support forum if your a Howtoforge subscriber, or in the Installation/Configuration
the pool is not well generated nginx php5-fpm /etc/php5/fpm/pool.d/webX.conf /etc/php5/fpm/pool.d/web7.conf Expand: Pool generate Error Code: [web7] listen = 127.0.0.1:9016 listen.allowed_clients = 127.0.0.1 user = web7 group = client6 pm = dynamic pm.max_children = 10 pm.max_requests = 0 chdir = / php_admin_value[open_basedir] = /var/www/clients/client6/web7/web:/var/www/clients/client6/web7/private:/var/www/clients/client6/web7/tmp:/var/www/test1.com/web:/srv/www/test1.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin php_admin_value[session.save_path] = /var/www/clients/client6/web7/tmp php_admin_value[upload_tmp_dir] = /var/www/clients/client6/web7/tmp php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i [email protected]" edit: Expand Code: pm = dynamic pm.max_children = 10 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 5 pm.max_requests = 0 service php5-fpm restart Estudiseno
Its unlikely that this is an ispconfig error as other applications that use the api are working fine. I guess you might not have tested your whmcs plugin with nginx yet? The api parameters differ for apache and nginx servers, you can see that in the ispconfig interface as well, on nginx systems, you have different options then on apache systems. If you dont pass all parameters to the api and some of the parameters that are required for nginx are missing, then the script will fail to generate the nginx vhost or php-fpm pool. If you want to be sure that your script works with nginx and apache, then pass all values as $params to the website add function that are in the web_domain database table (except of the sys_* columns of course, they hold just the permissions) and then test your plugin with an nginx server. If it does not work as expected, then compare the resulting database record in web_domain table that was created by your plugin ith one that was generated trough the ispconfig api and adjust your api params so that they match the ones that ispconfig uses to create the website.
Add this solved the automatic error in Nginx php5-fpm. don't forget to enable php-fpm in ispcfg3 Template (Client and Reseller Templates), I don't know if there is a conflict with another version. review please: Expand: Original Code: $ispcparams = array( 'server_id' => $defaultwebserver, 'ip_address' => '*', 'pm_process_idle_timeout' => '10', 'pm_max_requests' => '0', 'type' => 'vhost', 'vhost_type' => 'name', 'domain' => $domain, 'hd_quota' => $webquota, 'traffic_quota' => $webtraffic, 'cgi' => $enablecgi, 'ssi' => $enablessi, 'ruby' => $enableruby, 'suexec' => $enablesuexec, 'errordocs' => $enableerrdocs, 'subdomain' => $subdomain, 'ssl' => $enablessl, 'php' => $phpmode, 'active' => $webactive, 'allow_override' => 'All', 'php_open_basedir' => '/' ); Expand: edited Code: $ispcparams = array( 'server_id' => $defaultwebserver, 'ip_address' => '*', 'pm_process_idle_timeout' => '10', 'pm_max_requests' => '0', 'type' => 'vhost', 'vhost_type' => 'name', 'domain' => $domain, 'hd_quota' => $webquota, 'traffic_quota' => $webtraffic, 'cgi' => $enablecgi, 'ssi' => $enablessi, 'ruby' => $enableruby, 'suexec' => $enablesuexec, 'errordocs' => $enableerrdocs, 'subdomain' => $subdomain, 'ssl' => $enablessl, 'php' => $phpmode, 'active' => $webactive, 'allow_override' => 'All', 'php_fpm_use_socket' => 'y', 'pm' => 'dynamic', 'pm_max_children' => '10', 'pm_start_servers' => '2', 'pm_min_spare_servers' => '1', 'pm_max_spare_servers' => '6', 'pm_max_requests' => '5', 'added_by' => 'admin', 'php_open_basedir' => '/' ); service nginx restart service php5-fpm restart in this way it is arranged on my server nginx with php5-fpm
Thanks for the reply Till. I am not able to test against nginx as I do not run it on any of our servers. I have updated the script with the missing $params for the sites_web_domain_add function. Please test the latest update and see if it fixes the issue for you loadingjkr.
the error continues. ------------------------------------------------------------------------------------------------------------------------------------------------------ I put this in the ispcfg3.php and the error is solved https://www.howtoforge.com/community/threads/new-ispconfig-module-for-whmcs.67824/page-6#post-325746
cwispy, Your script is working great and many thanks. I do have an issue with the DNS setting Zone Ip Addressing. You have to hard code the IP address in the module settings. I think it would make more sense to have that IP address be the IP address of the web server that the account is installed on. So If my server group has 5 webservers and your script chooses server A to put the website on, then the Zone Ip Addressing value should be the IP address of server A. Any thoughts on this?
I totally agree with you. I have been thinking about it myself in the last few days. I think I will be able to have the dns entries generated based on the servers that are selected. If I get a chance over the Easter break, I hope to get this done.