On Tuesdayen den 21 May 2002 00.29, Alexander Feigl wrote:
> Am Montag, 20. Mai 2002 23:39 schrieb Oden Eriksson:
> > On Mondayen den 20 May 2002 21.43, Alexander Feigl wrote:
> > > Am Montag, 20. Mai 2002 22:35 schrieb Oden Eriksson:
> > > > On Mondayen den 20 May 2002 20.17, J.P. Pasnak wrote:
> > > > > On May 20, 2002 03:15 am, Oden Eriksson wrote:
> > > > > > On Mondayen den 20 May 2002 10.30, Lonnie Borntreger wrote:
> > > > > > > What's the target for making Apache 2 the "default" server
> > > > > > > instead of Apache 1?
> > > > > >
> > > > > > I think it's like this:
> > > > > >
> > > > > > 1. When apache2 is stable.
> > > > > > 2. When the other softwares for apache1 works for apache2.
> > > > >
> > > > > Speaking of which, does anyone know the status of PHP and Apache2?
> > > >
> > > > No, but I was about to start trying to make a package.
> > >
> > > I got php support working after some experiments. Seems to work well
> > > here
> >
> > Would you mind sharing how you did it?
>
> It was more or less a trial and error procedure. It don't remember it
> exactly but here is the rough procedure. If this does fail I'll try to
> compile it again as soon as I have time and give better instructions.
>
> - I used the php-devel files as a base. The main problem was that libtsrm
> is needed by the module but it is not included in the package
>
> - I started with php source and compiled a own php with mod_php included.
> This failed. I don't remember if it compiled but if it compiled  it crashed
> httpd.
>
> - I took the libtsrm of the building process, created a normal library
> archive from it (libtsrm.a)
>
> - I used buildext to compile the apache2filter source files, linked it
> against libphp_common, libapr and libtsrm
>
> This resulted in a libphp4.so that worked with apache2. I'm using it on my
> home network. It is constantly used to set the machine online and offline.

Sounds cool :-)

> Alexander Feigl

Hmm...

I'm using the "mod_php.spec" file as a start point, but getting an error I 
don't understand...

php_functions.c: In function `zif_apache_lookup_uri':
php_functions.c:93: structure has no member named `boundary'
php_functions.c:93: structure has no member named `boundary'
apxs2:Error: Command failed with rc=65536

Here's my (simple) changes to the "mod_php.spec" file:

/usr/sbin/apxs2 -c -I. -I -I./main -I. -I/usr/include/php \
        -I/usr/include/php/main \
        -I/usr/include/php/Zend \
        -I/usr/include/php/TSRM \
        -lphp_common -lpthread -lgdbm -ldb -lapr -laprutil \
        sapi_apache2.c apache_config.c php_functions.c -o libphp4.so

Are you sure the tsrm library needs to be there? How should I make the php 
package provide it?

-- 
Regards // Oden Eriksson

Reply via email to