Installing Zend Server with Ansible

      5 Comments on Installing Zend Server with Ansible

This piece is a short tutorial on how to install Zend Server 8.5 using Ansible.

Zend Server is a complete and certified PHP stack with a wide variety of advanced features for developing, deploying and monitoring PHP apps. The latest version, Zend Server 8.5, was released a few months ago with a bunch of new features, including the Zend Gallery – an online marketplace for developing and sharing plugins that extend Zend Server that were developed by and for Zend Server users. Other interesting new features included multiple queues, a brand new UI, and more.

Ansible is an open source automation platform that can help you with configuration management, application deployment and task automation. It can also do IT orchestration, where you have to run tasks in sequence and create a chain of events which must happen on several different servers or devices.

Prerequisites

  • Ubuntu 14.04 and above

Step 1: Installing Ansible

Our first step is to install Ansible. If you already have Ansible installed and configured, skip to the next step.

To install Ansible, refer to the official Ansible docs at: http://docs.ansible.com/ansible/intro_installation.html

Step 2 : Installing Zend Server

Now that we’ve got Ansible installed and set up, we can install Zend Server. To do this, first enter the following command to download the Zend Server role (the role was prepared by Hardie Boeve and is available here):

Next, we’re going to create the Zend Server playbook. Create a new file called ‘zend-server.yml’.

In this file place the following lines:

We can now run the playbook and install Zend Server. Run the following command:

Once the playbook finishes to execute, Zend Server is installed! You will see a notification in your CLI informing you that Zend Server was installed correctly.

Step 3 : Launching Zend Server

Last but not least, let’s launch Zend Server. To do this, open your browser, and use the server IP address together with the port the Zend Server UI listens on:

Your browser will display the Zend Server Launch wizard. Complete the wizard as described here, and you’re set to go!

More Info

Hardie also prepared an example playbook you can play around with:

https://github.com/boeve-web-development/ansible-role-zend-server/tree/master/example

For more information on how to use Zend Server, check out the online docs at:

http://files.zend.com/help/Zend-Server/content/home.htm