Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I used the authorize admin by htaccess contribution. however, it only password protects the directory itself, not the contents. i.e. if you go to /catalog/admin/index.php, there is no password protection. How do I protect all the folder's contents?

Posted
I used the authorize admin by htaccess contribution. however, it only password protects the directory itself, not the contents. i.e. if you go to /catalog/admin/index.php, there is no password protection. How do I protect all the folder's contents?

 

 

if you setup your admin directory authorization correctly in apache everything under that directory is protected.

Treasurer MFC

Posted

I just installed this contribution today and I'm having problems with it. Right now, I'm getting this error on admin/uthorize.php:

 

Warning: fopen(/home/wagons/public_html/catalog/admin/groups): failed to open stream: Permission denied in /home/wagons/public_html/catalog/admin/includes/classes/htaccess.php on line 92

Warning: fclose(): supplied argument is not a valid stream resource in /home/wagons/public_html/catalog/admin/includes/classes/htaccess.php on line 93

 

The files are all correctly copied. I even set the admin/includes/classes/htaccess.php permissions to 777 and this still shows up. Even weirder, i was getting MORE errors before i copied over the "groups" and "passwd" files into /admin/. Once I uploaded the example files from the package, the warnings pertaining to those files disappeared.

 

I also copied over the .htaccess into /admin but that just caused a server 500 error for me. Any suggestions?????

 

THANKS!!

Posted (edited)

OKAY, i've progressed a little with my problem. By making /admin/groups and /admin/passwd permissions both 777, i've eliminated all the warnings, except for when I change or add an Admin account. I get warnings pertaining to the .htaccess file when I do that.

 

Also, it's still not creating a .htaccess file in the admin and when i copy over the included .htaccess file, i still get the internal server error 500.

 

What do I have to do???

Edited by hobbyhen
Posted
OKAY, i've progressed a little with my problem.  By making /admin/groups and /admin/passwd permissions both 777, i've eliminated all the warnings, except for when I change or add an Admin account.  I get warnings pertaining to the .htaccess file when I do that.

 

Also, it's still not creating a .htaccess file in the admin and when i copy over the included .htaccess file, i still get the internal server error 500.

 

What do I have to do???

 

Hobbyhen, i'm getting the same prob as you, i think, i've 777'ed all three files, but now i get an internal server error:

The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory.

 

Whether that is a 500 error or now, my techy senses can't say... I'll give the hosting company a call tommorow & post back if any info they give is of any use to you. I just don't think they'll pick the phone up at 2am...

 

Any help equals much appreciation & karma, from my little bag. Of karma. Yum.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...