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.

User can't write to /tmp

Discussion in 'General Discussion' started by Garrettj94, Oct 28, 2015.

  1. Garrettj94

    Garrettj94 Active Member

    Joined:
    Oct 1, 2015
    Messages:
    36
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Arizona
    cPanel Access Level:
    Website Owner
    I recently updated PHP to 5.5 on my server, and now it's causing a few problems. I have 2 WordPress sites with the same theme, and there is an issue with one of the plugins. Here is one of the PHP warnings:

    Warning:
    session_start(): open(/tmp/sess...) failed: Permission denied (13) in /plugins/custom-sidebars/functions-wpmulib.php on line 69

    In SSH, I entered "sudo chown -R USER /tmp" user being the ftp user for WP site 1. This fixed the issue for WP site 1, and when I try to do the command for WP site 2, it fixes it and breaks WP site 1 again. I have no clue what to do now.

    Edit: Also, the path for session.save_path is /tmp
     
  2. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    How do you have your PHP configured in Apache? Do both sites have the same unix user or different? Can you confirm there is enough space and enough free inodes in /tmp partition?
     
    Garrettj94 likes this.
  3. Garrettj94

    Garrettj94 Active Member

    Joined:
    Oct 1, 2015
    Messages:
    36
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Arizona
    cPanel Access Level:
    Website Owner
    "df /tmp": Filesystem 1K-blocks Used Available Use% Mounted on
    /usr/tmpDSK 4128448 139872 3778864 4% /tmp​
    "df -i":
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda3 17752064 253839 17498225 2% /
    tmpfs 986006 1 986005 1% /dev/shm
    /dev/sda1 65536 45 65491 1% /boot
    /usr/tmpDSK 262144 883 261261 1% /tmp

    And not sure how to check if both sites are sharing same user...
     
  4. Garrettj94

    Garrettj94 Active Member

    Joined:
    Oct 1, 2015
    Messages:
    36
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Arizona
    cPanel Access Level:
    Website Owner
    Could it be a cache issue? It's not showing the errors in Firefox...
     
  5. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Does these 2 sites each have their own cpanel user or the same?
    You should not run "sudo chown -R USER /tmp". as this changes owner for /tmp itself.
    Try fixing /tmp with:

    chown root.root /tmp
    chmod 777 /tmp
    then try cleaning all session data (well, if that is safe)

    find /tmp -name sess\* -type f -exec rm -f {} \;​

    Not sure why browsers shown/don't show errors, that should not be the case, since those errors are generated on server. Try cleaning session data first..
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is that plugin up to date? Lots of results searching google for:
    "functions-wpmulib.php on line 69"
     
Loading...

Share This Page