Jump to content

Archived

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

e-Discounters

.htpasswd_oscommerce

Recommended Posts

I have mistakenly deleted the ".htpasswd_oscommerce" file and don't have a copy of the file.

 

Now I can't get access to my osCommerce Administration tool.

 

Is there any suggestions or solutions?

Share this post


Link to post
Share on other sites

Hi,

 

you could download the .htaccess-file in your admin-directory and uncomment or remove the parts for the password protection.

 

Something like this and add # in front of each line:

##### OSCOMMERCE ADMIN PROTECTION - BEGIN #####
AuthType Basic
AuthName "osCommerce Online Merchant Administration Tool"
AuthUserFile /{YOUR}/{PATH}/{TO}/{PASSWORDFILE}/.htpasswd_oscommerce
Require valid-user
##### OSCOMMERCE ADMIN PROTECTION - END #####

 

In the same process, create an empty file. Just create a new text-document in your text-editor and save it as ".htpasswd_oscommerce".

Upload both files, the edited ".htaccess" and the empty ".htpasswd_oscommerce", to your server in their respective directories.

Check, if both files are writeable.

 

Now, you should be able to access your admin-area again, hopefully.

Go to the "Administrators"-Configuration, edit your Admin-account and save it with a new password. Don't forget to check the "Protect With htaccess/htpasswd" checkbox. This should fill your ".htpasswd_oscommerce" and enable the .htaccess-protection again.

 

I would suggest, you download both files again - ".htaccess" and ".htpasswd_oscommerce" - and set both files on your server to not-writeable.

 

Hope this helps.

 

AD

Share this post


Link to post
Share on other sites

Thank you to Rene & Martin, with your suggestions I can get access to my osCommerce Administration tool again.

 

Thanks a million.

Share this post


Link to post
Share on other sites

Question how will i know if htaccess/htpasswd writeable and not-writeable? Thanks!

Share this post


Link to post
Share on other sites

×