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.

sessions save path in php.ini

Discussion in 'General Discussion' started by NoAgendas, Aug 17, 2006.

  1. NoAgendas

    NoAgendas Guest

    phpsuexec enabled
    centos 4 / php 5.1.4

    I need to add a session save path a cleint's php.ini (for Joomla).

    Where should I place the below in the php.ini file? Seems like I must have it wrong location.

    session.save_path = "/tmp/www"

    I made a test file that checks the sesion save path and register globals:
    http://www.domain.org/mike.php

    In the same folder the php.ini is in place to set the session save path to /tmp and turn register globals off:
    http://www.domain.org/php.ini

    When the mike.php file is run, it does not show the session save path and register globals is on, opposite of the settings in the php.ini file.

    Went through the golden rules:
    1) Files and folders are 755 or less
    2) All files and folders are dtjones:nosmoking
    3) Reuploaded files with ASCII and confirmed it in the log
    4) No .htaccess in the public_html folder and created the php.ini file above.
    5) Using a .php not a .html file

    x-httpd-php is set for php in the control panel

    I need to set the session save path. Thank you for your help
     
  2. standardize

    standardize BANNED

    Joined:
    Jul 16, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Same here, what's the fix?
     
  3. greetingsc

    greetingsc Active Member

    Joined:
    May 18, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Unlike what you have read in the forums from the past about using php.ini files to change settings; a change was made in php / phpsuexec that no longer allows you to use php.ini files in user directories. They simply are ignored (or rather not looked for). I believe your only option is to put the directive directly in the script (using ini_set function) or to set them globablly for the server.
     
  4. useradmin

    useradmin Well-Known Member

    Joined:
    Oct 8, 2004
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    INDIA
    Session Save Path

    if we set this path globally will server get any problem or security risk?
     
  5. ianmarie

    ianmarie Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Is this documented anywhere; I am finding that none of the settings that I place in .htaccess (server misconfig 500); or php.ini in a user directory; nor in httpd.conf have any affect.
    Changes made in php.ini (server wide) do have an affect; there must be some way of generating php config options for the individual user?
     
  6. greetingsc

    greetingsc Active Member

    Joined:
    May 18, 2004
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    ianmarie,

    As far as I know, not with PHP 5.2.x or greater and phpsuexec enabled. If your building a php app you can use ini_set() to set the variables inside your app, but otherwise I'm not sure your left with any options.

    Michael
     
  7. ianmarie

    ianmarie Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Php 4

    Oh - maybe I've misunderstood the thread; but I'm using PHP 4
     
  8. IsellCrack

    IsellCrack Registered

    Joined:
    May 27, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is There some way just to change the tmp location editing the configuration file?
     
Loading...

Share This Page