The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Increasing number of inodes for /tmp using securetmp script

Discussion in 'Security' started by kavos1332, Nov 1, 2014.

  1. kavos1332

    kavos1332 Active Member

    Joined:
    Dec 17, 2012
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi All,

    My server is hardened by using cPanel's securetmp script. I have installed Nginx using Nginx Admin plugin. My problem is every few days, Nginx fails to processes some phppages and states in its logs that no space is left in /tmp. However in such cases, "df -h" shows that a lot of disk space is left on the tmpDSK which is mounted under /tmp. So I think no inode is left on the device. So I would like to mount /tmp with some more inodes. As I know tmpDSK is mounted on boot so there should be a setting that can control number od inodes.

    I look forward for your helpful answers.
    TIA
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You will have to setup the cron job to clean /tmp directory, Following cron will automatically cleanup your /tmp/nginx_client directory so that you will not get any issues with tmp inodes.

    Code:
    0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest reviewing the /tmp partition to verify what's taking up the available inodes. It's possible that you need to setup a tmpwatch script as referenced in the previous post to automatically clean up older files.

    Thank you.
     
Loading...

Share This Page