<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Configuring PHP 5 with IBM HTTP Server, WebSphere Application Server, and DB2 UDB</title>
	<atom:link href="http://krook.net/php-ihs-websphere-db2/feed" rel="self" type="application/rss+xml" />
	<link>http://krook.net</link>
	<description>Daniel Krook is an IBM Certified IT Specialist based in the greater New York City area. He has over ten years experience in Web application development and presently builds a cloud infrastructure for IBM using Java EE, DB2, REST, and BlackBerry. He holds certifications in cloud archtecture, PHP, Java EE, BlackBerry, DB2, and Solaris. He occasionally writes PHP-related articles for IBM developerWorks and co-authored the IBM Redbook &#039;Developing PHP Applications for IBM Data Servers.&#039;</description>
	<lastBuildDate>Sat, 17 Mar 2012 10:08:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Daniel Krook</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-103170</link>
		<dc:creator>Daniel Krook</dc:creator>
		<pubDate>Mon, 11 Apr 2011 19:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-103170</guid>
		<description>Hi Oscar,

That resource that you linked to seems to have some old information.

Fortunately, it should be pretty simple to connect the Apache, PHP, and DB2 you already have installed.

First, if you don&#039;t already have it, grab the latest threadsafe ibm_db2 extension for PHP 5.2 from SourceForge:
http://sourceforge.net/projects/db2mc/files/IBM_DB2%20PHP%20Driver%20for%20Windows/PHP%205.2._/

Then, copy the DLL to your PHP extensions directory.  Mine was C:\PHP\ext as I specified in my php.ini file.

Finally, I added the module to php.ini and restarted Apache.  You may have to restart Windows if it still doesn&#039;t pick up the extension.

extension_dir=&quot;c:\PHP\ext&quot;
extension=php_ibm_db2.dll

