Set local domain tmp folder for PHP

Discussion in 'PHP' started by digitaldude, Feb 15, 2008.

  1. #1
    PHP sessions is failing to write on my websites on my server. Also, using a ftp script with ftp module, my server does not seem to recognize the server output. I think it's an issue with my server tmp file, but my sys admin says it's fine....However, unless I supress session data with @ I get errors.

    Sooo, how can I create a tmp folder for just the domain I am having issues with? Is that a php.ini, httpd.conf or can it be done though htaccess?
     
    digitaldude, Feb 15, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello,

    You should be able to do that in httpd.conf or php.ini. This is the value you may need to change:

    session.save_path = "/the/tmp/folder"

    You will need to make sure that /the/tmp/folder is CHMOD 0777.

    Jay
     
    jayshah, Feb 16, 2008 IP
  3. asdalol

    asdalol Well-Known Member

    Messages:
    320
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #3
    is it possible to set that using htaccess? if you dont have access to the php.ini file

    thanks
     
    asdalol, Feb 16, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    It may be, using the

    
    php_value
    
    Code (markup):
    
    php_admin_value
    
    Code (markup):
    
    php_admin_flag
    
    Code (markup):
    flags in your .htaccess file.

    Jay
     
    jayshah, Feb 16, 2008 IP
  5. able

    able Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I had the same problem recently, use:

    php_value session.save_path '/path/to/site'
     
    able, Feb 16, 2008 IP