/tmp is mounted

sss638

New member
Joined
Mar 8, 2013
Messages
9
Hi everyone

Actually i have some problem in csf, it shows me "/tmp should be mounted as a separate filesystem with the noexec,nosuid options set" & "/var/tmp should either be symlinked to /tmp or mounted as a filesystem" and "/dev/shm is not mounted with the noexec,nosuid options (currently: none). You should modify the mountpoint in /etc/fstab for /dev/shm with those options and remount"

I couldn't find any clear answer for this issue in this forum please give me a clear answer what should i do with this problem

I found some way in the internet and i did them but after that i had this error and i had to reinstall directadmin again "Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"

CentOS 6.3 32-bit
VPS - vmware

Thanks.
 
Hello,

Check this:
http://forum.directadmin.com/showthread.php?t=29608&page=2&p=153698#post153698

If you had enough RAM then you'd better do this (before to do that, you should take care of previously existing /tmp and it's content):

Code:
mount tmpfs /tmp -t tmpfs

http://wiki.centos.org/TipsAndTricks/TmpOnTmpfs

Not sure about VMWare, but you might need to apply extra actions to make your /tmp mounted after reboot. Check this:
http://forum.directadmin.com/showthread.php?t=38033&highlight=loop

Regarding MySQL try to start it with empty /etc/my.cnf if does not help, then you should read mysql error log in order to understand what might a failure to start be caused by.
 
Hi

Thanks for your answer but may you tell me which one is really correct because there is more than 5 ways to solve this problem, please write the true solution for me, You know what , i really afraid to touch it :D

Thanks again
 
They all (at least those which are posted here on the forums) are probably correct, and any of them can be used. If you want a detailed answer for your particular case, then I might need to do that myself, as I need your server details. Of course if I login into your server and configure the things, then it will cost you some money (feel free to PM me for a quote or visit my web-site for details).
 
Back
Top