DEB Installation

In this Topic Hide

Automatically Installing Zend Server

Manually Installing Zend Server

Additional Packages

Post Installation Configuration

Upgrading Zend Server

Uninstalling Zend Server

This method uses "aptitude" to handle the installations, upgrades and additional packages. Alternatively, you may choose any other tool that supports the DEB packaging format (i.e., Synaptic, Kpackage, etc).

This method downloads files from the Internet and therefore requires that you have an active Internet connection, access to your distribution's repositories and root privileges for the server.

Note:

This procedure requires root privileges.
To acquire root privileges in Ubuntu, run the following command and type your password:
$ sudo -s.

Automatically Installing Zend Server

The following procedure describes how to run a script that will automatically create your DEB or RPM repositories and install Zend Server.

 

 

Instructions on how to complete a procedure

  1. Download the package called "Linux x86 Installer (RPM/DEB Setup Script)" from zend.com - http://www.zend.com/en/products/server/downloads

  2. Locate and extract the package:
    ZendServer-X.X.X-RepositioryInstaller-linux.tar.gz

  3. To change to the directory with the installer scripts run:
    cd ZendServer-RepositoryInstaller-linux/

  4. Depending on the PHP version, you want to use, run one of the following commands:

    • For Zend Server with PHP 5.2 Support run:
      install_zs.sh 5.2

    • For Zend Server with PHP 5.3 Support run:
       install_zs.sh 5.3

After installing, a completion notification will appear, with a notice that the servers have started.

To access the Administration Interface (Web) open your browser at: https://localhost:10082/ZendServer (secure) or http://localhost:10081/ZendServer.

Upon initial log in, you will be prompted to define your password.

Manually Installing Zend Server

To install Zend Server, the first thing you have to do is to setup the repository for downloading the Zend Server package.

 

 

Instructions on how to complete a procedure

To setup the environment:

1.Define a repository by opening the following file: /etc/apt/sources.list and adding the line:

deb http://repos.zend.com/zend-server/deb server non-free

3. Add Zend's repository public key by running:

# wget http://repos.zend.com/zend.key -O- |apt-key add -

If you are using sudo to run each command the next command requires using sudo following the '|' (pipe) symbol as follows:

# wget http://repos.zend.com/zend.key -O- | sudo apt-key add -

4.To synchronize with Zend's repository run:

# aptitude update

Now you can use "aptitude" to handle the installations, upgrades and additional packages.

 

 

Instructions on how to complete a procedure

To install:

1.Once the repository is set up, run the appropriate command according to the product version and PHP support you require:

To install Zend Server with PHP 5.2 run:

# aptitude install zend-server-php-5.2

To install Zend Server with PHP 5.3 run:

# aptitude install zend-server-php-5.3

2.Each package locates and downloads all relevant packages from the web.
The actual installation will require your conformation.

After installing, a completion notification will appear, with a notice that the servers have started.

To access the Administration Interface (Web) open your browser at: https://localhost:10082/ZendServer (secure) or http://localhost:10081/ZendServer.

Upon initial log in, you will be prompted to define your password.

Additional Packages

There are additional packages that can be added after installing Zend Server, using 'aptitude install'.

You can remove each package individually with the following command 'apt-get remove' and then the package name of the component you want to remove. To complete the removal process in the Zend Server Administration interface click "Restart PHP".

Description

PHP 5.2

PHP 5.3

Additional PHP extensions

php-5.2-extra-extensions-zend-server

php-5.3-extra-extensions-zend-server

Java bridge package (Requires Sun JRE 1.5, 1.6  or later installed on your computer. Therefore, if you do not already have JRE installed please install it before using the Java Bridge. More information about JRE’s and the latest updates are found in the SUN Website: http://java.sun.com/javase/downloads/index.jsp

(jre-6u21-linux-x64.bin)

php-5.2-java-bridge-zend-server

php-5.3-java-bridge-zend-server

The Zend Guard Loader for running PHP, encoded with Zend Guard.

php-5.2-loader-zend-server

php-5.3-loader-zend-server

A phpMyadmin meta package that installs phpMyAdmin and attaches it to the Administration Interface via a link from the Dashboard.

phpmyadmin-zend-server

phpmyadmin-zend-server

Zend Framework's bundled Dojo.

zend-server-framework-dojo

zend-server-framework-dojo

Zend Framework's extra components.

zend-server-framework-extras

zend-server-framework-extras

Full PHP sources, patched by Zend

php-5.2-source-zend-server

php-5.3-source-zend-server

Zend Server Control Panel

control-panel-zend-server

 

control-panel-zend-server

 

The following extensions require the IBM DB2 runtime client (RTCL):

PHP extension that enables access to the IBM DB2 Universal Database, IBM Cloudscape and Apache Derby databases.

php-5.2-ibmdb2-zend-server

php-5.3-ibmdb2-zend-server

PHP pdo_ibm extension.

php-5.2-pdo-ibm-zend-server

php-5.3-pdo-ibm-zend-server

You can download and install IBM's Runtime Client libraries from ftp://ftp.software.ibm.com/software/data/db2/express/

Post Installation Configuration

If you intend to use PHP and other tools provided by Zend Server (pear and pecl) from the command line (PHP CLI), it is recommended that you add the <install_path>/bin directory to your $PATH environment variable.

This can be done in two ways:

The following procedure is intended for use with bash. If you are using a different shell, adjust the procedure accordingly.

 

 

Instructions on how to complete a procedure

To add the <install_path>/bin directory to your $PATH environment variable per user profile:

  1. Using a text editor, open .bashrc (located in your home directory).

  2. Add the following lines to the end of the file:

PATH=$PATH:<install_path>/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib

Replace <install_path> with your Zend Server installation path.

  1. Save the file.

  2. In order for this to take effect, close and reopen your shell or run the following command:

source ~/.bashrc

You can now run the PHP binary provided by Zend Server without typing its full path.

 

 

Instructions on how to complete a procedure

To add the <install_path>/bin directory to your $PATH environment variable for all users:

  1. Log in as root or use sudo to execute the following commands.

  2. Using a text editor, open /etc/profile.

  3. Add the following lines to the end of the file:

PATH=$PATH:<install_path>/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib

Replace <install_path> with your Zend Server installation path.

  1. Save the file.

  2. In order for this to take effect, close and reopen your shell or run the following command:

source /etc/profile

You can now run the PHP binary provided by Zend Server without typing its full path.

Upgrading Zend Server

The following instructions describe how to upgrade Zend Server using 'aptitude'.

bulb.gifTo perform these actions you must have root privileges.

 

 

Instructions on how to complete a procedure

To upgrade all packages installed run:

# aptitude update

# aptitude upgrade

To upgrade only Zend packages, run:

# aptitude install `dpkg --get-selections|grep zend| awk -F " " '{print $1}' |xargs`

To upgrade Zend Server with PHP 5.2 run:

# aptitude install php-mcrypt-zend-server-php-5.2

To upgrade Zend Server with PHP 5.3 run:

# aptitude install php-mcrypt-zend-server-php-5.3

The upgrade process locates newer packages and downloads them.

Uninstalling Zend Server

The following instructions describe how to delete or uninstall using 'aptitude'.

bulb.gifTo perform these actions you must have root privileges.

 

 

Instructions on how to complete a procedure

To uninstall Zend Server (leaving the configuration files in place) run:

 # aptitude remove '~nzend.* '

To delete Zend Server from the system with no traces left run:

# aptitude purge '~nzend.* '

 

 

 

Related Links

Related Links:

Choosing Which Distribution to Install

Package Setup and Control Scripts

Using PECL

http://java.sun.com - External link