/usr/bin/phpize: /tmp/tmpjMvBZg/package.x.x/build/shtool: /bin/sh: bad interpreter: Permission denied
If you receive the above error message while installing a package using “pecl”, it meant that the /tmp partition is mounted in “noexec” mode and that you do not have permissions to execute anything under /tmp partition.
Execute the “mount” command and you will see something like:
root@server [~]# mount /dev/sdax on /tmp type ext3 (rw,noexec,nosuid)
To mount the /tmp partition in rw mode, execute:
root@server [~]# mount -o remount rw /tmp
Now, you can execute the “pecl” command to install the package you like. Once done, you can remount /tmp with noexec mode again:
root@server [~]# mount -o remount rw,noexec,nosuid /tmp