folx,

i *think* that i *may* have been somewhat successful at installing 
midgard-lib, midgard-data and mod_midgard on RH8 (i had to recompile 
apache 1.3.27 for rh8 from the 7.3 tree and then recompile php-4.2.1 and 
so on).  it was an Odyssey to say the least (the instructions aren't 
really all that closely tied to the source right now, as far as i can 
tell).

my problem is now that i have the database there, repligard working and 
importing stuff (including the asgard interface, among other things) 
apache still doesn't serve up any midgard files.  i'm fairly certain this 
is an apache config issue (i'm not always very good at spotting those), 
but i thought this might be a good place for help.

in my /etc/httpd/conf/httpd.conf i have:

LoadModule midgard_module     /usr/lib/apache/mod_midgard.so
...
AddModule mod_midgard.c
...
MidgardDatabase midgard midgard kierkega
MidgardPageCacheDir /var/midgard/pagecache
MidgardEngine On

## Uncomment this if you want serve files instead of Midgard URLs
## where there's a match for both. You'd want to use this if you have
## active pages and you're using static dummy pages to force this
## behaviour. Note that this setting is apache-wide, not per-host.
# MidgardFavorFiles On

## Uncomment this for PHP3,
# MidgardRootFile "/usr/lib/apache/midgard-root.php3"
## or this for PHP4
MidgardRootFile "/usr/lib/apache/midgard-root.php"

AddType application/x-hhtpd-php-midgard .mgd
MidgardTemplate phpelements.xml


<VirtualHost _default_:80>

    # Switch off magic quotes - it is required with Midgard
    #php_value magic_quotes_gpc off
    #php_value magic_quotes_runtime off

    # Configure text parser:
    # Change to 'russian' for Russian Midgard
    MidgardParser latin1
    MidgardBlobDir "/var/midgard/blob"

    # 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.sq
l
     # before inserting it into DB too.
     CharsetSourceEnc koi8-r
     # Force mod_charset to do its work
     CharsetDisable Off
    </IfModule>
</VirtualHost>

i should note that i've tried that virtualhost line with _default_ and 
129.121.3.33, both.


in mysql midgard database i have:

mysql> select * from host;
+----+--------------+------+-------+------+-------+------+--------+---------------------+-----------+
| id | name         | root | style | info | owner | port | online | prefix             
 
| sitegroup |
+----+--------------+------+-------+------+-------+------+--------+---------------------+-----------+
|  1 | 129.121.3.33 |    5 |     1 | auth |     0 |   80 |      1 | /admin             
 
|         0 |
|  2 | 129.121.3.33 |   16 |     2 |      |     1 |   80 |      1 | 
/example            |         0 |
|  3 | 129.121.3.33 |    4 |     3 | auth |     0 |   80 |      1 | 
/asgard             |         0 |
|  4 | 129.121.3.33 |    4 |     4 | auth |     0 |   80 |      1 | 
/asgard/framed      |         0 |
|  5 | 129.121.3.33 |    4 |     5 | auth |     0 |   80 |      1 | 
/asgard/framed/top  |         0 |
|  6 | 129.121.3.33 |    4 |     6 | auth |     0 |   80 |      1 | 
/asgard/framed/main |         0 |
|  8 | 129.121.3.33 |   69 |     9 |      |     0 |   80 |      1 | 
/attachment/0       |         0 |
|  7 | 129.121.3.33 |   58 |     8 |      |     0 |   80 |      1 | /aegir             
 
|         0 |
+----+--------------+------+-------+------+-------+------+--------+---------------------+-----------+


when i connect to the server, i see:

HTTP/1.1 200 OK
Date: Thu, 03 Apr 2003 16:55:45 GMT
Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux) Midgard/1.4.4/SG PHP/4.1.2 
mod_perl/1.26
Last-Modified: Thu, 03 Apr 2003 03:11:17 GMT
ETag: "3bf56-b4a-3e8ba655"
Accept-Ranges: bytes
Content-Length: 2890
Connection: close
Content-Type: text/html


but when i go to:

129.121.3.33/asgard
or
129.121.3.33/aegir
or
129.121.3.33/example

i get a not-found error.


i have verified that php is working with a phpinfo() page at index.php.

that page is still up at 129.121.3.33 if any of y'all care for more info.

any debugging suggestions would be greatly appreciated.

thanks!

-- 

todd underwood, sr. vp & cto
oso grande technologies, inc.
[EMAIL PROTECTED]

"The people never give up their liberties but under some delusion."
            --Edmund Burke, Speech at County Meeting of Bucks, 1784. 



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

Reply via email to