Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can not log into Admin


degsey69

Recommended Posts

I have searched the forums for an answer to my problem.

 

I put my oscommerce website as a demo onto another server on a subdirectory and configured it and changed the skin of it.

 

I then installed a fresh install of oscommerce on the main directory of my webserver (using fantastico) and then I overinstalled the backup of my demo, I changed the configure.php to thr new server setup. I backed up the sql database of the demo site, dropped the tables and restored that database to the new server.

 

Everything looks ok on the website, but I can not log into the admin area, both user and passwords were identical on both servers.

 

Is there something I overlooked on the install?

 

Reading through the related subjects the sessions in the configure.php file are set to 'mysql'

 

Is there a php file that I can put on the server that will get me into the admin area or a way to reset the password and user to get me in there.

 

Thanks

 

Derek

Link to comment
Share on other sites

I have searched the forums for an answer to my problem.

 

I put my oscommerce website as a demo onto another server on a subdirectory and configured it and changed the skin of it.

 

I then installed a fresh install of oscommerce on the main directory of my webserver (using fantastico) and then I overinstalled the backup of my demo, I changed the configure.php to thr new server setup. I backed up the sql database of the demo site, dropped the tables and restored that database to the new server.

 

Everything looks ok on the website, but I can not log into the admin area, both user and passwords were identical on both servers.

 

Is there something I overlooked on the install?

 

Reading through the related subjects the sessions in the configure.php file are set to 'mysql'

 

Is there a php file that I can put on the server that will get me into the admin area or a way to reset the password and user to get me in there.

 

Thanks

 

Derek

 

Hi

 

Have a look at your path. Take a look in the file /admin/include/configure.php how your absolute path is set.

I'm on a hosted server and I did install the osc straight under my public folder without the catalog, so my path is like this:

 

define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/name-of-my-sourceOscommercefolder/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/name-of-my-sourceOscommercefolder/'); // absolute path required

define('DIR_FS_CATALOG', '/name-of-my-sourceOscommercefolder/'); // absolute path required

 

And this works for me.

Don't forget to chmod your admin folder so you have (RWE) and don't forget to put a passwd on that folder.

Hope this will help a bit.

 

/Peter

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...