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.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th May 2007, 09: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):

Code:
# 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 heißt 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
Reply

Bookmarks

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 04:00.


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