Symfony, PHP, OS X and how not to be an idiot. (can't find driver mysql) error

by Vid Luther on May 19, 2009

in blog, php, web

Leopard 10.5.7 now comes with PHP 5.2.8, I wasn’t aware of this, and it’s caused me a great amount of agony and hair pulling over the past few days. So, for those of you running XAMPP and recently upgraded to 10.5.7 you may want to be aware of this.

When I had installed XAMPP, I had removed the php binaries in /usr/bin, and linked them to their equivalents in /Applications/XAMPP/xamppfiles/bin/

10.5.7, removed the php symlink and replaced it with the 5.2.8 binary. This caused all sorts of problems for me, as my tasks stopped working. The fix is simple, just replace the symlink again.

Thought I’d share this with others in the same situation as me. On irc people told me to switch to MAMP, but that’s not solving the problem :) .

  • invalidusrname
    I agree wit ole on this one. Updating your path to include custom directories, like macports does, can save yourself from these problems.
  • PB
    Switch to MAMP
  • ole
    Rule of thumb: don't mess with system provided files. They will get updated. A better way is to just stick the XAMPP bin directory in first in the $PATH.
  • I use macports for my mac os development packages, it has lots of packages, takes care of dependencies and makes it easy to install a extra module you might want in the future. Give it a spin!
  • Or just use that which came with the OS. You already have PHP/Perl, Apache, and MySQL on OS X.
  • Thanks for the great tip Rob :)
  • Rob
    Switch to MAMP
blog comments powered by Disqus

Previous post:

Next post: