Hi there, im spanish so expect some text faults Im desesperated, i have been 2 days trying to run the remoting framework test.php and i have no results. Googled a lot, searched this forum, followed dieferent solutions and didnt found it. I followed the Perfect server setup for the last openSuse 64bits with ISPConfig 2. I have the Curl module running, tested. ...and simply when run test.php, the "script end...". No error, absolutely nothing. I used the last remoting framework in the ispconfig web. Can anyone give me any suggestion to make it work? PD: remote user, pass, ips, are fine.
ISPConfig version: 2.2.37 Remoting Framework version: beta 4.2.1 I have to correct that i dont hace Curl enabled in the ISPConfig php setup, i was doing test by the terminal. Do should i remove and reinstall ISPConfig with Curl? I supposed i was necesary only to access by SSL and thats not my case. Regards
After a SIPConfig reinstall i decided to debug all code i can from a simple remoting framework request. Here is the code i execute (from command line by: php5 -f test.php). PHP: include("soap.lib.php"); //phpinfo(); // Insert here your 42go Server $server_url = "http://localhost:81"; // creating object for soap_client $soap_client = new soap_client($server_url.'/remote/index.php',false); // Username and Password of the remoting user (not identical // with the user to log into the web interface!) $parameters = array('user' => 'admin', 'pass' => 'admin'); // Login into 42go Server $session_id = $soap_client->call('login',$parameters); //print_r ($soap_client); // Error Check if($err = $soap_client->getError()) die("Error: ".$err); else print_r ($soap_client); // User List $params = array ( 'sid' => $session_id, 'module' => 'web', 'function' => 'user_list', 'params' => array ( 'web_title' => 'www.pruebas.com' // web_title or web_id )); $users = $soap_client->call('service',$params); if($err = $soap_client->getError()) die("Error: ".$err); print_r($users); And this is the error i found inspecting the soap_client object created: PHP: soap_client: got response, length: 206 soap_client: Entering parseResponse(), about to create soap_parser instance soap_client: soap_parser: Entering soap_parser() soap_parser: parse error: XML error on line 2: Invalid document end ... <b>Catchable fatal error</b>: Object of class soap_fault could not be converted to string in <b>/home/admispconfig/ispconfig/lib/classes/ispconfig_soap.obj.php</b> on line <b>2000</b><br /> XML and SOAP modules appears to be loaded, "php5 -m" confirms this. Any idea? I gonna try another ispconfig 2 version.
Try remoting framework 4.2.2 http://www.howtoforge.com/forums/showpost.php?p=240200&postcount=46 At the end of the example script there is a debug part, which generally allows to see what's the problem.
IT WORKS!!! Im still with the ISPConfig version: 2.2.37. I only have some warnings about soap module in example, its getting systems default timezone and im near sure its fixed by setting default timezone in .htaccess or vhost conf. I not tried yet. Thanks!!!