Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess & .htpasswd


estkid

Recommended Posts

okay in my .htpasswd file i have

 

username:encrypw

 

my understand is thats all i need right?? and my .htaccess file is

 

AuthName "Realm name"

AuthType Basic

AuthUserFile /BASEDIR/.htpasswd

require valid-user

 

 

when i add these two files into my dir. and i try to log in it does ask for the user name and password its just that the password and user name are wrong im not sure what to do ive tried diffrenct encrpy sites but it all ends with the same result

Link to comment
Share on other sites

Most time, it fails like that because the path to the .htpasswd file is wrong. If you go to admin->backups, it will display the path you want to use. Does do they match in oyur case?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

i dont have anything in my admin/backups folder :huh: i'm still new to oscommerce and getting use to it sorry, should there be something in there? i dont see the need to backup yet since i dont have anything on my site, im just trying to secure it 1st.

Link to comment
Share on other sites

i dont have anything in my admin/backups folder :huh: i'm still new to oscommerce and getting use to it sorry, should there be something in there? i dont see the need to backup yet since i dont have anything on my site, im just trying to secure it 1st.

 

 

What you need is the full path to the file from the server's point of view, not the path as you see it thru FTP. That's because your ftp root directory is actually a subdirectory under a larger tree. Your host can tell you what it is if you can't find it.

 

Also, you may be required to specify AuthGroupFile as well, even if you're not using it. For this, you would use:

 

AuthGroupFile /dev/null

 

 

Cheers,

-Neil.

Link to comment
Share on other sites

i dont have anything in my admin/backups folder :huh: i'm still new to oscommerce and getting use to it sorry, should there be something in there? i dont see the need to backup yet since i dont have anything on my site, im just trying to secure it 1st.
No, what I meant is that when you click on the backups option, you will see a path printed on the page. It is jsut a quick way to find the correct path.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...