Dump Solaris and install Linux.
Our server guys used to insist on running Solaris and, basically, PHP didn't work. We got all sorts of problems like this. Many of the required libraries are (effectively) no longer supported on Solaris and are full of bugs.