Hi Tim,

Well, I have php loading as a module in Apache 2.0.16beta now (I think)...
what I did was follow the information on:

http://www.php.net/anoncvs.php

for doing a checkout of the latest code.  I then had to modify the
sapi_apache.c file and make

if ((rv = ap_get_brigade(f->next, bb, mode, readbytes)) != APR_SUCCESS) {

look like:

if ((rv = ap_get_brigade(f->next, bb, mode)) != APR_SUCCESS) {

after which I got a clean compile.  Apache now loads with the following
logged:
[Tue May 01 01:33:54 2001] [notice] Apache/2.0.16 (Unix) configured --
resuming normal operations

The Server header is:

Server: Apache/2.0.16 (Unix)

(ServerTokens Full is set.. don't know if php it would show here when done
as a module)

I know php is getting consulted during the server start because if I remove
the path to the mysql libs from ld.so.conf, the php module screams because
it cannot find them.

Two things to note:
1) As yet, Apache isn't behaving like it truly knows what PHP is  (it keeps
trying to download the .php files to me, although I have done the AddType),
so all of this may have been for nothing.
2) I am not a programmer.... one of the C people here may smack me down for
that bit of deletion a couple of lines up....

Hope it gives you an idea or two.  I'll try fooling with it some more
tomorrow... its 2am.. time for bed.

Michael

""Tim Kay"" <[EMAIL PROTECTED]> wrote in message
9cbokh$th$[EMAIL PROTECTED]">news:9cbokh$th$[EMAIL PROTECTED]...
> Hello,
> I'm trying to install 4.0.4pl1 as a module to apache 2.0.16beta and
> failing miserably. Apache is built and running happily with DSO support
> but PHP fails to compile using apxs2. Error messages relate to
> php_apache.h and sapi_apache2.c (below) is this 'cause Apache2 has
> changed so much since the alpha when php 2.0.4pl1 was released or am I
> doing something wrong - there's nothing before line 24 in php_apache.h
> aside from a declaration.
>
> Thanks in adv
>
> Tim
>
>
> In file included from sapi_apache2.c:45:
> php_apache.h:24: parse error before `ap_bucket_brigade'
> php_apache.h:24: warning: no semicolon at end of struct or union
> php_apache.h:32: parse error before `}'
> php_apache.h:32: warning: type defaults to `int' in declaration of
`php_struct'
> php_apache.h:32: warning: data definition has no type or storage class
> sapi_apache2.c: In function `php_apache_sapi_ub_write':
> sapi_apache2.c:49: `ap_bucket' undeclared (first use in this function)
> sapi_apache2.c:49: (Each undeclared identifier is reported only once
> sapi_apache2.c:49: for each function it appears in.)
> sapi_apache2.c:49: `b' undeclared (first use in this function)
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to