Remounting /tmp With Execute Permission
On some cPanel servers, the /tmp partition is mounted with the noexec option as a security measure. If a script or application needs to execute files from /tmp, you can temporarily remount it with exec permission.
Temporarily Enable Exec on /tmp (root required):
mount -o remount,exec /tmp
Re-secure /tmp After You Are Done:
mount -o remount,noexec /tmp
When Is This Needed?
- Some installers and package managers (like cPanel update scripts) temporarily need exec permission on /tmp
- Certain PHP applications that write and execute temporary files in /tmp
- MySQL database repairs that create temporary tables in /tmp
Always remount with noexec after the operation is complete. Leaving /tmp executable is a security risk as attackers often attempt to upload and execute malware in /tmp.
This requires root server access. Shared hosting customers should contact support if an application is failing due to /tmp restrictions.
