Skip to main content

PHP session.save_path, is there a way to set this globally to use what ever the user account is writ

Comments

7 comments

  • cPanelMichael
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is Hello :) You could place an individual php.ini file within each account if you are using a handler that supports it (e.g. suPHP). You could develop a script that automatically updates that path for each php.ini file that's copied to the account's home directory. Thank you.
    0
  • golden_eyes
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is Thank you for reply. In this case I'm allowing the users to update the php.ini and enabling some functions that are disabled globally, the safe_mode is too critical, when I disable it from the global php.ini, the user can enable it from his php.ini. Is there another idea could cover my needed? Please note that the purpose of this request is when I run the /scripts/securetmp it apply permission that couldn't be used by the php script as you see the error below: Warning: session_start(): open(/tmp/sess_cb74e63e592957cffb4231f421282590, O_RDWR) failed: Permission denied (13)
    0
  • Misiek
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is That's basically something wrong but not with secure tmp that should not affect writing session files to tmp. Do You use suPHP
    0
  • golden_eyes
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is Yep, I'm using the suPHP and gettting the error
    0
  • Misiek
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is
    ]Yep, I'm using the suPHP and gettting the error

    Basically You can place in each public_html in .htaccess line suPHP_ConfigPath /home/user/ Then place in this folder each time You crate an account php.ini file, then You will have custom php.ini on each account. Second way You can just set session.save_path to folder like /home/sessions/ and on this folder give permission 777 then in php.ini add to disable_functions = phpinfo, and thats it.
    0
  • sailendra
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is No the above code doesn't use because this gives error
    0
  • cPanelMichael
    Re: PHP session.save_path, is there a way to set this globally to use what ever the user account is
    ]No the above code doesn't use because this gives error

    Could you elaborate on the specific error message you are receiving? Do you have root access to this system? Thank you.
    0

Please sign in to leave a comment.