Date: Fri, 29 Mar 2024 14:24:17 +0000 (UTC) Message-ID: <1357783703.478.1711722257341@library.aws.roguewave.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_477_801376499.1711722257340" ------=_Part_477_801376499.1711722257340 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Zend Server v.6 and up
Lin=
ux Platforms (According to System Requirements)<=
br>zs-manage.sh - available in all versi=
ons
zs-client.sh - available starting=
from v.8, and also as a Github community project called ZendServerSDK
Zend Server provides Web API infrastructure for most of its management f=
eatures.
In addition to the Admin UI in browser, which is available on =
span>http://hostname:10081 and =
span>https://hostname:10082, many tasks for initial launch, c=
onfiguration, deployment, restart and so on can be performed from good old =
Command Line.
Starting with zs-manage.sh, which res=
ides under /usr/local/zend/bin&nbs=
p;(I recommend to place this quickly in your system / user profile $PATH for everyday use)=
.
zs-manage.sh was introduced in Zend=
Server for automating environments, such as development servers and cloud =
systems.
When you execute it with "help" parameter, you will get the complete set of=
commands and options.
You can use zs-manage.sh for kick-starting a Zend Server installation, by performing a Bootstrap =
(Initial Launch) with parameters such as admin password (and developer pass=
word if you are on Zend Server edition which is NOT "Developer", where=
the admin user is basically a developer by nature), License order number a=
nd key, Accepting EULA (just say TRUE for yes) and more.
In response to successful bootstrap, you get as output a freshly generated =
Admin Web API key, which is also available in the Zend Server Admin UI unde=
r Administration -> Web API.
Once you have a bootstrapped (launched) Zend Server, you can keep the ad=
min Web API key for performing additional manual / automated tasks from
A real world example now. This will store a memory limit direc= tive for OPCache on PHP 5.5 (earlier version is called Zend Optimizer Plus)= , and restart PHP to take effect:
To apply many configuration changes at once, you can manually edit the r= elevant set of ini files on the server, and once done, apply the changes to= the configuration blueprint, as shown below. If the ini changes are not ap= plied via "config-apply-changes" command, you will get conflict notificatio= n messages in the admin UI, and, to resolve the the conflicts, Zend Server = will rewrite your modifications at a later time. Make sure your new directi= ves/values are modified properly, so you don't get any errors or problems l= oading components (alas, logs are the admin's best friends).
Sounds complicated to manage multiple servers... Now, you are probably a= sking yourself, can this be modernized a little bit? Or, Directly Manage mu= ltiple Zend Server endpoints in the CLI tool? Or, how to utilise more Web A= PIs which are provided by Zend Server backend?
OK. You asked for it, You got it!
This is where zs-client.sh =
span>comes in to the rescue.
Since version 8 of Zend Server, you no longer need to GIT CLONE the Zend=
ServerSDK (unless you want bleeding edge or newer branch) from Github.
It is officially packaged under /usr/local/zend/bin=
em> (or already in your system / profile $PATH, if you read the first part).
zs-manage.sh leverage a huge set of Web APIs from Zend Server and can be us=
ed on multiple Zend Server targets out of the box.
This is how the above example is accomplished with zs-client, with the addi=
tional option to add a new Zend Server target, and use instantly with all a=
vailable Web APIs:
You can review complete usage of zs-client.sh by running the command wit= hout parameters.
Output Format: By default, XML is returned as output from the Web API me= thods. You can also choose KV (Key->Value) and JSON, if it helps you par= se or save the responses better. Add the command params for output as= --output-format=3Dxml|json|kv
Further Adventures, if you chose the Red Pill:
You can check the Zend-Patterns@Github repos to find out some n= icely done integrations with Puppet, Chef, Vagrant, Docker and more Configu= ration Management systems. There are quite a lot of Z-Ray extensions there = to get for your favorite PHP apps. The Integrations with CI / CM / CD syste= ms are merely calling Zend Server CLI inside other systems flows, so if you= 're one of the lucky people who happens to own a DevOps consultancy shop (o= r dream about it while coding PHP in Zend Studio), and happen to own Zend S= erver as well, you can create some magic to save great deal of time while a= utomatically provisioning all kinds of Zend Server installations with appli= cations, libraries, configuration and more. Be sure to check our = ;Con= tinuous Delivery Blueprint on your next visit to zend.com= a>, if you're interested (not hard to find :)
Zend Server Web API Reference
Zend Server SDK on Zend-Patterns@=
Github
Zend Server Web API Module for Zend Framework 2
Zend Server Edition=
for Production
Zend Server Editions for Development