Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

htaccess problem...


Guest

Recommended Posts

Posted

I can?t get my htaccess file to work. The password window shows up but when I try to enter the admin side but I can?t login (password ain?t working). The catalog files is directly under root and admin in a directory under root. This is how they look like:

 

.htaccess

AuthUserFile admin/.htpasswd

AuthGroupFile /dev/null

AuthName "Password Protected Area"

AuthType Basic

 

<limit GET POST>

require valid-user

</limit>

 

.htpasswd:

admin:m7VKVgF.s/Mb6

 

Both are under the admin directory. Anyone know why this ain?t working?

Posted

Are you using the password you showed us? That looks encrypted ...

Posted

Yes, it is encrypted and am not using it. I know what the real password is...

Posted

Have you tried adding '/' before the admin as shown below:-

 

AuthUserFile /admin/.htpasswd

 

I'm new to osCommerce and LINUX but that was one of the first problems I had when I first used .htaccess.

 

Just a suggestion....

 

Regards

Nick

Posted

yeah

 

you need the full path to your passwordfile

 

example:

 

/home/dohma/catalog/admin/passworfile

 

like that

 

ok

 

hope that help..

 

if not create another passwordfile and make sure the passwordfile is in that directory..

Posted

Still can?t get this to work. The full path is /admin/.htpasswd... I also tried to change permission to 777 (on both files) but no luck with that.

Posted
Still can?t get this to work. The full path is /admin/.htpasswd..

 

If you are running your own server, check Apache httpd.conf file for the following:

 

#

# This controls which options the .htaccess files in directories can

# override. Can also be "All", or any combination of "Options", "FileInfo",

# "AuthConfig", and "Limit"

#

AllowOverride AuthConfig FileInfo

#

# Controls who can get stuff from this server.

#

Order allow,deny

Allow from all

</Directory>

 

and, your path is incomplete. Should be something like

 

/services/webpages/a/m/ameriwebs.net/public

or, on your local server,

d:/phpdev/phpdev/www/public/whatever/catalog/admin

 

Hope this helps.

GEOTEX from Houston, TX

 

(George)

Archived

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

×
×
  • Create New...