I recently came across and issue trying to install PHP modules from PECL, where /tmp is mounted noexec phpize refuses to run.

The workaround is to create the temporary directories in another location and symlink them into /tmp

First, create the new directories in a location that isn't noexec (here I have used /root but this can be replaced with anywhere that isnt noexec.

mkdir /root/tmp.pear
mkdir /root/tmp.pear-build-root

Now lets remove any old temporary pear directories.

rm -rf /tmp/pear*

Now lets symlink those dirs into /tmp (Again if need be replace /root with the location of your choice)

ln -s /root/tmp.pear /tmp/pear
ln -s /root/tmp.pear-build-root /tmp/pear-build-root

Thanks to 'twhite' on the cPanel forums for this one.