ivax23 Posted December 8, 2005 Posted December 8, 2005 Hello, i found and i read lots of forums searching the solution, but i didn't find out it. After the installation problem, i can read: Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/localhost/htdocs/virtual/calzate.es/:/usr/lib/php/:/tmp/) in /var/www/localhost/htdocs/virtual/calzate.es/htdocs/catalog/includes/functions/sessions.php on line 118 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/localhost/htdocs/virtual/calzate.es/htdocs/catalog/includes/functions/sessions.php:118) in /var/www/localhost/htdocs/virtual/calzate.es/htdocs/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/localhost/htdocs/virtual/calzate.es/htdocs/catalog/includes/functions/sessions.php:118) in /var/www/localhost/htdocs/virtual/calzate.es/htdocs/catalog/includes/functions/sessions.php on line 67 anybody knows the solution? Thanks, Xavi
♥Vger Posted December 8, 2005 Posted December 8, 2005 Your hosting company is running PHP in Safe Mode. This means that even if you have decided to store sessions in the database and not in files in a 'tmp' folder you have to provide a full pathway to your 'tmp' folder in your osC admin panel under Configuration --> Sessions. The pathway, by default, shows as tmp/ and this needs to be changed to your full DIR_FS_CATALOG pathway (as in your includes/configure.php file), with the addition of tmp/ on the end of it. So if your DIR_FS_CATALOG pathway is /var/www/html/ then your session directory pathway would be /var/www/html/tmp/ The other errors are caused by the first and will disappear when this is resolved. Vger
Kjolebutikken Posted December 9, 2005 Posted December 9, 2005 Your hosting company is running PHP in Safe Mode. This means that even if you have decided to store sessions in the database and not in files in a 'tmp' folder you have to provide a full pathway to your 'tmp' folder in your osC admin panel under Configuration --> Sessions. The pathway, by default, shows as tmp/ and this needs to be changed to your full DIR_FS_CATALOG pathway (as in your includes/configure.php file), with the addition of tmp/ on the end of it. So if your DIR_FS_CATALOG pathway is /var/www/html/ then your session directory pathway would be /var/www/html/tmp/ The other errors are caused by the first and will disappear when this is resolved. Vger Hi Vger, seems like you have the solution of my problems. I also have exact same warnings. What do I do when i dont get to open admin panel in configuration? I managed to open it before, but after passwordprotecting my admin folder, I get this message also: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. But I have set register global = on in controlpanel on my server. Can you help me a bit more with this? best regards Kjolebutikken Best regards Kjolebutikken
Kjolebutikken Posted December 9, 2005 Posted December 9, 2005 Hi Vger, seems like you have the solution of my problems. I also have exact same warnings.What do I do when i dont get to open admin panel in configuration? I managed to open it before, but after passwordprotecting my admin folder, I get this message also: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. But I have set register global = on in controlpanel on my server. Can you help me a bit more with this? best regards Kjolebutikken I've got the problems solved. I was not able to enter admin in oscommerce so I did the last part of this. The first part seems much like what Vger suggested for you: ......... Cause : Previous bug in PHP fixed in latest version (Chances are your ISP has updated to the new version) Fix: Goto Admin / Configuration / Sessions and change the "Sessions Directory" to tmp (no slashes) If you can't get into Admin, goto your Database Admin page (usually PhPAdmin app.) Click on any table on the left hand side. Click on SQL at the top of the screen Overtype whatever appears in the SQL window with ... UPDATE configuration SET configuration_value = 'tmp' WHERE configuration_key='SESSION_WRITE_DIRECTORY' Click GO ............... God luck!!! Kjolebutikken Best regards Kjolebutikken
Recommended Posts
Archived
This topic is now archived and is closed to further replies.