In this Topic Hide
This section includes information for the following Operating Systems:
Zend Server on UNIX/Linux
Zend Server Community Edition on UNIX/Linux/Mac
Zend Server for IBM i
Zend Server for IBM i 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 for IBM i Extensions page.
Important: The newly added extensions will be visible in the Administration Interface's Extensions 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 - http://www.zend.com/en/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." |
|
|
|
|
The extensions appear in your Administration Interface under the Extensions tab and you can use the Administration Interface to load and unload 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 for IBM i's extension directory.
extension=<my_extension_name>.so Replace <my_extension_name> with your extension's binary name.
|
|
The extension appears in your Administration Interface under the Extensions page and you can use the Administration Interface to load and unload the extension. |
|
|
Related Links: Configuring Zend Serverhttp://pecl4win.php.net/ - external link |
|
|
|