Code Monkey home page Code Monkey logo

ispcfg3's Introduction

This module is no longer maintained.

ISPConfig module for WHMCS

  • module name: ispcfg3
  • Requires ISPConfig 3.1+
  • Requires WHMCS 7+

Copyright (C) 2014 - 2018 Shane Chrisp

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For discussion and issues with this module, visit our HowToForge discusion thread

Please report issues in our HowtoForge thread above.

This module now requires that you have ISPConfig 3.1 or higher. It will no longer work with older versions of ISPConfig

Installation

  • Create a directory called ispcfg3 on your WHMCS server in the modules/servers directory eg: /var/www/whmcs/modules/server/ispcfg3
  • Download the zip file and extract the contents to the directory you just created, or from the shell change into the directory you just and use git clone https://github.com/cwispy/ispcfg3.git . to download the repository.
  • Edit the file ispcfg3.php and make sure that you turn off the display_errors is set to 0 ini_set("display_errors", 0);

It is no longer necessary to upload any files into the ispconfig remote.d directory.

Further setup instrutions can be found in our GitHub Wiki

ispcfg3's People

Contributors

cwispy avatar mastertrix avatar thad-deus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ispcfg3's Issues

Errors when updating website via client area

When I update websites via the client area I get a success message but also an internal server error?

The changes do seem to go through.

1
2
3

As I said the changes do seem to go through to ispconfig fine.

Great work on this module cwispy, do you accept donations?

ispcfg3.css missing

As the title states.

Rename assets/css.css to ispcfg3.css.

Not really an issue but thought I'd bring it up.

Bug icon whmcs 7.7.1

Hello,
7.7.1 Unfortunately, I no longer have some icon on the panel (see img)

