Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess issues


CrazyFun

Recommended Posts

Posted

I'm sure that this question has been asked a million times before, but I just can't find the answer I'm looking for.

 

I'm building an eCommerce site using osCommerce for an assignment, and I just can't get the password protect working on my admin folder.

 

I've got the .htaccess and .htpasswd files in the right place, and the syntax and everything seems to be ok, but they just refuse to work correctly.

 

When I try to access the admin folder, it requests my user name and password, but it seems to register that they are incorrect: it appears three times, then returns an error (This server could not verify that you are authorized to access the URL "/catalog/admin/index.php". You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required)

 

I know I'm entering the correct details, but it just won't work.

 

I can't do this via control panel, because for the assignment I've had to create this on a standalone server.

 

Can anyone give me some advice?

Posted

I am having a similar problem and hopefully someone can help. It seems upon installation the server I am using isn't allowing a .htpasswd file to be written.

 

/user/bin/htpasswd: unable to create temporary file 'htpasswd.tmp.ik8pNi"

Unable to create file '.htpasswd'

 

Thus, I can't log into the admin area either.

 

Tech support says it is an osCommerce coding issue. I say it is their issue.

 

Any help would be appreciated.

 

PS: Sorry to butt into this thread, but it seemed close.

Posted

For the 2nd question my SWAG is that you are not running as root when you attempt to create the .htpasswd file.

 

/user/bin/htpasswd: unable to create temporary file 'htpasswd.tmp.ik8pNi"

Unable to create file '.htpasswd'

 

For the 1st question it might be more of the same on the creation side. There are some good posts here on .htaccess with details that should clear this up.

Archived

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

×
×
  • Create New...