Re: Installation problems with PHP4, Apache, and IBM DB2
| From: | kerry at noc dot suntrix dot com | Date: | Thu, 21 Sep 2000 20:11:21 +0000 |
| Subject: | Re: Installation problems with PHP4, Apache, and IBM DB2 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3037@lists.php.net to get a copy of this message | ||
If you are using php4, I believe that ftp() would be a more viable option.
On Wed, Sep 20, 2000 at 05:05:24PM -0400 or thereabouts, craigs@pacelink.com wrote:
> Hi;
>
> I am trying to implement php4 as an apache module using IBM DB2 as a
> database - here are the specifics:
>
> Linux Redhat 6.1
> Kernel 2.2.16
> php-4.0.1pl2
> apache_1.3.12
> ibm-db2 7.1
> mod_ssl-2.6.5-1.3.12
> openssl-0.9.5a
>
> I had already had php4/apache/mysql up and running, but needed to switch to
> IBM db2, so this is what I have done:
>
> first for php4
> gmake clean
>
> ./configure --with-ibm-db2 --with-apache=../apache_1.3.12
> --enable-track-vars
>
> gmake depend
>
> gmake > compile.log (look at stderr only)
>
> got these warnings:
> In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42,
> from /usr/local/src/php-4.0.1pl2/ext/odbc/php_odbc.h:143,
> from internal_functions.c:38:
> /home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined
> /usr/local/src/php-4.0.1pl2/ext/odbc/php_odbc.h:37: warning: this is the
> locatio
> n of the previous definition
> In file included from /home/db2inst1/sqllib/include/sqlcli1.h:42,
> from php_odbc.h:143,
> from php_odbc.c:31:
> /home/db2inst1/sqllib/include/sqlcli.h:718: warning: `ODBCVER' redefined
> php_odbc.h:37: warning: this is the location of the previous definition
>
> It seemed like it built everything anyway, but...
>
> for apache
>
> /configure \
> > --prefix=/home/httpd/ \
> > --enable-module=ssl \
> > --activate-module=src/modules/php4/libphp4.a \
> > --enable-module=php4
>
> ... the usual stuff and then:
>
> + doing sanity check on compiler and options
> ** A test compilation with your Makefile configuration
> ** failed. The below error output from the compilation
> ** test will give you an idea what is failing. Note that
> ** Apache requires an ANSI C Compiler, such as gcc.
>
> ======== Error Output for sanity check ========
> ============= End of Error Report =============
>
> Aborting!
>
> If I go back and configure Mysql instead of IBM DB2 it configures and
> compiles with apache just fine. I couldn't find anything on this specific
> issue in the archives, so here I am.
>
> I really do need to get this project rolling (I know - everyone needs it
> yesterday).
>
>
> Thanks,
>
> Craig
>
> P.S. How do I configure a Data Source Name when I finally get this
> compliled (I believe that you are using the DB2 CLI interface)
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>