If you have a dedicated /tmp partition you could also change the partition properties (nexec, nodev, etc.) that would prevent worrying

Click to expand...

That should be 'noexec'.. and it is a VERY good idea to set those properties on /tmp; however, when you do so, makeself scripts will stop working. Cpanel uses makeself for the buildapache.sea (/scripts/easyapache) script.

THUS, with this modification one will either have to remount /tmp when they want to run /scripts/easyapache OR make a directory /home/tmp and then run:
TMP=/home/tmp /scripts/easyapache

This will reassign the temporary directory for only this command, allowing the script to run without error.