I would have just wanted to know if you continue the development of ispcfg3-whmcs.
Because it would be interesting to be able to modify the part SSL (Let'sEncrypt) since whmcs and also during the creation of a sub-domain for example, added automatically the required DNS.

Otherwise thank you for the work already done and free!

Sans titre

with ISPConfig 3.1

when customers are created works, but does not work when you suspend or terminate accounts.
return this error: SOAP Error: Could not connect to host

All work, but no database is created.

Looks like an amazing piece of work.
I'm using it ispcf3 with the last version of ISPConfig 3.0.5 and WHMCS 6.1.1. All work fine, but no DB is currently created, it's normal?
Thanks in advance,
Best regards.

Sandro

Change PHP version

Hello cwispy, great work as usual!

I brought this up before in a seperate issue, but thought I'd bring it up again as it's own feature request and now that the module seems to be production ready.

Can we change the PHP version via the module?
fastcgi_php_version

#28
I mentioned it at the end of this issue before.

I haven't had time to try myself lately, but I didn't have much luck when I tried this before.

WHMCS 6.2

Hi Cwispy, is the new version of WHMCS compatibly with your module?
After update from 6.1.1 to 6.2 there are problems communicating with ispconfig.
The error is: Could not connect to host.

The error log say:
[Wed Jan 20 14:05:50 2016] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/whmcs/includes/functions.php on line 0, referer: https://domain.com/cart.php?a=checkout
[Wed Jan 20 14:05:50 2016] [error] [client x.x.x.x] PHP Stack trace:, referer: https://domain.com/cart.php?a=checkout
[Wed Jan 20 14:05:50 2016] [error] [client x.x.x.x] PHP 1. call_user_func() /var/www/whmcs/includes/classes/WHMCS/Module/AbstractModule.php:0, referer: https://domain.com/cart.php?a=checkout
[Wed Jan 20 14:05:50 2016] [error] [client x.x.x.x] PHP 2. ispcfg3_CreateAccount() /var/www/whmcs/includes/classes/WHMCS/Module/AbstractModule.php:0, referer: https://domain.com/cart.php?a=checkout

Not working on WHMCS 8

I keep getting this error. "Retry Response: No ISPConfig Limit-Template Match Found"
Even though I have created and specified the limit template.

WHMCS 7.2.3

Hello.
I've tried run yours module under WHMCS 7.2.3
After create a directory in modules/servers/ipscfg3 and uploading file ispcfg3.php I can't chose server type ipscfg3 (server details in tab servers). It isn't on the list.

Do you have maybe information about compatibility with whmcs 7.2.3 or maybe I'm doing something wrong?

Thanks in advance.
/BR
Michał

WHMCS not creating anything, just sits there at "working"

WHMCS isn't creating the users, it's just sitting at a message "Working" once the "create" button is clicked in the Admin Area.

Using WHMCS 7.

03/28/2017 20:34 ispconfig3 createclient

Array
(
[whmcsVersion] => 7.0.1-release.1
[accountid] => 49
[serviceid] => 49
[userid] => 1
[domain] => ispconfig-demo7.com
[username] => demouser
[password] => 31gz8V0xdS
[packageid] => 18
[pid] => 18
[serverid] => 13
[status] => Active
[type] => hostingaccount
[producttype] => hostingaccount
[moduletype] => ispconfig3
[configoption1] =>** omitted **
[configoption2] => ** omitted **
[configoption3] => ** omitted **
[configoption4] => on
[configoption5] => 1
[configoption6] => jailkit
[configoption7] => on
[configoption8] => no
[configoption9] => on
[configoption10] => on
[configoption11] => on
[configoption12] => on
[configoption13] => 0
[configoption14] => on
[configoption15] => www
[configoption16] => on
[configoption17] => on
[configoption18] => on
[configoption19] => on
[configoption20] => on
[configoption21] => on
[configoption22] => on
[configoption23] => 3.1
[configoption24] =>
[customfields] => Array
(
)

[configoptions] => Array
    (
    )

[clientsdetails] => Array
    (
        [userid] => ** omitted **
        [id] => ** omitted **
        [uuid] => ** omitted **
        [firstname] => ** omitted **
        [lastname] => ** omitted **
        [fullname] => ** omitted **
        [companyname] => Punk Media
        [email] => ** omitted **
        [address1] => ** omitted **
        [address2] => ** omitted **
        [city] => ** omitted **
        [fullstate] => ** omitted **
        [state] => ** omitted **
        [postcode] => ** omitted **
        [countrycode] => ** omitted **
        [country] => ** omitted **
        [phonenumber] => ** omitted **
        [password] => ** omitted **
        [statecode] => ** omitted **
        [countryname] => United States
        [phonecc] => 1
        [phonenumberformatted] => ** omitted **
        [billingcid] => 0
        [notes] => 
        [twofaenabled] => 
        [currency] => 1
        [defaultgateway] => paypalexpress
        [cctype] => 
        [cclastfour] => 
        [securityqid] => 1
        [securityqans] => ** omitted **
        [groupid] => 0
        [status] => Active
        [credit] => 6000.00
        [taxexempt] => 
        [latefeeoveride] => 1
        [overideduenotices] => 1
        [separateinvoices] => 
        [disableautocc] => 1
        [emailoptout] => 
        [overrideautoclose] => 1
        [allowSingleSignOn] => 1
        [language] => english
        [lastlogin] => ** omitted **
        [customfields1] => 
        [customfields] => Array
            (
                [0] => Array
                    (
                        [id] => 1
                        [value] => 
                    )

                [1] => Array
                    (
                        [id] => 2
                        [value] => ** omitted **
                    )

                [2] => Array
                    (
                        [id] => 3
                        [value] => ** omitted **
                    )

                [3] => Array
                    (
                        [id] => 4
                        [value] => Default
                    )

                [4] => Array
                    (
                        [id] => 20
                        [value] => 
                    )

                [5] => Array
                    (
                        [id] => 21
                        [value] => 
                    )

                [6] => Array
                    (
                        [id] => 22
                        [value] => 
                    )

                [7] => Array
                    (
                        [id] => 23
                        [value] => 
                    )

                [8] => Array
                    (
                        [id] => 24
                        [value] => 
                    )

                [9] => Array
                    (
                        [id] => 25
                        [value] => 
                    )

                [10] => Array
                    (
                        [id] => 29
                        [value] => 
                    )

            )

        [customfields2] => ** omitted **
        [customfields3] => ** omitted **
        [customfields4] =>** omitted **
        [customfields5] => 
        [customfields6] => 
        [customfields7] => 
        [customfields8] => 
        [customfields9] => 
        [customfields10] => 
        [customfields11] => 
    )

[server] => 1
[serverip] => ** omitted **
[serverhostname] => ** omitted **
[serverusername] => ** omitted **
[serverpassword] => ** omitted **
[serveraccesshash] => 
[serversecure] => 
[serverhttpprefix] => http
[serverport] => 
[action] => create

)

WHMCS 7.2 cant add server

Hi there,

At first, thank you for the module.

I was trying to setup your module under WHMCS 7.2, but if the modules is installed, then i cant create servers or products.
WHMCS displaying an OOps error, here is the apache log about that error:
[Thu May 25 12:06:56.180054 2017] [proxy_fcgi:error] [pid 27073] [client *:47301] AH01071: Got error 'PHP message: [WHMCS Application] ERROR: exception 'Whoops\Exception\ErrorException' with message 'in_array() expects parameter 2 to be array, null given'
in /srv/www/clients/client1/web170/web/admin/configservers.php:0 Stack trace: #0 /srv/www/clients/client1/web170/web/admin/configservers.php(0): Whoops\Run->handleError(2, 'in_array() expe...', '/srv/www/client...', 0, Array) #1 {main} {"exception":"[object] (Whoops\
\Exception\\ErrorException(code: 2): in_array() expects parameter 2 to be array, null given at /srv/www/clients/client1/web170/web/admin/configservers.php:0)"} []\n', referer: https://admin.x/admin/configservers.php

