the problem occur when i send the command to create webspace from 127.0.0.1 on plesk server from php script
i use xml api to set operation in this order:
1 :
<packet>
<customer>
<add>
<gen_info>
....
</gen_info>
</add>
</customer>
</packet>
proceed normally and return result if i stop script here.
2: generated from php script
"<packet>
<webspace>
<add>
<gen_setup>
<name>".$customer->website."</name>
<owner-id>".$customer->id."</owner-id>
<htype>vrt_hst</htype>
<ip_address>".$customer->ip."</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>".$customer->ftp_login."</value>
</property>
<property>
<name>ftp_password</name>
<value>".$customer->ftp_passwd."</value>
</property>
<ip_address>".$customer->ip."</ip_address>
</vrt_hst>
</hosting>
</add>
</webspace>
</packet>
";
this is where the probleme append. after the call to create webspace, the navigator receive 502 bad gateway nginx..but the script still running, and webspace is created.
and all other operations are done by the script, normally.
so, it's still remain a problem. when you launch a command, from command line or navigator session, it's legitimate to expect that the server don't broke connection as it want..and receive at last returned error msg or anything wich make sense to the request..
the problem occur only when i call the script from http call by navigator..
when i launch the script from command line, as root, or user, like
/usr/bin/php script.php it run normaly and return results as expected.
php on domain calling xml api : PHP_VERSION 5.5.9-1ubuntu4.21 fastcgi served by apache.
i use PleskApiClient.php unmodified to call the api.
if you want to test, or investigate, i can set you open bar to my test server..