Guest Posted April 17, 2007 Posted April 17, 2007 Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/ I get this warning: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 939 is not allowed to access /tmp owned by uid 0 in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 148 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Is this a normal install error ? Any advice for me ?
Guest Posted April 17, 2007 Posted April 17, 2007 Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/ I get this warning: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 939 is not allowed to access /tmp owned by uid 0 in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 148 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Is this a normal install error ? Any advice for me ?
Guest Posted April 17, 2007 Posted April 17, 2007 Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/I get this warning: Is this a normal install error ? Any advice for me ? Hi Robert and welcome to OSC! If you look at the bottom of your configure file where does it say you are storing sessions? You will find the file in includes/configure.php If you are storing in MySql change it to read define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' Regards Mark
Guest Posted April 17, 2007 Posted April 17, 2007 Hi Robert and welcome to OSC!If you look at the bottom of your configure file where does it say you are storing sessions? You will find the file in includes/configure.php If you are storing in MySql change it to read define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' Regards Mark Hi Mark, and thanks for a quick reply. Im not sure what you mean about changing it to READ ? (you want me to chmod the file to 444 ? which it already is !) Im tried to remove the 'mysql' and left it blank, and now the error code is as follow Warning: session_start() [function.session-start]: open(tmp/sess_5928c550035eb0100c7669706f93d459, O_RDWR) failed: No such file or directory (2) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: The sessions directory does not exist: tmp. Sessions will not work until this directory is created. Any more advice for me ? Kind regards Robert
Guest Posted April 17, 2007 Posted April 17, 2007 Hi Robert and welcome to OSC!If you look at the bottom of your configure file where does it say you are storing sessions? You will find the file in includes/configure.php If you are storing in MySql change it to read define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' Regards Mark Hi Mark, and thanks for a quick reply. Im not sure what you mean about changing it to READ ? (you want me to chmod the file to 444 ? which it already is !) Im tried to remove the 'mysql' and left it blank, and now the error code is as follow Warning: session_start() [function.session-start]: open(tmp/sess_5928c550035eb0100c7669706f93d459, O_RDWR) failed: No such file or directory (2) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97 Warning: The sessions directory does not exist: tmp. Sessions will not work until this directory is created. Any more advice for me ? Kind regards Robert
jasonabc Posted April 17, 2007 Posted April 17, 2007 Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
jasonabc Posted April 17, 2007 Posted April 17, 2007 I posted the solution in the other thread you opened on this topic. Check this out also - covers all the bases: http://www.oscommerce.com/forums/index.php?sho...mp;#entry993504 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Andrew Yuen Posted April 18, 2007 Posted April 18, 2007 Topic merged, please do not double post. Andrew Yuen osCommerce, Community Team
Guest Posted April 18, 2007 Posted April 18, 2007 Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes) Perfect.. All warning is now gone, the next problem is that there is no password or username promt when accesing http://www.autonordic.com/catalog/admin/ And then i looked into the ducomentation.pdf which comes with the download, and there it says as follow You need to .htaccess your /catalog/admin directory so that it is password protected. Youcan use the password manager in your server admin area like cpanel. My host is using phpMyAdmin - 2.10.0.2, and i can not find anything about the .htaccess file anywhere ? Any advice to this matter ?
Guest Posted April 18, 2007 Posted April 18, 2007 Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes) Perfect.. All warning is now gone, the next problem is that there is no password or username promt when accesing http://www.autonordic.com/catalog/admin/ And then i looked into the ducomentation.pdf which comes with the download, and there it says as follow You need to .htaccess your /catalog/admin directory so that it is password protected. Youcan use the password manager in your server admin area like cpanel. My host is using phpMyAdmin - 2.10.0.2, and i can not find anything about the .htaccess file anywhere ? Any advice to this matter ?
jasonabc Posted April 18, 2007 Posted April 18, 2007 Go to your web hosting control panel. There should be a Password Protect Directories link or icon. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Guest Posted April 18, 2007 Posted April 18, 2007 Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes) it is a bad thing to do placing the sessions directory within the www space. It should be a qualified path outside the www space.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.