David,
your instructions below were very helpful. I had previously
wondered what would be necessary to clean up after installing a
new version on top of an existing one.
Could a refined version of the below be put in the Midgard FAQ?
Perhaps under the topic of "Uninstalling Midgard" or some such.
I believe a lot of people could benefit from it, and a lot of
problems avoided.
However, I did the below and am now getting the following error:
/****************************************************/
bash-2.04# /www/bin/apachectl start
Syntax error on line 249 of /www/conf/httpd.conf:
Cannot load /www/libexec/mod_midgard.so into server: shared object not
open
/*****************************************************/
I believe I read somewhere that php4 had to be compiled statically
and not as a module in order for session support to work. I compiled
php4 with:
--enable-mgd-session
so perhaps that is my problem? So I would have to recompile apache with
php4 staticly linked?
At this point I am somewhat confused as to how Midgard works in
conjunction
with php4, especially in regard to session management.
The on-line documentation states:
A.5.1. Is the Midgard distribution an entire
replacement for my current PHP build?
Yes, Midgard is a replacement to your copy of PHP3. The
Midgard
version should be able to run any PHP stuff...
What are the relationships when php4 is in the picture, and in regard to
v.1.4.1?
Cheers,
Eric
David Guerizec wrote:
>
> Hi,
>
> For all of you that are seeing an undefined symbol error at apache's startup,
> please make sure you don't have any old midgard library laying around.
>
> Here is how to proceed:
>
> if midgard-lib was compiled without --prefix, the default prefix is
> /usr/local, that means that the libmidgard.* files will be in /usr/local/lib,
> and the include files will be in /usr/local/include/midgard
>
> so, in general, midgard installs these files:
>
> $prefix/lib/libmidgard.*
> $prefix/include/midgard*
> $prefix/etc/repligard.conf
> $prefix/bin/repligard
> $prefix/share/midgard*
>
> /path/to/apache/modules/mod_midgard.so
> /path/to/apache/modules/libphp3.so # for midgard PHP3
> /path/to/php/extensions/midgard.so # for midgard PHP4
>
> now, you have to remove these files.
> to find the prefix(es), you can either do:
> # locate midgard; locate repligard
> and delete all but your midgard source directory
> or do:
> # ldconfig -p | midgard
I believe you meant:
# ldconfig -p | grep midgard
> this will give you the prefix (before lib/libmidgard.so*), then delete every
> midgard file under this prefix
>
> after you've deleted every midgard files, check your /etc/ld.so.conf, it must
> contain the path to the midgard library directory, ie. /usr/local/lib for the
> default installation, $prefix/lib in general.
>
> now run ldconfig and repeat the previous steps to check that you didn't forget
> another instance of the midgard lib.
>
> once you're sure you've got a clean system, cd into your midgard source
> directory, and do:
> # cd lib; make install
> # cd ../mod; make clean; ./config.status; make install
> # cd ../php; make clean; ./config.status; make install <if you install PHP3>
> # cd ../php4; make clean; ./config.status; make install <if you install PHP4>
>
> Hope this helps (and please correct me if something is wrong).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]