On Wednesday 25 July 2001 23:22, Bryan Coon wrote:
> Hi, I am trying to compile Apache with a bunch of modules and DSO.  I
> cant find any documentation that covers all of this though.
> perl.apache.org/guide/ give lots of combination examples, but not
> all.
>
> I would like to build Apache 1.3.20 with mod_ssl, mod_perl, mod_php
> and DSO support, and for apache, --prefix=/apachessl.
>
> Can anyone give me either a site that has explicit instructions on
> how to do this?  Or maybe an example?
Here's what I'd extrapolate from the mod_perl installation guide:

Make a working copy of plain apache (with a binary called httpd_ssl), 
vis:

make --with-layout=MY_NEW  --target=httpd_ssl --enable-module=rewrite 
--disable-module=userdir --enable-module=info --server-uid=foo 
--server-gid=bar

*Note* I always add a '--show-layout' to the end, to ensure that things 
are installing where I want them to go!

This requires you to edit the file config.layout: I added a section 
thus:
-----  section of config.layout -----------
#   My own standard layout
#   Based on GNU systems
<Layout KIZ_STD>
    prefix:        /usr/local
    exec_prefix:   $prefix
    bindir:        $exec_prefix/bin
    sbindir:       $exec_prefix/sbin
    libexecdir:    $exec_prefix/libexec
    mandir:        $prefix/man
    sysconfdir:    $prefix/httpd/conf
    datadir:       $prefix/share
    iconsdir:      $prefix/icons
    htdocsdir:     $datadir/htdocs
    cgidir:        $datadir/cgi-bin
    includedir:    $prefix/include
    localstatedir: /var
    runtimedir:    /var/run
    logfiledir:    /var/local/http/log
    proxycachedir: /var/local/http/proxy+
</Layout>
--------- end of section --------

You then need to make the mod_ssl & mod_php stuff (with 'make', 'make 
test' & 'make install')
*note*, I've never done this, so I don't know if the test session uses 
a web server - if so, read the mod_perl bit first!

Now make the mod_perl stuff, vis:
perl Makefile.PL APACHE_SRC=../apache_1.3.20/src EVERYTHING=1 
USE_APACI=1 DO_HTTPD=1 ALL_HOOKS=1 SSL_BASE='{place}' 
APACI_ARGS='--with-layout=MY_NEW  --target=httpd_ssl 
--enable-module=rewrite --disable-module=userdir --enable-module=info 
--activate-module=src/modules/perl/libperl.a 
--activate-module=src/modules/phpx/libpnpx.a --server-uid=foo 
--server-gid=bar'

(see http://www.php.net/manual/en/install.apache.php fot PHP install 
stuff.)

To load mod_perl as a DSO, add '--module-shared=perl', so I guess that 
you may be able to do '--enable-shared=php' .-- again, I've never done 
it, so I don't know..

PS: Perl as a DSO (a) is not recommended, and (b) requires a version of 
perl that has been tinkered with - see the mod-perl installation guide.


Hope this helps...
-- 
           --==**==--
Ian Stuart - EDINA, DataLibrary, University computing services.
---------------------------------
A man depriving some village, somewhere, of a first-class idiot
---------------------------------
http://lucas.ucs.ed.ac.uk/

Reply via email to