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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 ??? ) |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| 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
| |||
| |||
| 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
| ||||
| ||||
| CHMOD 444
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange warnings. Help! | EPierre | osCommerce 2.2 Discussion | 0 | 11-09-2006 07:27 PM |
| Session Cookies and Cache Warnings | Plastic | osCMax v2 Installation issues | 0 | 12-04-2005 06:30 PM |
| SSL Errors, Session Cookie, Session Cache, NOVICE Problems? | hanool | osCommerce 2.2 Modification Help | 1 | 09-07-2003 12:49 PM |
| Please help: Warnings... | laonux | osCommerce 2.2 Installation Help | 3 | 02-23-2003 09:10 AM |