The error message “Can’t create/write to file /tmp/” appears when any application tries to write it’s temporary files to the /tmp directory and it is unable to write to due to the permission issue. In such a case, make sure the permissions of the /tmp directory is writable i.e. 1777.
1) SSH to your server as root.
2) Set the permissions of /tmp directory
root@server [~]# chmod 1777 /tmp
3) To verify the permissions, execute
root@server [~]# ls -ld /tmp
drwxrwxrwt 6 root root 4096 Aug 25 11:23 /tmp/
Once done, the website/application should work fine.
Tags: cant create files in /tmp directory, how to set /tmp permissions?, not able to write to /tmp directory, unable to write in /tmp directory, website not working with mysql errorcode 13, what are the permissions of /tmp directory?
