Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkiko
    • CommentTimeApr 2nd 2006
     
    I have install plogger but when I finnish I see this Warning on main menu and admin menu:

    Warning: session_start(): open(/tmp/sess_259b6dbfea0dfacbc7de302d38714636, O_RDWR) failed: Permission denied (13) in /web/htdocs/www.kik0.com/home/fotos/plog-globals.php on line 5

    My web site is: http://www.kik0.com/fotos/
    Admin menu: http://www.kik0.com/fotos/admin

    Can anyone help me?
    Thanks
    • CommentAuthorTerje
    • CommentTimeApr 2nd 2006
     
    Have you chmod the files to 777?
    •  
      CommentAuthormike
    • CommentTimeApr 2nd 2006
     
    Did you setup your own LAMP environment or are you hosted with a web hosting company?

    It looks like your tmp directory is not setup correctly, Plogger cannot save session data unless it has access to the tmp directory.
    • CommentAuthorkiko
    • CommentTimeApr 2nd 2006
     
    Im using aruba.it hosting. (http://www.aruba.it)

    How can I create tmp directory?
    • CommentAuthorddejong
    • CommentTimeApr 2nd 2006 edited
     
    Here is my best sessions analogy:
    Imagine you're at the theatre, and you check your coat at the coat check. They give you a tag with a number, which corresponds to the number on the coat hangar.

    But the pockets are filled with important information, so every intermission, you visit the coat check to retrieve your jacket; and every time you do, you have to show your tag to get your own jacket back.

    A session is data stored by the webserver (e.g. Apache) and a session ID is given to the browser in a cookie. When you visit the page, the page requests the session ID from your browser and retrieves the appropriate information. If you have lost or don't have an ID, it will make you a new one.

    The server stores all of the sessions (coats) in a temporary directory, because session files are constantly being created and destroyed (given and taken by patrons) -- they are of a temporary nature. Unfortunately, this is (usually) a server setting, and requires that you contact them regarding setting a temporary directory for PHP; any PHP host would be expected to set a temporary directory, so it's likely you're on a new server or... recently had their harddrives eaten by sharks. Definitely something.

    Hope that helps,
    Derek
    • CommentAuthorddejong
    • CommentTimeApr 3rd 2006
     
    So, I lied; I was reviewing session-handling today at php.net, and it looks like you CAN specify the session save directory at runtime!

    1. Go to /web/htdocs/www.kik0.com/home/
    2. Create a directory called "tmp"
    3. Give it 775 permissions

    Now you can EITHER:
    4. Create an .htaccess file and add:
    php_value session.save_path /web/htdocs/www.kik0.com/home/tmp/
    - or -
    5. Put this at the beginning of your core files (within <?php?> tags):
    session_save_path("/web/htdocs/www.kik0.com/home/tmp/");

    For more info, start here: http://ca.php.net/manual/en/function.session-save-path.php

    Hope that helps,
    Derek
    • CommentAuthorkiko
    • CommentTimeApr 4th 2006
     
    The problem was tmp directory. All right.
    Thanks for help.

    > : D
    • CommentAuthoramerali
    • CommentTimeDec 17th 2008
     
    Hi,

    I tried both of these suggestions but can't seem to get it to work for me!

    I am trying to configure it on site5.com.

    Funny thing is, It works for me under one domain but not under another!

    I tried creating a tmp folder and chmoding it to 755, as well as updating the .htaccess file but no luck.

    Any other ideas?

    Thanks,

    Art