e-Discounters Posted February 9, 2014 Posted February 9, 2014 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?
AngusD Posted February 9, 2014 Posted February 9, 2014 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
mhsuffolk Posted February 9, 2014 Posted February 9, 2014 Click Here to download a full copy of the latest version then extract the missing file. Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.
e-Discounters Posted February 9, 2014 Author Posted February 9, 2014 Thank you to Rene & Martin, with your suggestions I can get access to my osCommerce Administration tool again. Thanks a million.
asdafs Posted June 6, 2014 Posted June 6, 2014 Question how will i know if htaccess/htpasswd writeable and not-writeable? Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.