Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to login as Admin


Hyarion

Recommended Posts

Posted

I recently moved an osCommerce install to a new server and am having an issue logging in as an admin. Everything works great except osCommerce doesn't seem to want to recognize my admin login. The user/pass are listed plain as day in /catalog/admin/include/configure.php yet when I try to login with those details it just keeps prompting until it gives up and says "Authorization Required" There is no .htpasswd or anything which would prevent access to the files and I'm at a loss as to what could be the problem. If anyone could point me in the right direction it would mean a lot as I've been stumped on this for weeks now. Thanks for your time.

Posted

Site access has nothing to do with osCommerce - it's either set in your Hosting Control Panel or in an .htaccess file. Please note that .htaccess files are usually invisible, so you need to set your FTP program to show them to you. If you can't access the folder without authorisation, then my guess is that you have an .htaccess file in /admin/.

 

The username/password in configure.php are for the MySQL access only and have nothing to do with the admin folder protection.

 

all the best, Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Posted

Hello Terra,

 

Unfortunately it is not .htaccess restricting the folder. Below is what is found uncommented in the .htaccess, the one in root is identical.

 

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

 

The admin login and pass is not the database login and password but a separate one. I'm unsure if it is extension or not but it uses authen.php

 

  define('ADMIN_USERNAME', '*****');
 define('ADMIN_PASSWORD', '*****');
 define('HTTP_SERVER', 'http://www.shirepost.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.shirepost.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.shirepost.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/virtual/shirepost.com/var/www/html/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/mayoralty/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/virtual/shirepost.com/var/www/html/catalog/mayoralty/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/virtual/shirepost.com/var/www/html/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '*****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', 'shirepost_com_-_store');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Thanks for the help.

Posted

How did you move the site? Did you just re-upload all the files then change the configure files?

 

You need to set up the password protected admin folder with your new host - that's where the username and password would be set - do you have a control panel you can log on to and check?

Posted

Hello nat, thanks for your response.

 

I simply reuploaded the files, database, and reconfigured the files. As stated, the password and username is set within the /catalog/admin/includes/configure.php file. It is this exact login that works correctly on the old server and it works in conjunction with authen.php. Whether that is an extension or not I don't know, but most people seem to not be familiar with it.

 

Thanks for your help.

Archived

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

×
×
  • Create New...