Can you help me about that?
Is your module compatible with WHMCS 7.2?

Thank you!

Regards,
Zoltan

Domain and Mail Creation failed

Dear Sir or Madam.

the Server Modul is verfy functional and the basic connection to my WHMCS Installation is funtional right after the first test.

I have made the installation step by step after the tutor here on github, but i become the following error befor i become the notice that the provisioning of the account was successful:

Error: SOAP Error: error_origin_empty
error_ns_empty
error_mbox_empty
error_refresh_empty
error_retry_empty
error_expire_empty
error_minimum_empty
error_ttl_empty

<<<<<<<<<<<<<<<<<

I use the WHMCS Version: 6.1.1 and the ispconfig version: ISPConfig Version: 3.0.5.4p8

Best Regards

I cannot add server from whmcs

Hello, I am going to install whmcs to work with ispconfig. but i cannot connect the server. It is stucked when I press test connection. Can you guy help me? TY

WHMCS 7.4.2 + ipscfg3 - Error 500 PHP 7.0

Welcome.
First... sory for my bad English.
I have problem with WHMCS 7.4.2 installed on Directadmin with PHP 7.0 FPM.
I uploaded ispcfg3-master to modules/servers and rename folder ispcfg3.
When i want to go add server on address configservers.php?action=manage i got error 500.
If i delete ispcfg3 from modules/servers then error 500 gone.

I tried find logs in httpd error_log and vhost domain error_log but this anomaly isn't save in this files.

Thanks you for reply.

SSH Support

Hi,

are there any plans to support SSH soon? This module looks very promising, but missing SSH functionally. I would love to see this feature implemented.

Thanks in advance.

FileManager Bug Report

Hi,

Since the last update I have a problem with the web ftp.

That comes from my side or the plugin?

Thank you for your time !

capture

FAILED: The login failed. Username or password wrong.

I have the latest version of ISPConfig3 installed but when installing the module in WHMCS, everything is normal. When trying to test the connection it says "FAILED: The login failed. Username or password wrong." despite the good credentials.

Class 'SoapClient' not found

am getting this error, what my be the problem
Error: Error: Class 'SoapClient' not found in /var/www/clients/client0/web1/web/modules/servers/ispcfg3/ispcfg3.php:243 Stack trace: #0 /var/www/clients/client0/web1/web/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): ispcfg3_CreateAccount(Array) #1 /var/www/clients/client0/web1/web/vendor/whmcs/whmcs-foundation/lib/Module/Server.php(0): WHMCS\Module\AbstractModule->call('CreateAccount', Array) #2 /var/www/clients/client0/web1/web/includes/modulefunctions.php(0): WHMCS\Module\Server->call('CreateAccount', Array) #3 /var/www/clients/client0/web1/web/includes/modulefunctions.php(0): ModuleCallFunction('Create', 8, Array, 0) #4 /var/www/clients/client0/web1/web/includes/orderfunctions.php(0): ServerCreateAccount(8) #5 /var/www/clients/client0/web1/web/admin/orders.php(0): acceptOrder(3, Array) #6 {main}

