Adding Extensions
This section includes information for the following Operating Systems:
-
Zend Server on UNIX/Linux
-
Zend Server for IBM i
Zend Server users can benefit from extension management capabilities for third party extensions as well as for Zend Extensions. This enables users to load and unload all extensions directly from the Zend Server Extensions page.
Important: The newly added extensions will be visible in the User Interface's PHP page however, the directive configuration option will not be active and directives belonging to the extension have to be configured directly from the php.ini file.
Disclaimer:
Zend Technologies does not provide support for third party products, including extensions. Therefore, if an issue for support arises, please remove all third party extensions by commenting out the reference to them in your php.ini before referring to the Support Center.
There are two types of extensions: PHP extensions and Zend extensions. The extension provider should supply information regarding the extension type (Zend or PHP). Make sure to also check the provider's documentation for possible compatibility issues, PHP version compatibility and any other additional configurations that may be required.
|
|
|
To add Zend extensions:
|
Note: If you try to load a PHP extension as a Zend extension in Linux, you may receive the following error message in your server's error log: "<extension_name> doesn't appear to be a valid Zend extension." If this occurs, remove it and add it as a PHP extension, following the instructions under To Add PHP Extensions, below. |
|
|
|
|
The extensions appear in your User Interface under the Extensions tab and you can use the User Interface to load and unload the extension. |
The following procedure describes how to download compiled extensions for Wndows DLL files.
Windows Note:
When downloading extensions for Windows from PECL, make sure to download the non thread-safe (NTS) version ONLY.
|
|
|
To download extensions:
For more information on these extensions, go to http://pecl4win.php.net/ . Note: The extensions in this site are thread-safe and therefore should not be downloaded for use with Zend Server . |
Note: Some extensions need directives to change the Extension's default configurations. These directives should be added added to your php.ini file manually. There is no way to predict which directives extensions may have: For each third party extension you want to add, make sure to go to the project's source site to check for additional information related to the extension. |
Under Unix/Linux operating systems you can also create and compile your own extensions using the phpize command.
Disclaimer:
External extensions are not supported by Zend. If you encounter a problem, remove any additional extensions before contacting Zend Support.
Building PHP extensions from source requires basic UNIX skills as well as several build tools, among others:
-
An ANSI C compiler
-
flex: Version 2.5.4
-
bison: Version 1.28 (recommended), 1.35, or 1.75
-
Any specific components or libraries required by the extension being built (such as gd, pdf libs, etc.)
|
|
|
To compile extensions from source:
cd <your_extension_directory> <install_path>/bin/phpize Ensure that you replace <your_extension_directory> with your extension directory's name.
./configure --with-php-config=<install_path>/bin/php-config\ --enable-shared Note: Some extensions will need additional configuration flags. It is therefore advised to run "./configure --help" and review the possible flags before compiling.
make make install Make install should install the new .so extension binary in Zend Server's extension directory.
extension=<my_extension_name>.so Replace <my_extension_name> with your extension's binary name.
|
The extension appears in your User Interface under the Extensions page and you can use the User Interface to load and unload the extension. |