Hope that helps,
-Dan</description>
		<content:encoded><![CDATA[<p>Hi Oscar,</p>
<p>That resource that you linked to seems to have some old information.</p>
<p>Fortunately, it should be pretty simple to connect the Apache, PHP, and DB2 you already have installed.</p>
<p>First, if you don&#8217;t already have it, grab the latest threadsafe ibm_db2 extension for PHP 5.2 from SourceForge:<br />
<a href="http://sourceforge.net/projects/db2mc/files/IBM_DB2%20PHP%20Driver%20for%20Windows/PHP%205.2._/" rel="nofollow">http://sourceforge.net/projects/db2mc/files/IBM_DB2%20PHP%20Driver%20for%20Windows/PHP%205.2._/</a></p>
<p>Then, copy the DLL to your PHP extensions directory.  Mine was C:\PHP\ext as I specified in my php.ini file.</p>
<p>Finally, I added the module to php.ini and restarted Apache.  You may have to restart Windows if it still doesn&#8217;t pick up the extension.</p>
<p>extension_dir=&#8221;c:\PHP\ext&#8221;<br />
extension=php_ibm_db2.dll</p>
<p>Hope that helps,<br />
-Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar Andrade</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-103056</link>
		<dc:creator>Oscar Andrade</dc:creator>
		<pubDate>Sun, 10 Apr 2011 03:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-103056</guid>
		<description>Operating System Windows XP Home Edition

I installed:
Apache 2.2.8
PHP 5.2.5
DB2 C Express v9.7 (catalog databse installed in the same machine as Apache and PHP)

I installed and configured Apache and PHP. Both were tested and work 
fine together.
I installed DB2 without problems.

When I tried to configure PHP to work with DB2 I followed the instructions
from:

http://www.ibm.com/developerworks/xml/tutorials/x-xmldbjavaphp/section3.html

it went through without problems until the section:

**************************************************************************************
Connecting to DB2 with PHP: Setup                                         
                                                                          
Before you can begin coding in PHP, you need to configure PHP with the IBM_DB2 module.      

                                                       
                                                                          
Click the speedometer in the system tray. Then click PHP Settings &gt; PHP extensions and 

select php_ibm_db2 from the long list, as in Figure 13.    
                                                                          
**************************************************************************************

I have problems trying to find the speedometer in the system tray.
Is the system tray of my machine? or maybe I looked in the wrong place.

Can you please tell me how to find it. Or how to get to configure PHP with
the IBM_DB2 module in another way?

I will appreciate your response to solve this problem.


Thanks and regards,
Oscar G. Andrade.</description>
		<content:encoded><![CDATA[<p>Operating System Windows XP Home Edition</p>
<p>I installed:<br />
Apache 2.2.8<br />
PHP 5.2.5<br />
DB2 C Express v9.7 (catalog databse installed in the same machine as Apache and PHP)</p>
<p>I installed and configured Apache and PHP. Both were tested and work<br />
fine together.<br />
I installed DB2 without problems.</p>
<p>When I tried to configure PHP to work with DB2 I followed the instructions<br />
from:</p>
<p><a href="http://www.ibm.com/developerworks/xml/tutorials/x-xmldbjavaphp/section3.html" rel="nofollow">http://www.ibm.com/developerworks/xml/tutorials/x-xmldbjavaphp/section3.html</a></p>
<p>it went through without problems until the section:</p>
<p>**************************************************************************************<br />
Connecting to DB2 with PHP: Setup                                         </p>
<p>Before you can begin coding in PHP, you need to configure PHP with the IBM_DB2 module.      </p>
<p>Click the speedometer in the system tray. Then click PHP Settings &gt; PHP extensions and </p>
<p>select php_ibm_db2 from the long list, as in Figure 13.    </p>
<p>**************************************************************************************</p>
<p>I have problems trying to find the speedometer in the system tray.<br />
Is the system tray of my machine? or maybe I looked in the wrong place.</p>
<p>Can you please tell me how to find it. Or how to get to configure PHP with<br />
the IBM_DB2 module in another way?</p>
<p>I will appreciate your response to solve this problem.</p>
<p>Thanks and regards,<br />
Oscar G. Andrade.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toine</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-72274</link>
		<dc:creator>Toine</dc:creator>
		<pubDate>Thu, 11 Jun 2009 22:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-72274</guid>
		<description>Thx for the information.

I changed it a bit to a New version.

Very important is that the Development tools Are installed when installing DB2 express. So when installing select custom  or Full.

&#039;./configure&#039; &#039;--with-apxs2=/opt/IBM/HTTPServer/bin/apxs&#039; &#039;--prefix=/usr/local/php&#039; &#039;--with-gd=shared&#039; &#039;--with-zlib&#039; &#039;--enable-ftp&#039; &#039;--with-libxml-dir=/usr&#039; &#039;--with-mysql=/usr/bin/mysql&#039; &#039;--with-mysqli=/usr/bin/mysql_config&#039; &#039;--with-pdo-odbc=ibm-db2&#039; &#039;--with-IBM_DB2=/opt/ibm/db2/V9.5/&#039;


regards Toine Eetgerink</description>
		<content:encoded><![CDATA[<p>Thx for the information.</p>
<p>I changed it a bit to a New version.</p>
<p>Very important is that the Development tools Are installed when installing DB2 express. So when installing select custom  or Full.</p>
<p>&#8216;./configure&#8217; &#8216;&#8211;with-apxs2=/opt/IBM/HTTPServer/bin/apxs&#8217; &#8216;&#8211;prefix=/usr/local/php&#8217; &#8216;&#8211;with-gd=shared&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;enable-ftp&#8217; &#8216;&#8211;with-libxml-dir=/usr&#8217; &#8216;&#8211;with-mysql=/usr/bin/mysql&#8217; &#8216;&#8211;with-mysqli=/usr/bin/mysql_config&#8217; &#8216;&#8211;with-pdo-odbc=ibm-db2&#8242; &#8216;&#8211;with-IBM_DB2=/opt/ibm/db2/V9.5/&#8217;</p>
<p>regards Toine Eetgerink</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Klein</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-3379</link>
		<dc:creator>Adam Klein</dc:creator>
		<pubDate>Wed, 13 Dec 2006 20:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-3379</guid>
		<description>Daniel,

I&#039;ve been struggling with building PHP-5.2.0 on a SPARC T2000  with Solaris 10 and IHS 6.0.2 for a few days.  I finally solved the configure and make problems by  commenting out the sections of the configure script that check the Apache version for apxs.  By forcing it to accept IHS6&#039;s httpd -v version string as valid (which uses the apache version number, not the date - which is what the configure script checks), I got a successful build and install.

A very useful tip is to do &#039;make -j 32&#039; on a T2000.  It&#039;s _MUCH_ faster.</description>
		<content:encoded><![CDATA[<p>Daniel,</p>
<p>I&#8217;ve been struggling with building PHP-5.2.0 on a SPARC T2000  with Solaris 10 and IHS 6.0.2 for a few days.  I finally solved the configure and make problems by  commenting out the sections of the configure script that check the Apache version for apxs.  By forcing it to accept IHS6&#8242;s httpd -v version string as valid (which uses the apache version number, not the date &#8211; which is what the configure script checks), I got a successful build and install.</p>
<p>A very useful tip is to do &#8216;make -j 32&#8242; on a T2000.  It&#8217;s _MUCH_ faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smith</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-3234</link>
		<dc:creator>Smith</dc:creator>
		<pubDate>Sun, 10 Dec 2006 05:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-3234</guid>
		<description>Thank for making this valuable information available to the public.</description>
		<content:encoded><![CDATA[<p>Thank for making this valuable information available to the public.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krook</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-2527</link>
		<dc:creator>krook</dc:creator>
		<pubDate>Fri, 17 Nov 2006 14:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-2527</guid>
		<description>Mike,

I&#039;ve noticed that my blog package seems to convert double-hyphens to m-dashes in my code snippets, so the &quot;configure&quot; command may be broken for you.  This is probably why your PHP build is looking for Apache 2 instead of IHS, because it can&#039;t make sense of the &quot;with-apxs&quot; flag.  

Convert the m-dashes to double hyphens before each of the &quot;with&quot; flags and see if that fixes the problem.</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I&#8217;ve noticed that my blog package seems to convert double-hyphens to m-dashes in my code snippets, so the &#8220;configure&#8221; command may be broken for you.  This is probably why your PHP build is looking for Apache 2 instead of IHS, because it can&#8217;t make sense of the &#8220;with-apxs&#8221; flag.  </p>
<p>Convert the m-dashes to double hyphens before each of the &#8220;with&#8221; flags and see if that fixes the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Adams</title>
		<link>http://krook.net/php-ihs-websphere-db2/comment-page-1#comment-2508</link>
		<dc:creator>Mike Adams</dc:creator>
		<pubDate>Fri, 17 Nov 2006 05:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://krook.net/php-ihs-websphere-db2/#comment-2508</guid>
		<description>Daniel - I have been trying to get this to work with IHS 1.3.26.

I make it all the way to the make command. when I run make i get a bunch of similar messages as follows.

/downloads/php/php-ihs/php-src/php-4.4.4/sapi/apache2handler/sapi_apache2.c:38:25: apr_strings.h: No such file or directory

Is there anything I can do to solve this?</description>
		<content:encoded><![CDATA[<p>Daniel &#8211; I have been trying to get this to work with IHS 1.3.26.</p>
<p>I make it all the way to the make command. when I run make i get a bunch of similar messages as follows.</p>
<p>/downloads/php/php-ihs/php-src/php-4.4.4/sapi/apache2handler/sapi_apache2.c:38:25: apr_strings.h: No such file or directory</p>
<p>Is there anything I can do to solve this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

