Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin error


dreamer_ba

Recommended Posts

Hi guys,

 

last week my provider updated tot php5 and since then I can't get in admin. I'm not sure if this problem is related to the upgrade or not. I get the prompt for the username and password and after that I get and authorisation error. The username/password is correct and the path to the htpasswd specified in htaccess is also still correct (I checked with the provider). What could be the problem?

I also tried totally deleting htaccess file from admin, but I still get prompted for the password. Replacing htaccess with a blanc file also didn't help. I'm desparate...

Link to comment
Share on other sites

Hi guys,

 

last week my provider updated tot php5 and since then I can't get in admin. I'm not sure if this problem is related to the upgrade or not. I get the prompt for the username and password and after that I get and authorisation error. The username/password is correct and the path to the htpasswd specified in htaccess is also still correct (I checked with the provider). What could be the problem?

I also tried totally deleting htaccess file from admin, but I still get prompted for the password. Replacing htaccess with a blanc file also didn't help. I'm desparate...

Hmmm, this doesn't sound like it's related to either osCommerce or PHP5... htaccess authentication is handled at the apache layer of the system... Do you have a webhosting control panel like cpanel or plesk or something? Rather than deleting or changing out the htaccess file manually, see if you can go into cpanel (or whatever you have) and alter the directory permissions there via the gui, and see if this helps straighten out the problem...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Hmmm, this doesn't sound like it's related to either osCommerce or PHP5... htaccess authentication is handled at the apache layer of the system... Do you have a webhosting control panel like cpanel or plesk or something? Rather than deleting or changing out the htaccess file manually, see if you can go into cpanel (or whatever you have) and alter the directory permissions there via the gui, and see if this helps straighten out the problem...

 

Richard.

 

Don't have cpanel, just ftp...

Link to comment
Share on other sites

Don't have cpanel, just ftp...

Hmmmmmm, if you don't have anything other than ftp, how did you password protect that directory in the first place? Creating an htpasswd file requires using a command-line utility, which means you'd have to have logged in via ssh, or done it through some web-based control panel... How was this originally created for you?

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Hmmmmmm, if you don't have anything other than ftp, how did you password protect that directory in the first place? Creating an htpasswd file requires using a command-line utility, which means you'd have to have logged in via ssh, or done it through some web-based control panel... How was this originally created for you?

 

Richard.

 

I just created it in Notepad and uploaded to the directory above the root of the site. It worked more than a year this way...

What really puzzels me is that even if I completely remove or overwrite the htaccess file with a blanco file, it still prompts for a password. How the h*** does it know it is protected if there is no htaccess?

Link to comment
Share on other sites

I just created it in Notepad and uploaded to the directory above the root of the site. It worked more than a year this way...

What really puzzels me is that even if I completely remove or overwrite the htaccess file with a blanco file, it still prompts for a password. How the h*** does it know it is protected if there is no htaccess?

Well what I mean is how did you create the htpasswd file itself? Those things are supposed to contain the passwords in an encrypted format, which is why there's a command-line utility to generate them... You made the htpasswd file in notepad also?

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Well what I mean is how did you create the htpasswd file itself? Those things are supposed to contain the passwords in an encrypted format, which is why there's a command-line utility to generate them... You made the htpasswd file in notepad also?

 

Richard.

 

The password is encrypted. It's been generated on http://www.mv.com/webtools/htpasswd.cgi. So the htpasswd looks like this:

blablauser:blablapassword.

Why am I prompted for a password if I completly remove htaccess file?

Link to comment
Share on other sites

The password is encrypted. It's been generated on http://www.mv.com/webtools/htpasswd.cgi. So the htpasswd looks like this:

blablauser:blablapassword.

Why am I prompted for a password if I completly remove htaccess file?

Yeah that was the other half of that question I forgot to answer... You're right, without the htaccess file in that directory, you shouldn't be prompted for a password... Check your admin/includes folder for one too...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

When one of my techs upgraded my server to php5 my password files where messed up as well now with cpanel I cannot create password protected directories. I would recommend you use the admin login mod in the contributions. It is a safer way to login anyway.

 

Hi guys,

 

last week my provider updated tot php5 and since then I can't get in admin. I'm not sure if this problem is related to the upgrade or not. I get the prompt for the username and password and after that I get and authorisation error. The username/password is correct and the path to the htpasswd specified in htaccess is also still correct (I checked with the provider). What could be the problem?

I also tried totally deleting htaccess file from admin, but I still get prompted for the password. Replacing htaccess with a blanc file also didn't help. I'm desparate...

Link to comment
Share on other sites

When one of my techs upgraded my server to php5 my password files where messed up as well now with cpanel I cannot create password protected directories. I would recommend you use the admin login mod in the contributions. It is a safer way to login anyway.

 

Guys, I'm still having the problem. I have searched every directory in admin for other .htaccess files but could not find any.

Any other ideas?

Link to comment
Share on other sites

If I remember correctly, some servers hide .ht files, thus you may not see your htaccess file. You should also try using a different ftp program, cus for some reason some don't show the .ht files.

I'm kinda new to OsC, but I'm picking up quickly.

Link to comment
Share on other sites

If I remember correctly, some servers hide .ht files, thus you may not see your htaccess file. You should also try using a different ftp program, cus for some reason some don't show the .ht files.

 

I use WS Pro and I can see .htaccess files with it. This is also how I deleted it. Is it possible that WS Pro is not showing all .htaccess files?

Link to comment
Share on other sites

I use WS Pro and I can see .htaccess files with it. This is also how I deleted it. Is it possible that WS Pro is not showing all .htaccess files?

 

I think you need to change the password protect on the shop/admin directory.

You should be able to ask you webhost to do this if you dont know how to.

Based on OsCommerce 2.2 MS2 - Mods Including: Customer Approval, STS Template System, OS-CMS, Sage Line 50 Sync, Locate a Stockist, Auto Thumbnailer, Easy Populator, Visitors Stats, Extra Images, Header Tags Controller, Unsold Cart, Products w/o Description/Prices/Images Reports, Backup Customers Table, Login to See Prices. Full customised products_info.php page. OSC Links Manager. Minimum Order Amount. Visitor Web Stats. Google Sitemap. All products page (user sitemap).

 

The OsCommerce Site is hosted on 1 domain with 20 feeder domains extracting data from OS-CMS & the shop catalogue.

 

If you would like to view my website in relation to any of my posts you can google my forum username to find my URL or add a (dot)co(dot)uk to the end of it.

Link to comment
Share on other sites

  • 3 months later...
When one of my techs upgraded my server to php5 my password files where messed up as well now with cpanel I cannot create password protected directories. I would recommend you use the admin login mod in the contributions. It is a safer way to login anyway.

 

 

Where do you find this contribution?

 

Can you install it WHILE you're having the .httaccess error? (Meaning I can't log in either) I've also changed password for .htpasswd file via ssh in the /store/admin folder.

 

Is there another way to fix issue?

Link to comment
Share on other sites

  • 2 weeks later...
Where do you find this contribution?

 

Can you install it WHILE you're having the .httaccess error? (Meaning I can't log in either) I've also changed password for .htpasswd file via ssh in the /store/admin folder.

 

Is there another way to fix issue?

 

Technically, you can have both a php login page and an htaccess login prompt at the same time, but you'd have to pass the htaccess login first before being allowed to view the php login page, and then you'd have to login there once you did beat the htaccess method, so if you can't login because of an htaccess problem, the php method wouldn't help you until you were able to clear that login prompt from occurring... You can find the login contributions in the contributions section of this site, just do a search for something like admin login, or admin security, and you should bring up a few variants... Good luck w/ that :)

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...