Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 4th May 2007, 10:20
vogelor vogelor is offline
ISPConfig Developer
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts
Talking little flaw in create_chroot_env.sh

i don't have access to the developer forum, so i post it here ;-)
these is a little flaw in the script create_chroot_env.sh i posted some days ago (this script is now in the new version of ispconfig).

the flaw is, that the mysql-socked changes its location on every mysql-update.
IF the socked changes, the socked-link i create inside the create_chroot_env.sh links to a "old" socked and so the connection to the DB over this "wrong" socked is not possible.

i made a workarround by deleting the old link before creating the "new" socked. this means, we have to change the following lines (the red ones are new):

# mysql needs the socket in the chrooted environment
mkdir ${HOMEDIR}/var
mkdir ${HOMEDIR}/var/run
mkdir ${HOMEDIR}/var/run/mysqld
# delete the old one, because it changes sometimes its location
rm ${HOMEDIR}/var/run/mysqld/mysqld.sock
ln /var/run/mysqld/mysqld.sock ${HOMEDIR}/var/run/mysqld/mysqld.sock
Der neue Luxus heit Zeit, nicht Geld!

Firma : http://www.muv.com, http://www.computerandservice.de
Privat : http://www.vogelor.de
Reply With Quote
The Following User Says Thank You to vogelor For This Useful Post:
till (5th May 2007)
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:51.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.