Results 1 to 5 of 5

Warning messages and no admin access

This is a discussion on Warning messages and no admin access within the osCMax v1.7 Installation forums, part of the osCmax v1.7 Forums category; Hi, I installed oscmax v1.7 on my PC a while ago and I'm now trying to do the same install ...

      
  1. #1
    Lurker
    Join Date
    Feb 2007
    Posts
    4
    Rep Power
    0


    Default Warning messages and no admin access

    Hi,

    I installed oscmax v1.7 on my PC a while ago and I'm now trying to do the same install for my website.

    I ftp'd the catalog directory (fresh copy of oscmax) to my webspace and the install seemed to go Ok however I get the following warnings when I go to the catalog www.******.com/catalog.

    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in
    effect. File(/tmp) is not within the allowed path(s): (/home/******/public_html in /home/******/public_html/catalog/includes/functions/sessions.php on line 118

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers
    already sent by (output started at
    /home/******/public_html/catalog/includes/functions/sessions.php:11 in
    /home/******/public_html/catalog/includes/functions/sessions.php on line 67

    Warning: session_start() [function.session-start]: Cannot send session cache limiter -
    headers already sent (output started at
    /home/******/public_html/catalog/includes/functions/sessions.php:11 in
    /home/******/public_html/catalog/includes/functions/sessions.php on line 67


    When I try to access the admin www.******.com/catalog/admin I get the following warnings and I don't even see the admin console!

    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in
    effect. File(/tmp) is not within the allowed path(s): (/home/******/public_html) in
    /home/******/public_html/catalog/admin/includes/functions/sessions.php on line 110

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers
    already sent by (output started at
    /home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
    /home/******/public_html/catalog/admin/includes/functions/sessions.php on line 67

    Warning: session_start() [function.session-start]: Cannot send session cache limiter -
    headers already sent (output started at
    /home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
    /home/******/public_html/catalog/admin/includes/functions/sessions.php on line 67

    Warning: Cannot modify header information - headers already sent by (output started at
    /home/******/public_html/catalog/admin/includes/functions/sessions.php:110) in
    /home/******/public_html/catalog/admin/includes/functions/general.php on line 86

    I've found quite a few threads relating to similar warning messages but I still can't sort things out.. guess I'm just being stupid as usual!!

    Anyway the things I've tried so far are..

    tried install with file session storage and also with database session storage
    adding a tmp directory to the root of my webspace.
    changed line in catalog/includes/configure.php and catalog/admin/includes/configure.php "define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'"
    also followed the advice at osCommerce Knowledge Base: Post-Installation
    changed permissions of ALL the files and sub directories in the catalog directory to 777

    I know it could ake me a very, very long time to get rid of these warnings without any help so I'd really appreciate some advice.

    Thanks
    Stuart

  2. #2
    osCMax Developer

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


    Default Re: Warning messages and no admin access

    You need to change the session save path to something other than /tmp (it has to be in your account path, and /tmp is not in that path).

    Set the sessions to be stored in mysql to get around this issue.

    define('STORE_SESSIONS', 'mysql');

    Do this in both the catalog configure.php and the admin configure.php file.
    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

  3. #3
    Lurker
    Join Date
    Feb 2007
    Posts
    4
    Rep Power
    0


    Default Re: Warning messages and no admin access

    Thanks for the help but I'm still getting the same warning messages..

    I had already tried changing the session storage to mysql but I did so again this morning as a further test.

    The session storage line now reads as shown below in both catalog/includes/configure.php and catalog/admin/includes/configure.php.

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

    I'm obviously doing something wrong as the first warning message...

    Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/mysnackcom/public_html) in /home/mysnackcom/public_html/catalog/includes/functions/sessions.php on line 118

    .... when I go to the catalog still suggests that /tmp is still being used for session sorage.

    Please can you help some more.

    Thanks
    Stuart




  4. #4
    osCMax Developer

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


    Default Re: Warning messages and no admin access

    The problem is pretty simple. Your server doesn't allow you to save files outside of this path: /home/mysnackcom/public_html

    you have sessions set up to save to /tmp which is outside that path. You need to set your sessions to save into your database to work around this. If you do it correctly there is no issue, since it will not save outside your allowed path. Or you could create a directory like /home/mysnackcom/public_html/tmp and chmod it 777. Then set osCMax to save sessions to that path.

    If you have the cache turned on, you will also need to set the cache path to your allowed path.
    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

  5. #5
    Lurker
    Join Date
    Feb 2007
    Posts
    4
    Rep Power
    0


    Default Re: Warning messages and no admin access

    Thanks for your help.. it's now working although I had to change the session path in the sql install file.

    I was already aware that the tmp path was outside of my web space I just didn't know how to change it.. anyway it took a while but it now seems fine.

    Stuart

Similar Threads

  1. Cannot access admin
    By wstinnett in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 12-09-2006, 10:37 AM
  2. Warning messages on clean install
    By innovations in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 10-26-2004, 12:58 AM
  3. Lost admin access
    By pluggin in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 04-25-2004, 03:54 PM
  4. cant access admin
    By Christy in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-05-2004, 08:50 AM
  5. can access admin panel but cannot access catalog
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-14-2003, 06:28 PM

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
  •