Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #31  
Old 10th April 2009, 13:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Can you post the file here?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #32  
Old 11th April 2009, 23:21
grandpagenocide grandpagenocide is offline
Senior Member
 
Join Date: Jun 2007
Location: Brooklyn, NY
Posts: 308
Thanks: 13
Thanked 43 Times in 29 Posts
Send a message via AIM to grandpagenocide Send a message via MSN to grandpagenocide
Default

Lubos,
2 questions
1. did you successfully install the remote framework?
2. did you install libxml2?
__________________
Hosting for the Masses
http://rhwebhosting.com
Reply With Quote
  #33  
Old 22nd April 2009, 16:25
Bikkies Bikkies is offline
Junior Member
 
Join Date: Apr 2009
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default pkg file seems to be missing

On this page http://www.ispconfig.org/remoting_plugin.htm I found the link for remote framework http://www.ispconfig.org/downloads/i...ta4.2.1_os.pkg
Even though the extension is .pkg, when I download it comes as a .zip file.
I unzip it but there is still no .pkg file.
Tried uploading the .ins file but only get same error as bernholdt earlier.
"Installation instructions not found: /home/admispconfig/ispconfig/temp/a50e1e4f787ccff99668e4ea89828fe7/package.ins"

Any idea what is wrong here because I am lost?
Thx in advance.

Last edited by Bikkies; 22nd April 2009 at 16:34.
Reply With Quote
  #34  
Old 22nd April 2009, 16:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

This is a .pkg file, take a look at the file extension and do not unzip it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #35  
Old 22nd April 2009, 18:03
Bikkies Bikkies is offline
Junior Member
 
Join Date: Apr 2009
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks Till, but using WinXP & clicking on the link results in -


Reply With Quote
  #36  
Old 22nd April 2009, 18:47
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default Rename

Rename the ".zip" extension of the downloaded file back to ".pkg" and with that renamed package use the package manager of ISPConfig.
Reply With Quote
  #37  
Old 23rd April 2009, 03:13
lubos lubos is offline
Member
 
Join Date: Oct 2007
Location: Belfast, UK - NI
Posts: 59
Thanks: 29
Thanked 17 Times in 13 Posts
Unhappy Remote script not working

Sorry, I did not check here for a while. I will check now regularly until it will be resolved. Thank you upfront for your help.

Quote:
Originally Posted by grandpagenocide View Post
Lubos,
2 questions
1. did you successfully install the remote framework?
2. did you install libxml2?
I successfuly installed remote framework
I have libxml2 installed on server and I have curl on PHP

I changed server in autosign.php and in auto.php (I am not sure if there should be both files or just one of them, I put on the web in the folder where is AddWebsite file both of them and soap.lib as well.)

Quote:
Originally Posted by falko View Post
Can you post the file here?
Bellow is file for adding website, only part for adding website is uncommented.
I changed username and password to my settings plus a) changed IP for server where is ISPconfig installed and b) changed server to use URL instead of IP - none version worked.

You can find resulted screen with error here: AddWebsite
Thanks upfront for your help

One Q - do I have to insert some code to create tables or something?


Info about file: I tried to upload here full length but it won't let me. so I deleted here all other entries which are in my file on server but are commented out with
//*
*//

Code:
<?php

/**
* ISPConfig Soap Connector
* Version 1.3
* (c) Projektfarm GmbH 2005
*
* This script requires PHP with CURL extension
*
*/

include("soap.lib.php");

// Insert here your 42go Server
$server_url = "https://mine.IP.inser.ted:81";

// creating object for soap_client
$soap_client = new soap_client($server_url.'/remote/index.php');

// Username and Password of the remoting user (not identical
// with the user to log into the web interface!)

$parameters = array('user' => 'my-user-name-for-remote',
                    'pass' =>  'remote-user-password');

// Login into 42go Server
$session_id = $soap_client->call('login',$parameters);

// Error Check
if($err = $soap_client->getError()) die("Error: ".$err);

//*other parts are here
*//


