30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

restartPHP<br />

This method restarts PHP on all servers or on specified servers in the cluster. A 202 response in this case<br />

does not always indicate a successful restart of all servers. Use the clusterGetServerStatus command to<br />

check the server(s) status again after a few seconds.<br />

Required Permissions: full<br />

HTTP method: POST<br />

Supported by Editions: All<br />

Request Parameters:<br />

Parameter Type Required Description<br />

servers Array No A list of server IDs to restart. If not specified, all servers<br />

370<br />

in the cluster will be restarted. In a single Zend Server<br />

context this parameter is ignored.<br />

parallelRestart Boolean No Sends the restart command to all servers at the same<br />

Expected Response Code: 202 Accepted<br />

time. The default value is "FALSE".<br />

Response Type: serversList with the status of all servers to which the restart command was requested<br />

(i.e. the servers provided in the servers parameter or all servers if no servers are specified).<br />

Possible Action Specific Error Codes:<br />

HTTP<br />

Code<br />

Error Code Description<br />

404 noSuchServer One or more of the provided server IDs does not exist. In this case, no<br />

servers are restarted.<br />

500 restartFailed Restarting at least some of the servers failed. This response is only<br />

possible when working with a cluster.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!