websvn and mysql

WebSVN and MySQL on a Mac


If you are a web developer working on a Mac, you probably have an XAMPP stack installed, along with a source code manager like SVN (or git, for the intrepid). You may also have the SVN browser WebSVN. If you don’t, I highly recommend it. If you already had WebSVN and MySQL (as part of the XAMPP stack), you may have found that they didn’t work on some versions of Mac OSX (probably only on Yosemite). This is all due to a silly environment setting. If you still have the problem, here is how to fix it.

For WebSVN

Add this to include/config.php in the second line, right after the opening php tag.

putenv("DYLD_LIBRARY_PATH=''");

For MySQL

Edit:
/Applications/XAMPP/xamppfiles/xampp

Look for:
$XAMPP_ROOT/bin/mysql.server start > /dev/null &
in the function startMySQL()

And add unset DYLD_LIBRARY_PATH on top of it. It should look like:
unset DYLD_LIBRARY_PATH
$XAMPP_ROOT/bin/mysql.server start > /dev/null &