Re: Apache2 install grief

From: Date: Tue, 01 May 2001 07:02:00 +0000
Subject: Re: Apache2 install grief
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2964@lists.php.net to get a copy of this message
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"" <timk@advfn.com> wrote in message news:9cbokh$th$1@toye.p.sourceforge.net... > 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: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#2964) next »