The {IP} placholder in the dns-template are not getting changed to the assigned IP address

The {IP} placholder in the dns-template are not getting changed to the
assigned IP address

That have always worked fine, but with the latest changes {IP} is not getting replaced with the IP defined in the WHMCS server module configuration.

I have switch back to commit b1e70f2
to get it working again.

Also tried commit 84dc9a0
but that also gave some) problems when using {IP} in my ispconfig template.

Using the latest WHMCS and the latest IPSCONFIG

A client with multiple domains, module not working

Hi,
I point out this problem. The form must be in error if I try to assign a client to another hosting space.
The message is the following:

Order Accept Encountered Problems
SOAP Error: customer_no_error_unique

Invalid value "" for parameter "registrant_dotitnationality"!

FTP account 'quota_size'

Hello,
it seems to me, that ftp account quota size should be $tmpl['limit_web_quota'] instead of $tmpl['limit_web_domain']

'quota_size' => $tmpl['limit_web_domain'],

What dou you think?
Br.

DNS zone not created

Hello

I've a problem with this module. It dosn't create DNS zones. All is ok except DNS ?
In debug mode I found

Array
(
    [server_id] => 
    [zone] => 
    [name] => www
    [type] => CNAME
    [data] => domain.com.
    [aux] => 0
    [ttl] => 3600
    [active] => y
    [stamp] => 2016-10-01 14:34:16
    [serial] => 
)

It this normal that server_id/zone & serial are empty ?

thanks

SOAP Error: Could Not Connect To Host

Any troubleshooting tips in order to fix this error? I've had the module working in the past but doesn't seem to work on this specific server. I've ensured username / pass are correct and IPs, etc

SOAP Error: Could not connect to host

Hi,

great module!
But for me it`s not working.

I am getting the above error.
But the ISPConfig URL and the API user is correct. What else could be the problem?

Added database creation BUG

Hello,
Your establishment of database creation is not working properly.

I put you screen for more ease.

Thank you

1
2
3

Thank you

Thank you for making this plugin available.

I have a few questions though. In order to separate web and email we invoice these separately. Setting up the services in whmcs the Module Settings are very much tailored to website configuration, leaving the email as a single tick box.

Am I right in understanding there's no means of automating email accounts yet?

Also there seems to be no documentation for the 3.1 branch of the code yet, I mean the extra files included. Do the extra files get copied into the whmcs folders, I see most of the files are css and templates? The ispconfig remote.d folder is clear.

Thanks,
Djerk

WHMCS can't complete daily CRON task

After installing this module whmcs cant finish it's daily cron anymore.
I'm using WHMCS 8. There are no module / system errors, when debugging via the command line the only error output is:

Array
(
)
ispconfig3[pid]: 1

Cross site scripting attack

Client can easily change the html code from inspect element remove the disable tag from add website button and create unlimited websites. Can change the id on the delete website form button and destroy an other users website. On your php code you must validate that the current user can make changes only on own websites,databases,dns,mails,etc...

SOAP Error: no_server_error

SOAP Error: no_server_error

This is the message, I see each time when want to activate order.

I have selected even Server group and everything should be correct.

Any idea?

Error DNS Teamplate Creation

Hello,
I'm getting a SOAP error when I'm trying to add DNS zone:

[Tue Dec 15 18:07:17.982586 2015] [fcgid:warn] [pid 7958] [client 141.101.64.83:47568] mod_fcgid: stderr: PHP Warning:  include(/usr/local/ispconfig/interface/lib/lang/.lng): failed to open stream: No such file or directory in /usr/local/ispconfig/interface/lib/classes/tform.inc.php on line 134
[Tue Dec 15 18:07:17.982726 2015] [fcgid:warn] [pid 7958] [client 141.101.64.83:47568] mod_fcgid: stderr: PHP Warning:  include(): Failed opening '/usr/local/ispconfig/interface/lib/lang/.lng' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/lib/classes/tform.inc.php on line 134
[Tue Dec 15 18:07:17.982755 2015] [fcgid:warn] [pid 7958] [client 141.101.64.83:47568] mod_fcgid: stderr: PHP Warning:  include(lib/lang/en_dns_soa.lng): failed to open stream: No such file or directory in /usr/local/ispconfig/interface/lib/classes/tform.inc.php on line 141
[Tue Dec 15 18:07:17.982777 2015] [fcgid:warn] [pid 7958] [client 141.101.64.83:47568] mod_fcgid: stderr: PHP Warning:  include(): Failed opening 'lib/lang/en_dns_soa.lng' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/lib/classes/tform.inc.php on line 141
[Tue Dec 15 18:07:18.016035 2015] [fcgid:warn] [pid 4553] (104)Connection reset by peer: [client 141.101.64.83:45778] mod_fcgid: error reading data from FastCGI server
[Tue Dec 15 18:07:18.016178 2015] [core:error] [pid 4553] [client 141.101.64.83:45778] End of script output before headers: index.php

Any idea how resolve this ?
Thank you

Module Command Error SOAP Error: no_server_error

Hi,

I've installed a ISPConfig multiserver environment and begin to have some problems regarding the website automatic creation. It reproduces the no_server_error.

In the single server configuration it works fine.

looking at the code, I realized to add the different servers to whmcs, but the website auto creation still doesn't seem to work.

thanks for any help.

error adding dns a record

Hi,
when using ispcfg3 with ISPConfig Version: 3.1.13 adding a dns a record fails with the following error:

Incorrect datetime value: '' for column 'stamp' at row 1 INSERT INTO `dns_rr` (`server_id`, `zone`, `name`, `type`, `data`, `ttl`, `active`, `stamp`, `serial`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`) VALUES ('1', '9', 'xxx.yyy.com.', 'a', 'xxx.xxx.xxx.xxx', '86400', 'y', '', '0', '8', '8', 'riud', 'riud', '')

