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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 /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 /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
| ||||
| ||||
| 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 Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| 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
| ||||
| ||||
| 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 Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#5
| |||
| |||
| 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 |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot access admin | wstinnett | osCMax v2 Installation issues | 5 | 12-09-2006 10:37 AM |
| Warning messages on clean install | innovations | osCMax v1.7 Installation | 1 | 10-25-2004 11:58 PM |
| Lost admin access | pluggin | osCommerce 2.2 Modification Help | 5 | 04-25-2004 02:54 PM |
| cant access admin | Christy | osCMax v1.7 Discussion | 1 | 01-05-2004 08:50 AM |
| can access admin panel but cannot access catalog | Anonymous | osCMax v1.7 Discussion | 1 | 10-14-2003 05:28 PM |