I'm working on some AMI with pre-installed Zend Server CE.
Images have all the repositories configured and have most the extensions you would ever need.Should save you some time setting it all.
Manifest: zend/zend-server-ce-4.0.3-32bit-20090707.manifest.xm
AMI ID: ami-51e30238
Foo Bar doom
My random post on anything related.
Tuesday, July 7, 2009
Tuesday, March 24, 2009
Friday, March 20, 2009
Zend Server Beta2 is out
Just FYI the update is out. The OSX update is not yet there as for March 20th ,but it's already in the pipe.
Wednesday, March 4, 2009
Friday, February 20, 2009
Building Oracle Extension for Zend Server PHP on MacOSX
Update: Zend is planing to include OCI8 extension in GE version .
Following are the required steps , tested on up to date MacBook.
Thanks to Danilo Vizzarro site for very good examples
http://www.danilovizzarro.it/2008/07/how-to-install-php5-oci8-the-oracle-client-v102-and-sqlplus-on-macos-x-leopard-1054/
1.First requirement is Xcode from Apple site. Xcode installs Unix build tools .Default installation of XCode will take care of the build environment. GCC and the CLI environment variables.
To download Xcode free online ADC Membership. If you are already a member, log in with your ADC Member Apple ID and password.
http://developer.apple.com/technology/xcode.html
2.Second requirement is Oracle Instant Client Libraries needed for correct compilation of OCI8 extension.
You will need to packages:
instantclient-basic-macosx-10.2.0.4.0.zip (34,020,719 bytes)
instantclient-sdk-macosx-10.2.0.4.0.zip (603,493 bytes)
Download from the following page at Oracle website: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html
3.You will have to create directory on you system where Oracle libraries will reside .Unpack previously downloaded OIC and SDK files at this dedicated folder.
mkdir -p /opt/oracle
cd /opt/oracle
cp /Users/nick/Desktop/instant*.zip /opt/oracle
unzip \*.zip
cd /opt/oracle/instantclient_10_2
You also need to link two files otherwise you will not be able to build the extension.
cd /opt/oracle/instantclient_10_2
ln -s libclntsh.dylib.10.1 libclntsh.dylib
ln -s libocci.dylib.10.1 libocci.dylib
[b]4.PECL comes very handy at this point. Download and build the extension using PECL as previously mentioned by Shahar.[/b]
cd /Applications/ZendServer/bin/
sudo ./pecl install oci8
You will be requested to provide path to ORACLE_HOME
1. Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client : autodetect
1-1, 'all', 'abort', or Enter to continue:
Type 1 and then provide it with
instantclient,/opt/oracle/instantclient_10_2
PECL will take care of all the rest and the oci8.so will be placed at the extension folder.
/Applications/ZendServer/lib/php_extensions
5.Unfortunately I wasn't able to find a way compile OCI8 to be a separate,no library dependant extension.Oracle Client libraries required be located in DYLD_LIBRARY_PATH and oci8 extension will not load without them. If you think about compiling the extension and then moving it to other machine , libraries will have to be installed as well.
6.Final very important issue related to the DYLD_LIBRARY_PATH issue mentioned before.At first Oci8 extension if enabled will prevent Apache from starting and you will get large red error in the GUI.
"Failed to access Web server. Please make sure that the Web server is running and listening to the correct port"
Without going into too many details why oci8.so is linked to external files and why is it preventing Apache from starting .Workaround is to add so called ORACLE_HOME to DYLD_LIBRARY_PATH environment of the Apache server.
Edit in text editor /Applications/ZendServer/apache2/bin/envvars and change
DYLD_LIBRARY_PATH="/Applications/ZendServer/apache2/lib:$DYLD_LIBRARY_PATH" to
DYLD_LIBRARY_PATH="/Applications/ZendServer/apache2/lib:/opt/oracle/instantclient_10_2:$DYLD_LIBRARY_PATH"
Stop and Start Apache
[code]sudo /Applications/ZendServer/apache2/bin/apachectl stop[/code]
[code]sudo /Applications/ZendServer/apache2/bin/apachectl start[/code]
7.Enable oci8 from Zend Server GUI and check PHPINFO , extension should be loaded and you should be good to connect Oracle Databases
Following are the required steps , tested on up to date MacBook.
Thanks to Danilo Vizzarro site for very good examples
http://www.danilovizzarro.it/2008/07/how-to-install-php5-oci8-the-oracle-client-v102-and-sqlplus-on-macos-x-leopard-1054/
1.First requirement is Xcode from Apple site. Xcode installs Unix build tools .Default installation of XCode will take care of the build environment. GCC and the CLI environment variables.
To download Xcode free online ADC Membership. If you are already a member, log in with your ADC Member Apple ID and password.
http://developer.apple.com/technology/xcode.html
2.Second requirement is Oracle Instant Client Libraries needed for correct compilation of OCI8 extension.
You will need to packages:
instantclient-basic-macosx-10.2.0.4.0.zip (34,020,719 bytes)
instantclient-sdk-macosx-10.2.0.4.0.zip (603,493 bytes)
Download from the following page at Oracle website: http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html
3.You will have to create directory on you system where Oracle libraries will reside .Unpack previously downloaded OIC and SDK files at this dedicated folder.
mkdir -p /opt/oracle
cd /opt/oracle
cp /Users/nick/Desktop/instant*.zip /opt/oracle
unzip \*.zip
cd /opt/oracle/instantclient_10_2
You also need to link two files otherwise you will not be able to build the extension.
cd /opt/oracle/instantclient_10_2
ln -s libclntsh.dylib.10.1 libclntsh.dylib
ln -s libocci.dylib.10.1 libocci.dylib
[b]4.PECL comes very handy at this point. Download and build the extension using PECL as previously mentioned by Shahar.[/b]
cd /Applications/ZendServer/bin/
sudo ./pecl install oci8
You will be requested to provide path to ORACLE_HOME
1. Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client : autodetect
1-1, 'all', 'abort', or Enter to continue:
Type 1 and then provide it with
instantclient,/opt/oracle/instantclient_10_2
PECL will take care of all the rest and the oci8.so will be placed at the extension folder.
/Applications/ZendServer/lib/php_extensions
5.Unfortunately I wasn't able to find a way compile OCI8 to be a separate,no library dependant extension.Oracle Client libraries required be located in DYLD_LIBRARY_PATH and oci8 extension will not load without them. If you think about compiling the extension and then moving it to other machine , libraries will have to be installed as well.
6.Final very important issue related to the DYLD_LIBRARY_PATH issue mentioned before.At first Oci8 extension if enabled will prevent Apache from starting and you will get large red error in the GUI.
"Failed to access Web server. Please make sure that the Web server is running and listening to the correct port"
Without going into too many details why oci8.so is linked to external files and why is it preventing Apache from starting .Workaround is to add so called ORACLE_HOME to DYLD_LIBRARY_PATH environment of the Apache server.
Edit in text editor /Applications/ZendServer/apache2/bin/envvars and change
DYLD_LIBRARY_PATH="/Applications/ZendServer/apache2/lib:$DYLD_LIBRARY_PATH" to
DYLD_LIBRARY_PATH="/Applications/ZendServer/apache2/lib:/opt/oracle/instantclient_10_2:$DYLD_LIBRARY_PATH"
Stop and Start Apache
[code]sudo /Applications/ZendServer/apache2/bin/apachectl stop[/code]
[code]sudo /Applications/ZendServer/apache2/bin/apachectl start[/code]
7.Enable oci8 from Zend Server GUI and check PHPINFO , extension should be loaded and you should be good to connect Oracle Databases
OCI8 from PECL for Zend Server.
Last few hours I was trying to compile oci8 for Zend Server on my MacBook.
I was able to do it , instructions will follow.
I was able to do it , instructions will follow.
Thursday, January 1, 2009
Subscribe to:
Posts (Atom)