Sunday, August 27, 2017
Set up a DB2 Windows Apache PHP stack
Set up a DB2 Windows Apache PHP stack
This is a really quick guide. Feel free to ask questions in the comments or on the DB2 Express-C forum.
- Install DB2 Express-C
- Install Apache HTTP Server 2.2.x
- Install PHP 5.3.x (VC6, thread-safe)
- Get the compiled IBM_DB2 extension (VC6, thread-safe, not nts)
- Copy the unzipped DLL to the extensions directory of your PHP installation. For example:
C:Program FilesPHPext - Open the php.ini of your PHP installation. For example:
C:Program FilesPHPphp.ini - Add these lines at the end:
[IBM_DB2]
extension=php_ibm_db2.dll - Restart your web server:

- Create a text file in your Apache htdocs folder. For example, in:
C:Program FilesApache Software FoundationApache2.2htdocs - Call it test.php and paste the following into it:
<?php
echo phpinfo();
?> - Open http://localhost/test.php in your web browser
- If you see the following, your installation is ready for use:

Additional Resources
- DB2 Express-C forum
- PHP Development Tools - PHP Editor
- ibm_db2 API for PHP - Documentation
Cheers,
Leons Petrazickis
DB2 Express-C Community Team
download file now
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.