Hi all,
 
I've solved my Apache problem by removing and recompiling Midgard 1.5.0.

Installation seemed to go well. I can now access the /example and /admin sites. But when I try to access /asgard, I get the following error:
 
"Fatal error: Cannot redeclare processsubmit() in code-global(6) : eval()'d code on line 483".
 
I hope anyone can tell me what could be causing this. Please bear in mind that this (Linux, Apache, Midgard etc.) is al pretty new to me.
 
Here's the installation log of my new install. I've marked some of my remarks and questions in the log with >>>>>
If I should provide further information, please tell me what exactly.
 

I had the following already working:

 

apache 1.3.28

apache-devel 1.3.28

mod_php4 4.3.3

mod_php4-core 4.3.3

mod_php4-devel 4.3.3

 

Downloaded the following files to /usr/src/packages/SOURCES/midgard:

 

midgard-lib-1.4.4.tar.bz2
mod_midgard-1.4.4.tar.bz2
midgard-php4-1.4.4.tar.bz2
midgard-data-1.4.4.tar.bz2

 

Unzipped and untarred them using:

 

tar xvJf midgard-lib-1.4.4.tar.bz2
tar xvJf mod_midgard-1.4.4.tar.bz2
tar xvJf midgard-php4-1.4.4.tar.bz2
tar xvJf midgard-data-1.4.4.tar.bz2

 

Checked to see if $PATH contained /sbin and /usr/sbin:

 

Echo $PATH

 

$PATH Contained both.

 

$ cd midgard-lib-1.5.0

$ ./configure
$ make
$ make install

 

'make' ended with the following output:

 

make[1]: Leaving directory �/usr/src/packages/SOURCES/midgard/midgard-lib-1.5.0/test�

make[1]: Entering directory �/usr/src/packages/SOURCES/midgard/midgard-lib-1.5.0�

make[1]: Nothing to be done for �all-am�.

>>>>> Is this OK?

make[1]: Leaving directory �/usr/src/packages/SOURCES/midgard/midgard-lib-1.5.0�

 

make install ended with the following output:

 

make[2]: Nothing to be done for �install-data-am�.

make[2]: Leaving directory �/usr/src/packages/SOURCES/midgard/midgard-lib-1.5.0�

make[1]: Leaving directory �/usr/src/packages/SOURCES/midgard/midgard-lib-1.5.0�

>>>>> Is this OK?

 

$ cd ../mod_midgard-1.5.0

$ ./configure --with-apxs=/usr/sbin/apxs

>>>>> What is apxs? Configure said I have a choice: --with-apxs or �with-apache. Shouldn�t I have chossen �with-apache?
$ make
$ make install

 

$ cd ../midgard-php4-1.4.4
$ ./mkall

 

$ cd ../midgard-data-1.4.4
$ mkdir /var/www/midgardblobs

>>>>> I'm not sure if nogroup is the group for Apache. How can I check?
$ chown wwwrun.nogroup /var/www/midgardblobs
$ ./configure --with-db-host=localhost \
--with-db-admin-user=root \

--with-db-admin-password=mysqlrootpassword \
--with-db-user=mysqlusername \
--with-db-user-password=mysqlpassword \

>>>>> I've changed the domain and IP for security reasons :-)
--with-host=midgard.mydomain.com \
--with-ip=123.456.789.123 \
--with-blobdir=/var/www/midgardblobs \
--with-apxs=/usr/sbin/apxs \
--with-apache-user=wwwrun \
--with-apache-group=nogroup \
--with-install=new
$ ./dbinstall

 

Here's a snippet of my httpd.conf:

 

MidgardDatabase midgard mysqlusername mysqlpassword

 

## 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"

 

>>>>> I've removed the lines "NameVirtualHost 123.456.789.123:80" and "Port 80" and changed the line "<VirtualHost 123.456.789.123:80>" to get it to work:

 

<VirtualHost *>
    MidgardEngine On
    ServerName midgard.mydomain.com

    
    # 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/www/midgardblobs"
   
    # 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>

 

Goodnight (or perhaps -day),

 

Maarten

   

Reply via email to