Zend Server User Guide > Tasks > Working with Libraries > Updating Libraries

Updating Libraries

This page describes how to manually check for, and install, available library updates for deployed libraries in Zend Server.

Note:

Only libraries with a defined Update URL in their XML descriptor file can be updated. For more information, see Update URL below.

 

 

Instructions on how to complete a procedure

To update your libraries:

  1. Manually check for updates:

To check available updates for all installed library families:

  1. In the UI, go to the Applications | Libraries page.
  2. In the Action bar, click .

Note:

This button will not be active if there are no libraries with an 'updateurl' value in their XML descriptor file deployed on Zend Server.

To available updates for a specific installed library family:

  1. In the UI, go to the Applications | Libraries page.
  2. Hover over, or select a library family, and click on the right.

Zend Server will check the update library repository for available updates. If there are any available updates, they are displayed in the Messages column in the Libraries list.

  1. In the Library Messages column, click Update.
    The Deploy Library wizard is displayed.

    Note:

    Zend Server will fail to download the library package if the Automatic Download feature is disabled. In this case, you will be directed to either enable the feature ('zend_deployment.auto_download' directive) from the Configurations | PHP page, or manually download the package for deployment.

  1. Zend Server downloads the library package. If this process fails, you can either retry, or manually download and deploy the library. Click Next.
    The License Agreement dialog displays.

    Note:

    The License Agreement dialog will only display if it was specified in the library package's descriptor XML file.

  1. Mark the ‘I have read and agree to the license agreement’ checkbox and click Next.
    The Prerequisites Validation dialog displays.

    Note:

    The Prerequisites Validation dialog will only display if parameters needing validation were defined in the library package's descriptor XML file.

  1. If your system does not qualify, an error message is displayed at the top of the dialog and the prerequisites in question appear in red. Click the link to open Zend Server in another tab in your browser, and then click after amending the specific dependencies.
    If all the parameters have been validated click Next.
    The Deployment Summary dialog opens.

  1. The Deployment Summary dialog displays the details of the library to be deployed and a summary of the parameters you have defined for the library. Select the Set as default version check-box to define the library as the default library version to be used by deployed applications with no specific library version call.
    To change anything on this page, click and change it on the dialog it appears.
    Otherwise, click to deploy your library.
    Your library is deployed and added to the Applications list on the Applications | Libraries page.

 

Note:

Zend Server automatically checks for available updates once a day, upon accessing the UI. If there are any available updates, you will be notified via the Notification Center.

Update URL

Only libraries that include an 'updateurl' value in their XML descriptor file can be updated.

The update URL runs the following script:

Usage Example

Update script:

<?php

header('Access-Control-Allow-Origin: *');

 

$result = array(

'version' => '2.2.0',

'downloadUrl' => 'http://downloads.zend.com/framework/2.2.0/ZendFramework-2.2.0.zpk',

'releaseNotes' => 'http://framework.zend.com/blog/zend-framework-2-2-0-stable-released.html'

);

echo json_encode($result);

?>

 

 

 

Related Links

Related Links:

Libraries

Libraries Page

Deploying Libraries

Redeploying Libraries

Removing Libraries

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.