On Mon, Mar 05, 2001 at 05:03:32PM +0100, Torben Nehmer wrote:
> Hi.
>
> I'm just trying to build a Midgardserver that runs in a chrooted
> environment.
>
> So far I've got a major problem: Apache doesn't start up because he seems
> to be unable to connect to the DB. I've made some experiments with the
> mysql client binary, which complains that it can't find mysql.sock. This
> is logical, becaus it isn't there in the chroot.
Set up MySQL in chrooted environment correctly. If you want real example for
production system, look into
rsync://linuxteam.iplabs.ru::MandrakeRE/Sysiphus/SRPMS
Files which are interest for us:
chrooted-0.1-ipl5.src.rpm
MySQL-3.23.33-ipl3mdk.src.rpm
You don't need to run MySQL client in chrooted environment, only MySQL
server.
> Can I configure the Midgard system in a way that he doesnet uses the
> socket on the file system but a "real" tcp/ip connection to localhost? Or
> is there another way to duplicate the socket file?
1. Look into MySQL documentation, there is statement: 'if you connect to
mysqld using TCP/IP rather than using Unix sockets, the result is 7.5%
slower on the same computer.
2. If you still want to run MySQL connection through TCP/IP, make sure
that your mysqld binary starts without --skip-networking option.
3. Recompile Midgard library and pass the following statement
in CFLAGS to configure along others:
-DMGD_MYSQL_HOST=\"your-host-name\"
Note that 'your-host-name' MUST be different from localhost!!!
--
Sincerely yours, Alexander Bokovoy
The Midgard Project | www.midgard-project.org | Aurora R&D team
Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com
ALT Linux Team | www.alt-linux.org | Architecte Open Source
-- When the going gets weird, the weird turn pro.
-- Hunter S. Thompson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]