Skip site navigation (1) Skip section navigation (2)

Re: building PHP Apache module with PostgreSQL support

From: "Andreas" <news(dot)Andreas(at)gmx(dot)net>
To: "Norman Vine" <nhv(at)cape(dot)com>, <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: building PHP Apache module with PostgreSQL support
Date: 2002-09-11 18:03:58
Message-ID: IOEFIOCBAFPGBCJCLFMEMEEOCDAA.news.Andreas@gmx.net (view raw or flat)
Thread:
Lists: pgsql-cygwin
> > I sucessfully installed Cygwin with Apache 1.3.24-5 and
> PostgreSQL 7.2.1-2
> > running as NT services on my WinXP machine. After this I wanted to check
> out
> > phpPgAdmin to play around with.
> > I installed the mod_php4 (4.2.0-1) package and modified Apache's
> httpd.conf
> > file but was not able to start Apache properly:
> > API module structure 'php4_module' in file
> > /usr/local/apache/libexec/libphp4.dll is garbled - perhaps this
> is not an
> > Apache module DSO?
> >
> > However, I think the precompiled mod_php4 bins doesn't support
> PostgreSQL
> > and downloaded the sources (apache-php-4.2.0-1-src.tar.bz2). I
> configured
> > PHP with the required options (after the steps described in
> > php-4.2.0-1.README):
> > ./configure --with-apxs --without-mysql --with-pgsql
>
> Andreas it was a while ago that I compiled my php extension
> but I seem to remember I had problems with apxs and had to
> statically link php into apache

Tried to build static module without pgsql (just to understand):

Thank you Norman for your response but I wasn't able to statically link php
into apache. The configure part seems to work properly but the following
make results in some error messages. I used the following commands:
  tar xjvf apache-php-X-Y-src.tar.bz2			[1]
  patch -p0 < php-X-Y/CYGWIN-PATCHES/php-X-Y.patch	[2]
  cd php-X-Y							[3]
  autoconf								[4]
  ./configure --with-apache=<path>/apache --without-mysql		[5]
  make								[6]
  make install							[7]
jumping to apache source dir:


./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/li
bphp4.a	[8]
  make								[9]

output after make:
  ...
  mod_php4.c:28: zend.h: No such file or directory
  mod_php4.c:29: php.h: No such file or directory
  mod_php4.c:30: php_variables.h: No such file or directory
  mod_php4.c:47: php_ini.h: No such file or directory
  mod_php4.c:48: php_globals.h: No such file or directory
  mod_php4.c:49: SAPI.h: No such file or directory
  mod_php4.c:50: php_main.h: No such file or directory
  mod_php4.c:52: zend_compile.h: No such file or directory
  mod_php4.c:53: zend_execute.h: No such file or directory
  mod_php4.c:54: zend_highlight.h: No such file or directory
  mod_php4.c:55: zend_indent.h: No such file or directory
  mod_php4.c:57: ext/standard/php_standard.h: No such file or directory
  make[4]: *** [mod_php4.o] Error 1
  make[3]: *** [all] Error 1
  make[2]: *** [subdirs] Error 1
  make[1]: *** [build-std] Error 2
  make: *** [build] Error 2

Does anyone know what's going on here?

I still have problems during 'configure' command of php when
using --with-pgsql option for both static and DSO module.

Andreas



In response to

pgsql-cygwin by date

Next:From: Buyung PamungkasDate: 2002-09-11 19:04:08
Subject: Why ? (couple questions about cygwin realibility)
Previous:From: Michel VerplanckeDate: 2002-09-11 16:00:21
Subject: PROBLEM with W2K installing postgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group