The problem is that the value for the database field stamp is not set automatically when using the ISPConfig remote API. The ISPConfig dns form template (ispconfig/interface/web/dns/form/dns_a.tform.php) defines the field stamp with an empty string as default value.

'stamp' => array (
    'datatype' => 'VARCHAR',
    'formtype' => 'TEXT',
    'default' => '',
    'value'  => '',
    'width'  => '30',
    'maxlength' => '255'
    ),

When adding a dns a record via the ISPConfig webinterface serial and stamp are automatically set before the new dns a record is written to the table dns_rr (ispconfig/interface/web/dns/dns_edit_base.php).

$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ?", $this->id);
$this->dataRecord["serial"] = $app->validate_dns->increase_serial($soa["serial"]);
$this->dataRecord["stamp"] = date('Y-m-d H:i:s');

However, in the remoting API only the serial number is automatically increased if update_serial is set to true. In consequence the default value for stamp (empty string) is passed to the database (ispconfig/interface/lib/classes/remote.d/dns.inc.php).

if($update_serial) $this->increase_serial($session_id, $client_id, $params);
return $this->insertQuery('../dns/form/dns_a.tform.php', $client_id, $params);

Therefore, the timestamp value for stamp must be passed to ISPConfig in the remote call. An easy fix is to include stamp with the current date/time in the options array before executing the soap request.

--- dns.php.bak	2019-02-23 06:14:24.287829034 +0100
+++ dns.php	2019-02-23 06:11:25.103768432 +0100
@@ -39,6 +39,7 @@
             'type' => $_REQUEST['type'],
             'data' => $_REQUEST['destination'],
             'ttl' => $_REQUEST['ttl'],
+            'stamp' => date('Y-m-d H:i:s'),
             'active' => 'y',
             'ihost_dns_function' => 'dns_'.$_REQUEST['type'].'_add',
         );

Not delete web folder and vhost

Hello,

I discovered a problem.
When I do "terminate the service" via whmcs the web folders and the vhost files do not delete it.

When I delete the user from isp it works fine.

Thank's

Change text web ftp bug

Hello,

I have a problem, when I want to create a file (ex: test.php) with code inside, when saving it transforms all my code ...

Example
<! DOCTYPE html PUBLIC "- // W3C // DTD XHTML 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

becomes:

& lt;! DOCTYPE html & gt;
& Lt; html & gt;
& Lt; head & gt;
& lt; title & gt; This is a test page with PHP tags & lt; / title & gt;
& lt; meta charset = & quot; utf-8 & quot; / & Gt;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.