> > From: Emiliano [mailto:[EMAIL PROTECTED]]
> >
> > Erwin LEUBAZ wrote:
> >
> > > > > Failed to start apache :
> > > > > Starting httpd: Syntax error on line 256 of
> > > > /etc/httpd/conf/httpd.conf:
> > > > > Cannot load /etc/httpd/modules/libphp4.so into server:
> > > > undefined symbol:
> > > > > __setjmp
> > > > > [FAILED]
> > > >
> > > > Did you recently upgrade gcc or libc? What platform is this on?
> > >
> > > No, This is a fresh install of Redhat 7.0
> > >
> > > On the Php4.0.4pl1 from
> > >
> > http://www.php.net/do_download.php?download_file=php-4.0.4pl1.
> tar.gz&source_
> > site=www.php.net I didn't have this error.
> >
> >That's one of the benefits of our new approach -- we can
> fend off more
> >bugs to PHP :) But seriously, I would expect __setjmp to be part of
> >libc. It's not something that's called directly by any (sane) code.
> >Anyhow, since we don't call setjmp at all, this is one for php-bugs.

Some news,

With php4.0.4pl1 and the cvs (cvs.php.net) php4/ext/midgard (./mkall)

Apache start, with php4 and midgard.

But now at the start with the debug level we have :

[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1185): [client
ZZZ.YYY.XXX.WWW] midgard_translate_handler(PARSER,
http://www.company.com:80/admin/)
[Wed Feb 21 15:40:34 2001] [debug]
/usr/local/include/midgard/select_db.h(45): [client ZZZ.YYY.XXX.WWW]
Midgard: select_database reused open (midgard)
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1228): [client
ZZZ.YYY.XXX.WWW] Midgard: host record for www.company.com:80 not found
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1185): [client
ZZZ.YYY.XXX.WWW] midgard_translate_handler(PARSER,
http://www.company.com:80/icons/blank.gif)
[Wed Feb 21 15:40:34 2001] [debug]
/usr/local/include/midgard/select_db.h(45): [client 10.192.57.249] Midgard:
select_database reused open (midgard)
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1228): [client
ZZZ.YYY.XXX.WWW] Midgard: host record for www.company.com:80 not found
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1185): [client
ZZZ.YYY.XXX.WWW] midgard_translate_handler(PARSER,
http://www.company.com:80/icons/back.gif)
[Wed Feb 21 15:40:34 2001] [debug]
/usr/local/include/midgard/select_db.h(20): [client 10.192.57.249] Midgard:
select_database opened midgard
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1228): [client
ZZZ.YYY.XXX.WWW] Midgard: host record for www.company.com:80 not found
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1185): [client
ZZZ.YYY.XXX.WWW] midgard_translate_handler(PARSER,
http://www.company.com:80/icons/folder.gif)
[Wed Feb 21 15:40:34 2001] [debug]
/usr/local/include/midgard/select_db.h(45): [client 10.192.57.249] Midgard:
select_database reused open (midgard)
[Wed Feb 21 15:40:34 2001] [debug] mod_midgard.c(1228): [client
ZZZ.YYY.XXX.WWW] Midgard: host record for www.company.com:80 not found

It's better but I'm not sure of the httpd.conf and the midgard-data.conf
with php4.

httpd.conf:

Include conf/midgard-data.conf at the end of this file


midgard-data.conf:

LoadModule midgard_module /usr/lib/apache/mod_midgard.so
MidgardDatabase midgard *** ***

AddType application/x-hhtpd-php-midgard .mgd
MidgardTemplate phpelements.xml
MidgardRootfile /home/www/midgard/midgard-root.php
MidgardBlobDir  /home/www/blobs


Listen 80
NameVirtualHost WWW.XXX.YYY.ZZZ:80
<VirtualHost WWW.XXX.YYY.ZZZ:80>
    MidgardEngine On
    ServerName www.company.com
    Port 80

    # Switch off magic quotes - it is required with Midgard
#    php3_magic_quotes_gpc off
#    php3_magic_quotes_runtime off

    # Configure text parser:
    # Change to 'russian' for Russian Midgard
    MidgardParser PARSER

    # Configuration for Russian Midgard:
    <IfModule mod_charset.c>
     # default charset for real or virtual server (selected if all other
charset-
     # selections methods fails)
     CharsetDefault koi8-r
     # Default source (on-disk) charset (we keep all content in DB in KOI8-R
     # encoding). If you want different encoding, please re-encode
midgard-ru.sql
     # before inserting it into DB too.
     CharsetSourceEnc koi8-r
     # Force mod_charset to do its work
     CharsetDisable Off
    </IfModule>
</VirtualHost>

and the midgard-root.php:

<? /* $Id: midgard-root.php4,v 1.1 2001/02/17 22:45:29 emile Exp $ */
   /* This is the Midgard root file.                          */
   /* First we set up some global variables for Midgard pages */
   /* and then we start the page generation process by        */
   /* invoking a set of standard templates.                   */

   /* Uncomment the following line if you want to get dates
   /* localized (replace second parameter with correct locale)*/
   /* setlocale("LC_ALL","ru_RU.KOI8-R");                     */

   if(!function_exists("mgd_get_midgard")) {
      dl("midgard.so");
   }
   if ($midgard = mgd_get_midgard()) {
      $argc = $midgard->argc;
      $argv = $midgard->argv;
   }
   mgd_eval("?>".mgd_template("code-compat")."<?","code-compat");
   mgd_eval("?>".mgd_template("code-global")."<?","code-global");
   mgd_eval("?>".mgd_template("code-init")."<?","code-init");
   mgd_eval("?>".mgd_template("ROOT")."<?","ROOT");
?>

in the midgard database host :


 id name root style info owner port online prefix sitegroup
 1 WWW.XXX.YYY.ZZZ 1  1 auth 0 80 1 /admin                      0
 2 WWW.XXX.YYY.ZZZ 34 2      1 80 1 /example                    0
 3 WWW.XXX.YYY.ZZZ 46 3 auth 0 80 1 /asgard                     0
 4 WWW.XXX.YYY.ZZZ 46 4 auth 0 80 1 /asgard/framed              0
 5 WWW.XXX.YYY.ZZZ 46 5 auth 0 80 1 /asgard/framed/top  0
 6 WWW.XXX.YYY.ZZZ 46 6 auth 0 80 1 /asgard/framed/main         0
 7 WWW.XXX.YYY.ZZZ 77 8      0 80 1 /test                       0

Regard's

Erwin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to