nokaNET Posted July 23, 2005 Share Posted July 23, 2005 Hi, I'm new at this and I just moved the catalog folder to a new URL. ...Bad idea :'( I installed new MySql, downloaded OSC 2 and copied the install folder to my old folder. I then ran the install and it looks like it did the trick. However, I'm receiving the following erros: Warning: session_start(): open(SESSION_WRITE_DIRECTORY/sess_9a106590150ab73923e2a5959161780f, O_RDWR) failed: No such file or directory (2) in /home/autosour/public_html/inventory/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/autosour/public_html/inventory/includes/functions/sessions.php:67) in /home/autosour/public_html/inventory/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/autosour/public_html/inventory/includes/functions/sessions.php:67) in /home/autosour/public_html/inventory/includes/functions/sessions.php on line 67 And I can't login to the OSC admin control panel. I tried the old passwords and the defaults but it didn't work. Can someone please help me. Help! SOS Help! :o Link to comment Share on other sites More sharing options...
OceanRanch Posted July 23, 2005 Share Posted July 23, 2005 Store sessions in the database. Change two versions of the configure.php file in catalog/includes/ catalog/admin/includes/ at the bottom of each file change the define for sessions to 'mysql'. HTH Tom Link to comment Share on other sites More sharing options...
nokaNET Posted July 23, 2005 Author Share Posted July 23, 2005 Thanks, Tom. How do I store sessions in the database? Do I have to add a table called "sessions"? ...sorry, but I'm new at this. Link to comment Share on other sites More sharing options...
nokaNET Posted July 23, 2005 Author Share Posted July 23, 2005 Hey, Tom - It worked! :D You're the man! Thank you, thank you, thank you. ...but I still can't login to my admin panel. I used the default user name and pass, as well as my old ones but I can't get in. Is there a file I can lookin to find this info or can I reset it somewhere? Thanks again and Aloha! Link to comment Share on other sites More sharing options...
OceanRanch Posted July 24, 2005 Share Posted July 24, 2005 Hi Norman, The admin login user/password depends upon what method you or your host has setup for you. Oscommerce does not provide a security protection scheme. If you are managing your website with a control panel provided by your host (like cPanel), then you should be able to travers to the admin folder and choose security/permissions etc. from the cpanel menus and manage the access to that folder (delete and re-add a users etc.). You might also try traversing to the admin folder and right click with you mouse to see if a popup menu will provide "permissions/users". If you are running with an apache webserver then you might have a .htaccess file in the admin folder that controls users and tells apache wher the password file is. There is a contribution in the oscommerce contrib section that describes .htaccess stuff as well as lots of info on the internet. The quickest way to solve this is contact your host and ask him how he has the admin folder protected. Also, when entering user name and password, remember upper and lowcase counts. (unset your caps lock key). You can also delete the .htaccess file in the admin folder for unlimited access and reset later or install a contribution called "admin with access levels".....search in contrib section. HTH Tom Link to comment Share on other sites More sharing options...
nokaNET Posted July 24, 2005 Author Share Posted July 24, 2005 Thanks, Tom - I was able to fix it, and you were right. Fortunatly I have access to my server via CPanel and I found a link that creates the .htaccess and explains the password recovery: Password Recovery Link Thanks again for all you help and Aloha from Honolulu! :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.