Alexis Lee wrote:
Did you build it the right way? You have to set some options or something to make it build as an Apache module. I think it builds as a CGI executable by default.
Thanks for the reply. I built it - - with - pgsql - - with - apxs as per the documentation, but i got the errors: "sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (- - enable-modules=so); 3. "apxs" is not in your path" So I ran it using just the - - with - pgsql option, which worked fine, apart from the lack of necessary modules, at which point I mailed the list. A trawl through the net for similar problems just led me to retry using ./configure - - with - pgsql - - with - apache but again i get the error (in Configuring SAPI modules..) "Invalid Apache directory - unable to find httpd.h under /usr/local/apache" I haven't got httpd.h (or apache.h), so no point in trying it with full path to apache/httpd.h.
Jen.
"JH" == Jenny Hopkins Jenny_Hopkins@toby-churchill.com writes:
JH> Alexis Lee wrote:
JH> Thanks for the reply. JH> I built it - - with - pgsql - - with - apxs as per the JH> documentation, but i got the errors: JH> "sorry, I was not able to successfully run APXS. Possible reasons: JH> 1. Perl is not installed; JH> 2. Apache was not compiled with DSO support (- - enable-modules=so); JH> 3. "apxs" is not in your path"
apxs is the part of Apache that generates an Apache DSO; you can't build an Apache module without it. I think you mentioned you're using Debian; do you have the apache-dev package installed?
Jenny_Hopkins@toby-churchill.com wrote:
Alexis Lee wrote:
Did you build it the right way? You have to set some options or something to make it build as an Apache module. I think it builds as a CGI executable by default.
I built it - - with - pgsql - - with - apxs as per the documentation,
I realise this is deeply Not The Right Way To Do It, but if you like I can mail you my libphp4.so. It has pgsql compiled in. 23368 bytes, which seems rather small actually (just a loader?), but you could try it.
Otherwise, I'd suggest getting a copy of the Apache source. Install like so: src/apache-1.3.0 src/php-4.0.1
$ cd src/php-4.0.1 $ ./configure --with-pgsql --with-apache=../apache-1.3.0
(no warranty or batteries included) If you do the above, then follow the full install script they give you through. It will involve rebuilding and replacing httpd.
Alexis