That's the first time I've ever seen anyone try to install "mod_perl" by
manually 'hacking' the Apache 'source configuration' file...
I do believe that there's a lot of 'dependancies' (at least when I install
it) for "mod_perl" in order for it to install correctly (and the order of
installation may be important....
I have attached my current webdocs, which includes a section on the
Apache/Mod_Perl/PHP installation and configuration... Look them over and
see if they help... (I don't think that the 'list' will accept the
attachment...)
> ----- Original Message -----
> From: "Alex Page" <[EMAIL PROTECTED]>
> Subject: [PHP-INST] Installation with mod_perl / mod_so
>
>
> > I'm having difficulty installing PHP (surprise) alongside mod_perl and
> > mod_so.
> >
> > I've got the source tarballs for PHP (4.0.6), mod_perl (1.26), and
apache
> > (1.3.20), and unpacked them in my home directory. Then I've done:
> >
> > $ vi apache_1.3.20/src/Configuration
> > # uncommented the mod_so include line
> > $ apache_1.3.20/configure
> > # to get the default makefiles
> > $ cd mod_perl-1.26
> > $ make
> > # make install
> > $ cd ../php-4.0.6
> > $ make
> > # make install
> > $ cd ../apache_1.3.20
> > $ LIBS=`perl -MExtUtils::Embed -e ldopts`
> > $ CFLAGS=`perl -MExtUtils::Embed -e ccopts`
> > $ export LIBS CFLAGS
> >
> > $ ./configure \
> > --activate-module=src/modules/perl/libperl.a \
> > --activate-module=src/modules/php4/libphp4.a \
> > --enable-module=rewrite \
> > --enable-module=status \
> > --enable-module=expires \
> > --enable-module=perl
> > $ make
> > # make install
> > # cd ../php-4.0.6
> > # cp php.ini-dist /usr/local/lib/php.ini
> > # /usr/local/apache/bin/apachectl start
> >
> > This all seems to work with no error messages, and when I start the web
> > server, I get:
> >
> > [Tue Aug 14 16:19:19 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6
> > mod_perl/1.26 configured -- resuming normal operations
> >
> > in my installed apache error log. Also:
> >
> > $ /usr/local/apache/bin/httpd -l
> >
> > shows me that mod_perl.c and mod_php4.c (but not mod_so.c) are compiled
> in.
> >
> > However, when I try to load a PHP page which worked fine before the
> > 'upgrade', I get the error:
> >
> > "Fatal error: Failed opening required 'class.DBI'
> > (include_path='.:/usr/local/lib/php') in
> > /usr/local/apache/htdocs/irm/include/irm.inc on line 77"
> >
> > There is a class.DBI file in /usr/local/apache/htdocs/irm/include/DBI
but
> it
> > doesn't look like it's finding this. Is there something wrong with my
PHP
> > installation? Also, how do I get it to recognise mod_so?
> >
> > Thanks in advance,
> >
> > Alex
> > --
> > Alex Page, IT Department, Solid State Logic
> > E-Mail: [EMAIL PROTECTED]
> > Phone: +44 (0) 1865 842 300
> > Web: http://www.solid-state-logic.com
> >
> >
--
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]