Thanks for the input. I couldn't figure out how to do what you suggested, so I ended up reinstalling PHP with the --with-mysql option. It works fine now.
By the way, is anyone familiar with
mysqli (MySQL Improved Extension) and is it worth installing?