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.

Permission denied(13) - Time to time O_RDWR) Apache Session Start

Discussion in 'General Discussion' started by Marcelo Medina, Jul 19, 2015.

  1. Marcelo Medina

    Marcelo Medina Registered

    Joined:
    Jul 19, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello There
    Im getting this message:

    session_start(): open(/tmp/sess_d8e470cdf52a0e82ed51caa725f67ac6, O_RDWR) failed: Permission denied (13)

    But not all the time, just few users get this message. And than in error_log I saw hundreds of this error. Also this happens in high traffic hours.

    I just reinstall cpanel, update apache and php, transfer the web. And the problem is there. I can't figure out what is gone on. I tried everything:
    Change session path, set new chmod. And it does not worked :(
     
  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
    Hello,

    What is /tmp permission ?

    Can you please try to setup 1777 permission and check it.
     
  3. Marcelo Medina

    Marcelo Medina Registered

    Joined:
    Jul 19, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi.

    Thanks for the reply.
    Yes I tried that too. Seems like it work for just few minutes than problem back. The same php-script is running in other cpanel/apache/php5.4 version, and it ok. Just with new server, new instalation.
    I also tried every stable version of php and apache with easyupdate. And same profile (easyupdate profile) as well, that used in server which is ok.

    And the problem begins after some traffic. Like 300 requets/s, but some times less than that. And not for all users, just around 30% of the website users.

    Its a nightmare for and I can't figure out.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Which PHP handler (e.g. suPHP, DSO) is in use on this server? Is the "session.save_path" value configured in the /usr/local/lib/php.ini file?

    Thank you.
     
  5. Marcelo Medina

    Marcelo Medina Registered

    Joined:
    Jul 19, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello

    Im using: dso, suEXEC off, ruid on

    And yes it is set on php.ini

    Thanks for reply
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you verify the permissions on /tmp are unchanged and remain at 1777? Is it possible the /tmp partition is reaching it's disk space or inode limit? Could you verify again that no output appears in /usr/local/apache/logs/error_log when this happens?

    Thank you.
     
Loading...

Share This Page