Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/tmp files

Discussion in 'General Discussion' started by tAzMaNiAc, Jul 12, 2003.

  1. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sachse, TX
    What exactly writes to the /tmp dir - I notice many sess_**************** files and i noticed one of them had kept pretty confidential information in the open.

    Any ideas how I can stop those being written to a public directory.......

    Brenden

    cPanel.net Support Ticket Number:
     
  2. Angel78

    Angel78 Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    413
    Likes Received:
    1
    Trophy Points:
    318
    Those are just session files created by php scripts ( i use them for auctions, shops...etc).

    cPanel.net Support Ticket Number:
     
  3. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    Each account has its own tmp directory in /home/user/
    (if not, you could create one :) )

    In httpd.conf you can add the following line in the virtualhost directive:

    php_admin_value session.save_path /home/user/tmp/

    Check to be sure it works ofcourse :)

    More info on session_save_path:
    http://www..php.net/session_save_path

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice