HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   ISPConfig remoting plugin (http://www.howtoforge.com/forums/showthread.php?t=12334)

till 26th April 2007 11:27

ISPConfig remoting plugin
 
The Beta 3 of the ISPConfig remoting plugin is now available for download as OpenSource under BSD Licence.

http://www.ispconfig.org/remoting_plugin.htm

The remoting plugin code is already included in the daily SVN snapshot versions.

To use the remoting plugin with the ISPConfig stable 2.2.x versions, please have a look here:

http://www.howtoforge.com/forums/showthread.php?t=11873

The installation of the Ioncube loader is not nescessary anymore as all files are unencoded.

3cwired_com 31st July 2007 14:56

I think I have read every thread about the remoting plugin before i decided to post, it is not working for me, I even updated to the latest version of ispconfig, and disabled the xml statements as per the instructions. The only thing I do end up getting is

"Script end..."

I installed the package and added remote users, and I still get no response.

this is the response from me running this script:
http://www.domain.com:81/remote/index.php

output:

This XML file does not appear to have any style information associated with it. The document tree is shown below.


<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<SOAP-ENV:Fault>
<faultcode>Server</faultcode>
<faultactor>method '' not defined in service ''</faultactor>
<faultstring/>

<detail>
<soapVal xsi:type="xsd:string"/>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
+
<!--

soap_server: entering parseRequest() on 08:34 2007-07-31
soap_server: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
soap_server: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
soap_server: Accept-Encoding: gzip,deflate
soap_server: Accept-Language: en-us,en;q=0.5
soap_server: Connection: keep-alive
soap_server: Cookie: SMFCookie468=a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%221%22%3B i%3A1%3Bs%3A40%3A%221fd0f18e5783e1b10cf23e431743f3 556a383b99%22%3Bi%3A2%3Bi%3A1368529334%3Bi%3A3%3Bi %3A0%3B%7D; cookie_test=please_accept_for_session; HESK=39103c739531c0a3de2004a6518e02ed; sessionispconfig=e233e57b127059cca0899313de314016; a65f03b910d2a93c4082717d7d283407=700c49bfe06993f89 c5fd27c94b83ae6; 4d4c585e3d720eae71ecacffc4c94eeb=78c38327cfb2b3417 6ebde0774185163; 33ea1bf6d476f0fc654735a0b6317d48=b73abbba40114a629 34e0d486ba4cfdf; ea09bb364ef1bffd889e76b7a59035fc=c54c66978c931f6de 9ec4a5c040809ba; IRMSESSID=d2b39a08229db8ebc7232f51a912c0c0; eZSESSID3cadmin=1acac22cbe38357d4a901726b7f7e01a; eZSESSID=2e9fbd8c6b03305eccc3b8783c5e70fb; PHPSESSID=e172c710f3b1c5b1526e6d7afb509953; ezcst_unfolded_node_list=n2%2Cn164%2Cn118%2Cn131%2 Cn43%2Cn59%2Cn122%2Cn138%2Cn101%2Cn206%2Cn77; zenAdminID=ad90af0a18a2450db3d53f3e6e3b83fd; zenid=40dd776ae8a3971a5ee6c155797bcefe
soap_server: Host: www.domain.com:81
soap_server: Keep-Alive: 300
soap_server: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
soap_server: got encoding: UTF-8
soap_server: method name:
soap_server: method '' not found!
soap_server: parser debug:
soap_parser: xml was empty, didn't parse!

soap_server: server sending...

-->

till 31st July 2007 15:00

Please post the script that you used, comments stripped.

3cwired_com 31st July 2007 15:10

Code:

<?php
include("soap.lib.php");

$server_url = "http://www.domain.com:81";

$soapclient = new soapclient($server_url.'/remote/index.php');

$parameters = array('user' => 'admin',
'pass' => 'admin');

$session_id = $soapclient->call('login',$parameters);

if($err = $soapclient->getError()) die("Error: ".$err);

$params = array ( 'sid' => $session_id,
'module' => 'reseller',
'function' => 'reseller_list',
'params' => '');
$reseller_list = $soapclient->call('service',$params);

if($err = $soapclient->getError()) die("Error: ".$err);
print_r($reseller_list);
$soapclient->call('logout',array('sid' => $session_id));

if($err = $soapclient->getError()) die("Error: ".$err);

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


3cwired_com 1st August 2007 17:47

Any ideas?

3cwired_com 5th August 2007 15:52

The post I am about to reply to was copied in from another thread:
Quote:

Originally Posted by larwilliams
Hello,
I am talking about the ISPConfig references, as stated in the how-to. Please post the "compile" file that you have in your "install_ispconfig" folder. Also, I assume you installed the Remoting Framework beta 3 plugin and created a user there?

I did install the remoting framework, and created 2 users to make sure, :o .
Code:

./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --enable-track-vars --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} ${WITH_ZLIB_DIR}  --without-pear || error "Could not configure PHP"
I see in your file you also removed "with_zlib_dir" and "--without -pear" I think I may try reinstallation again with those options.

3cwired_com 5th August 2007 16:52

Ok apparently using your compile file my installation failed with:
./setup2: line 873: ispconfig_tmp/php/bin/php: No such file or directory
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

I am going to try it removing the "--without -pear" switch.

3cwired_com 5th August 2007 17:14

When I try it for the 2nd time I get this

: warning: the use of `mktemp' is dangerous, better use `mkstemp'
make[1]: Leaving directory `/root/install_ispconfig/compile_aps/zip-2.3'
cc -o unzip unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o unreduce.o unshrink.o zipinfo.o unix.o -s
mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
./setup2: line 873: ispconfig_tmp/php/bin/php: No such file or directory
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!


when I try it again for the 3rd time i get this
mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
mv: cannot overwrite directory `ispconfig/tools/spamassassin/spamassassin'
mv: cannot overwrite directory `ispconfig/tools/uudeview/uudeview'
mv: cannot overwrite directory `ispconfig/tools/clamav/clamav'
./setup2: line 873: ispconfig_tmp/php/bin/php: No such file or directory
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

3cwired_com 5th August 2007 19:45

despite all of my woes with reinstalling ispconfig, the best I can get which I have gotten before is:
Error: HTTP Error: no data present after HTTP headers.

I might try reinstalling again for what seems like the hundredth time! :(

till 5th August 2007 20:02

I do not think that reinstalling is nescessary. Did you solve the compile problems above?

If not,

1)make sure that you install from e.g. /tmp or /usr/src, installing from directories like /home/admispconfig or /root might be problematic.
2) Configure your server as described in one of the perfect setup howtos.
3) To use the remoting framework, it is not nescessary anymore to install a ioncube encoder as you might have read in older threads.
4) If you will be sure that you do not get trouble with ssl certificates when you connect to the remoting service, choose "http" when you install ispconfig and not 'https'. This will make it easier to debug things and we can be sure that your problems are not caused by missing SSL support in the PHP that you use on the client side for your soap script.


All times are GMT +2. The time now is 04:18.

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