Link the PHP library location to help installer scripts

Oct 08, '03 09:43:00AM

Contributed by: Gwyrrdin

I was working today to store Spam Assassin preferences in a MySQL database, so that I could enable my users to update their Spam Assassin preferences through a Squirrelmail plug-in called "SpamAssassin+SQL".

It took me some time to figure out how to call MySQL from the spamd (-x -Q as options did the trick), but after that, I started to get an annoying error message:

failed to find DB.php in /usr/local/lib/php
ouch. So I went looking:
# /usr/libexec/locate.updatedb
# locate DB.php
/System/Library/PHP/DB.php
Ah ... Apple logic ... let's hide some of the libraries in a place where no script can find them. The fix was easy with a symbolic link:
# ln -s /System/Library/PHP /usr/local/lib/php
This solved all problems -- not only with the plug-in described above, but also for several other Squirrelmail plugins.

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031004130806364