Getting Started with Zend Server for IBM i

In this Topic Hide

What to do After Installing Zend Server for IBM i

Run the Administration Interface

Configure Your Password

Check Apache

Run a Test on Your Web Server

Configure Debugger Access Control

Zend Server for IBM i is a tool that requires a minimal amount of actual interaction with the Administration Interface. Once your environment is setup, apart from occasionally logging in to view your system settings or your php.ini, there are not many day-to-day activities that require the Administration Interface.

The first point of reference for working with Zend Server for IBM i is what to do after installation.

What to do After Installing Zend Server for IBM i

The following section describes the tasks that should be performed after installing Zend Server for IBM i for the first time.
These tasks cover all the different installation types (DEB, RPM,and Windows). Each task is accompanied by a description of its purpose and the expected results.

Run the Administration Interface

Purpose: To verify the installation and that the Administration Interface is accessible.

Result: the Administration Interface opens in a browser.

The Administration Interface is a Web interface that runs through a browser.
This procedure describes how to view the Administration Interface.

 

 

Instructions on how to complete a procedure

To view the Administration Interface:

  1. To run Zend Server for IBM i locally, open a browser and enter the following URL:
      For IBM i: http://IBM_i_hostname:10088/ZendServer
    If you are using a remote connection, replace localhost with your Host Name or IP.

  2. The Zend Server for IBM i login screen opens and prompts you to set a password.
    This screen only appears once and is not displayed again after your password is set.

The next time you log in to Zend Server for IBM i, you are prompted for the password you set the first time you opened Zend Server for IBM i.

Configure Your Password

Purpose: To ensure that you can access the Administration Interface.

Result: Your password is created.

 

When you first run Zend Server for IBM i, the registration screen is displayed. Define your Zend Server for IBM i login password in this screen.

To view the different password management options, click Password Management.

Check Apache

Purpose: To verify that Apache is running.

Result: System confirmation.

This procedure describes how to check if the Apache Web server is running.

 

 

Instructions on how to complete a procedure

To check if the Apache server is running:

IBM i: from the command line, run WRKACTJOB JOB(ZENDSVR)_

A notification with the Apache server status is displayed.

Run a Test on Your Web Server

Purpose: To verify that the installed Web server is running properly.

Result: The "Hello World" message is displayed in your browser.

This procedure describes how to run a test PHP script.

 

 

Instructions on how to complete a procedure

To run a simple test script:

  1. Create a file called hello.php

  2. Enter the following code into the file:

<?php
echo "Hello World";
?>
 

The "Hello World" message is displayed when the code runs in a browser.

  1. Save the file in your Apache document root directory /www/zendsvr/htdocs. Only files in this directory are serviced by the Web server. For information about the document root directory, see Deploying Code with Zend Server.

  2. Open a browser and enter the following URL: http://localhost:<port number>/hello.php.
    Replace <port number> with the port you are using. The default values are port 80 for Windows DEB and RPM and port 10088 for the other operating systems unless you manually changed the port assignment.

Your browser displays the "Hello World" message.

Configure Debugger Access Control

Purpose: To enable PHP debugging using Zend Studio and Zend Server for IBM i.

Result: You are able to debug your PHP code and view the results in Zend Studio.

Before working with the Debugger, configure the allowed hosts in Server Setup | Debugger.

Note:

By default, Zend Server for IBM i comes with a permissive setting that allows all standard private IP addresses (for example 10.*.*.*) to access the Debugger. For security reasons, if you do not have an immediate need for permissive access, remove these ranges from the Allowed Hosts: 10.*.*.*  / 192.168.*.*  / 172.16.*.*.

Additional setup information can be found in the Installation Guide, in Package Setup and Control Scripts.

 

 

Related Links

Related Links:

Working with Zend Server

Password Management