// Adding a Web
$params = array (         'sid'        => $session_id,
                                        'module'         => 'web',
                                        'function'         => 'web_add',
                                        'params'        => array (         kunde_title => 'Kunde6', // reseller_title or reseller_group
                                web_title => 'test7.de',
                                web_host => 'www',
                                web_domain => 'test7.de',
                                web_ip => '192.168.0.110',
                                web_speicher => '100', // MB
                                web_dns => 0,
                                web_userlimit => 5,
                                web_domainlimit => 2,
                                web_shell => 0,
                                web_cgi => 1,
                                web_standard_cgi => 1,
                                web_php => 1,
                                web_php_safe_mode => 1,
                      web_ruby    => 1,
                      web_python    => 1,
                                web_ssi => 1,
                                web_ftp => 1,
                                web_frontpage => 0,
                                web_mysql => 1,
                                web_mysql_anzahl_dbs => 5,
                                web_ssl => 0,
                                web_anonftp => 0,
                                web_anonftplimit => 0,
                                web_wap => 1,
                      web_cron    => 1,
                                web_individual_error_pages => 1
                                ));

$web_id = $soap_client->call('service',$params);
if($err = $soap_client->getError()) die("Error: ".$err);
echo $web_id;

//* again other parts are here
*//

// 42go Server logout
$soap_client->call('logout',array('sid' => $session_id));

// Error Check
if($err = $soap_client->getError()) die("Error: ".$err);

echo "<br>Script end ...";



?>
One more Q: I have server on domain.net and script on domain.com can that be a problem? Does the script require to be on the same domain as the server is? If yes, server has name.server.net, can the script be on www.server.net or it has to be on name.server.net?

Update: I tried the file on https://host.server.net:81/remote/myfile.php and got an error:

Code:
Error: CURL Extension, or OpenSSL extension w/ PHP version >= 4.3 is required for HTTPS
But: when I do
Code:
apt-get install curl libcurl3 php5-curl
(I don't know exact command so I tried all what i found on the web
I get response that they are already newest version.
__________________
Safe computer? Only when unplugged.

Last edited by lubos; 23rd April 2009 at 04:18. Reason: add more info and Q
Reply With Quote
  #38  
Old 29th May 2009, 17:09
afandino afandino is offline
Member
 
Join Date: May 2009
Posts: 35
Thanks: 1
Thanked 3 Times in 3 Posts
Default Need help uderstanding remote frame work

Till,

I have installed the latest stable of ispconfig i believe 2.32
The latest remote frame work

I seem to be having the same issue as lubos in that that the script completes without error yet nothing is updated in the data base. The session table has no entries.

It seems that the soap client never makes a good connection. I have place indicators in the function service in soap.inc.php yet the service function never gets executed. I am running text.php and routine add reseller.

I also am having trouble turning on advanced debug information for the soap connection.

Why do i get this behavior ?

tony
Reply With Quote
  #39  
Old 29th May 2009, 23:46
t-mug t-mug is offline
Member
 
Join Date: Jun 2007
Posts: 70
Thanks: 11
Thanked 6 Times in 5 Posts
Default Remoting tables lost after update

After updating stable core to 2.2.32 both of the remoting tables were missing completely. While the users got lost this way, no SOAP connection worked after this.
Whitout the tables (remote_user and remote_session), strange enough, no error occurs, if you try adding a new remoting user in the tools section of the control panel. It simply does not work and shows an empty user list after "adding". So I did some db research and finally readded the db struct of both tables to db_ispconfig manually. Adding users is now possible again and SOAP connections are working as well.

Anyone else here with the same experience?

EDIT: If I don't misunderstand the miraculous database "update" routine of the install.php file, then this is by design. So this should be a bug. Really nobody else noticed that?

Last edited by t-mug; 30th May 2009 at 21:18.
Reply With Quote
  #40  
Old 6th May 2010, 06:19
bahadircolak bahadircolak is offline
Junior Member
 
Join Date: Jan 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

How can I install remote api to ISPConfig 3?

I've downloaded the pkg file and libxml2, installed libxml2 but don't know where to put .pkg file?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.