Results 1 to 4 of 4

Can you help me to fixe my first warnings ? session + right

This is a discussion on Can you help me to fixe my first warnings ? session + right within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hello, I'm french and new in the Oscommerce's world. So I just have finished my first install but I don't ...

      
  1. #1
    Lurker
    Join Date
    Oct 2003
    Posts
    2
    Rep Power
    0


    Default Can you help me to fixe my first warnings ? session + right

    Hello,
    I'm french and new in the Oscommerce's world.
    So I just have finished my first install but I don't know how to fixe these warnings appeared on my index.php ?
    It seems to be about "create the sessions directories" and I don't know how to do it ...
    Could anyone help me to start ?


    1°)
    Warning: session_start() [http://www.online.net/support/]: open(/tmp/.sess_d9db44e2eb57a02270a09856028d5d7d, O_RDWR) failed (you probably forgot to create the 'sessions' directory): Invalid argument (22) in sessions.php on line 67

    2°)
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/42/j/o/u/jouetenligne.com/www/Oscommerce/includes/functions/sessions.php:67) in sessions.php on line 67

    3°)
    Warning: is_dir() [function.is-dir]: SAFE MODE Restriction in effect. The script is not allowed to access a file owned by another uid in header.php on line 30 :
    Header :
    (// check if the session folder is writeable
    if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
    if (STORE_SESSIONS == '') {
    if (!is_dir(tep_session_save_path())) {)


    4°)
    Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.
    I put a /tmp every were but no way

    5°)
    Warning: I am able to write to the configuration file: /var/www/42/j/o/u/jouetenligne.com/www/Oscommerce/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

    (I check the right : it is to CHMOD 644 ??? )

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    You should store session in MySQL...

    In BOTH configure.php files - change the 2nd last line:

    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

    to:

    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

  3. #3
    Lurker
    Join Date
    Oct 2003
    Posts
    2
    Rep Power
    0


    Default

    Thank you. Now it's ok with session.
    But I always have a warning about configure.php.
    I check the CHMOD value and it's correct i think : CHMOD 644.
    This is the warning :
    Warning: I am able to write to the configuration file: /var/www/42/j/o/u/jouetenligne.com/www/Oscommerce/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.What can I do ?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    CHMOD 444
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Strange warnings. Help!
    By EPierre in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 11-09-2006, 07:27 PM
  2. Session Cookies and Cache Warnings
    By Plastic in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 12-04-2005, 06:30 PM
  3. SSL Errors, Session Cookie, Session Cache, NOVICE Problems?
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-07-2003, 12:49 PM
  4. Please help: Warnings...
    By laonux in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 02-23-2003, 09:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •