PTYNETWORK Just out of curiosity, does that file actually exist if you to to /www/server/mysql/lib/ ?
What do you have installed for MySQL/MariaDB?
Have you tried to uninstall PHP 5.2 then reinstall and let it recompile? Its not happy due to not having access to a required MySQL/MariaDB library...