Sign inSign up

oems/apache-php-ibm_db2

By oems

•Updated over 10 years ago

FROM php:5.5.32-apache with ibm_db2 connector for DB2 database.

Image
3

10K+

oems/apache-php-ibm_db2 repository overview

⁠IBM DB2, Cloudscape and Apache Derby support with Module release 1.9.7 for PHP.

Docker PHP-APACHE with the PECL ibm_db2 module configured.

FROM php:5.5.32-apache
MAINTAINER [email protected]

ADD /ibm_data_server_driver_package_linuxx64_v10.5.tar.gz /opt/ibm/

RUN      export IBM_DB_HOME=/opt/ibm/dsdriver && \
         apt-get update && apt-get -y install php-pear ksh zip && \
         ksh /opt/ibm/dsdriver/installDSDriver && \
         env IBM_DB_HOME=/opt/ibm/dsdriver && \
         pecl install ibm_db2 && \
         echo "extension=ibm_db2.so" > /usr/local/etc/php/conf.d/ibm_db2.ini
⁠How to use this image.

Run PHP in conjunction with Apache httpd. Conveniently, there's a version of the PHP container that's packaged with the Apache web server.

⁠Without a Dockerfile

If you don't want to include a Dockerfile in your project, it is sufficient to do the following:

$ docker run -d -p 80:80 --name my-apache-php-db2 -v "$PWD":/var/www/html oems/apache-php-ibm_db2

Tag summary

Content type

Image

Digest

Size

283.8 MB

Last updated

over 10 years ago

docker pull oems/apache-php-ibm_db2