I have redhat 6.2 with:
midgard-lib-1.4b3-1
mod_midgard-1.4b3-1

and

midgard-php-pgsql-3.0.16-5
midgard-php-mysql-3.0.16-5
midgard-php-3.0.16-5
midgard-php-ldap-3.0.16-5
midgard-php-imap-3.0.16-5
midgard-php-manual-3.0.16-5

All based on 1.4b3

I have mysql 3.22.32 and apache 1.3.12

I have installed the data gzip, made the databases, flushed priv's etc,
copied the two folders to the htdocs of my virtual host.

I have checked that I have done all the 10 steps in
http://www.midgard-project.org/article/1129.html

I am succesfully using phpMyAdmin so I know php and mysql work.

I used apxs when configuring all apache stuff.

I did not use auth_mysql

phpinfo() claims that mod_midgard is loaded (and mod_perl which surprised
me!)

phpinfo() also lists a LOAD of midgard functions (so I guess it is running
OK).

midgard-root.php3 is /usr/lib/apache/midgard-root.php3

I modified my httpd.conf thus (mod_midgard and mod_php3 are already loaded)

LoadModule midgard_module     /usr/lib/apache/mod_midgard.so
LoadModule php3_module        modules/libphp3.so
...
AddModule mod_midgard.c
AddModule mod_php3.c
...
Listen 80
Listen 8099
Listen 8101
...
  MidgardEngine on
  MidgardRootfile /usr/lib/apache/midgard-root.php3
  MidgardDatabase midgard
  MidgardUserName midgard
  MidgardPassword midgard
  <Files midgard-root.php3>
  require valid-user
  AuthName Midgard
  AuthType Basic
  </Files>
...
NameVirtualHost 172.16.1.1
NameVirtualHost 172.16.1.1:8099
NameVirtualHost 172.16.1.1:8101
...
<Directory "/home/httpd/html.midgard">
    Options Indexes Includes FollowSymLinks ExecCGI
    AllowOverride all limit options fileinfo authconfig
    Order allow,deny
    Allow from all
</Directory>
<VirtualHost midgard.rhodes.bigwig.co.uk:8101>
    ServerName midgard.rhodes.bigwig.co.uk
    Port 8101
</VirtualHost>
<VirtualHost midgard.rhodes.bigwig.co.uk:8099>
    ServerName midgard.rhodes.bigwig.co.uk
    Port 8099
</VirtualHost>
<VirtualHost midgard.rhodes.bigwig.co.uk>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home/httpd/html.midgard
    Options ExecCGI Includes Indexes FollowSymlinks SymLinksIfOwnerMatch
    ServerName midgard.rhodes.bigwig.co.uk
    ErrorLog logs/midgard-error_log
    CustomLog logs/midgard-access_log common
</VirtualHost>
...

My midgard host table is:

id name root style info owner port online prefix sitegroup
 1   midgard.rhodes.bigwig.co.uk   1   1   auth   0   8101   1   /admin   0
Edit Delete
 2   midgard.rhodes.bigwig.co.uk   34   2      1   8099   1   /example   0
Edit Delete

I then restart apache (stop,start).

http://midgard.rhodes.bigwig.co.uk/

shows a root dir with the "example" and "midgard" folders in (so its the
right doc-root).

http://midgard.rhodes.bigwig.co.uk:8101/

goes and defaults to showing my main document root, as does
http://midgard.rhodes.bigwig.co.uk:8099/

I have no idea why.

The apache error log is empty.

Help help!

I have tried moving the admin site to a new virtual host with port 80, but
still no joy.  I think mod_midgard is not picking up the host info from the
midgard database but I don't know why!

Thanks

Sam


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to