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.

Server Problem

Discussion in 'General Discussion' started by Tapan, Aug 18, 2005.

  1. Tapan

    Tapan Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandigarh
    Hi,

    Server was working fine suddenly on php script which uses session started giving this error:

    Warning: session_start(): open(/tmp/sess_2b8b5fabc5e0bef053fa75022047b678, O_RDWR) failed: Permission denied (13) in /home/njabbco/public_html/job/conn.php on line 2

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/njabbco/public_html/job/conn.php:2) in /home/njabbco/public_html/job/conn.php on line 2

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/njabbco/public_html/job/conn.php:2) in /home/njabbco/public_html/job/conn.php on line 2


    This is with all the accounts, scripts etc. which are using session. Please help me quickly.

    Thanks.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Is your /tmp directly got the correct permissions on it? That is:

    chmod 1777 /tmp
     
  3. Tapan

    Tapan Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandigarh
    Hi chirpy,

    Thanks it got worked with that. But now i wonder how did /tmp permission got changed on its own in the first place ?

    Thanks.
     
  4. elix

    elix Well-Known Member

    Joined:
    Jan 18, 2005
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    If you were trying to secure tmp or if your admin was, maybe that's the reason?

    Regards,
     
  5. Tapan

    Tapan Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandigarh
    Hi,

    Admin said it was due to the server reboot. The reboot caused the permissions change. But now they say they have added it somewheer and it won't cause any more problem if server is restarted.

    Thanks.
     
Loading...

Share This Page