Closed Thread Icon

Preserved Topic: sorry for this one but... (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=20894" title="Pages that link to Preserved Topic: sorry for this one but... (Page 1 of 1)" rel="nofollow" >Preserved Topic: sorry for this one but... <span class="small">(Page 1 of 1)</span>\

 
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-05-2001 00:16

I know I should have no problem using .htaccess and .htpasswd by now, but it's really screwing with me.

I signed up for a free account with f2s.com. Yea... I know what free gets me, but I wanted a MySQL database to play with that wasn't local, and I don't have the bucks right now to upgrade my Dreamhost account.

Anyway, I wanted to password protect my phpMyAdmin section. I should mention here that I'm on windows, and you can't telnet with f2s. So, I made my .htaccess.txt file, ftp'd it to the server, and renamed the file on the server. I then tried to access the file and got the password popup as expected.

The I used one of those encryption programs to make the file for my .htpasswd. As soon as I put the .htpasswd on the server, I no longer got the password popup window, it just let me right in.

This may be a silly question, it doesn't make any difference where I place the .htpasswd file as long as the path in the .htaccess file is correct does it?

As usual, all help is appreciated.

Thanks

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-05-2001 09:41

How does your .htaccess and .htpasswd files look like (their content)? What did you use to create .htpasswd file?

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-05-2001 12:48

Heres the .htaccess:

AuthUserFile /web/sites/339/myusername/www.mysite.f2s.com/.htpasswd
AuthName "Realm name"
AuthType Basic
<limit GET PUT POST>
require valid-user
</limit>
php_flag magic_quotes_gpc on

and I used this http://www.webextractions.f2s.com/cgi-bin/makepass/password.cgi to make my password.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-05-2001 19:18

Hmmm, everything should be working fine... Can you try putting .htpasswd file in the same folder as .htaccess?

Also, make sure that .htpasswd is only one line long (no spaces, new lines, etc.) and don't forget to upload it in ASCII mode...



[This message has been edited by mr.maX (edited 05-05-2001).]

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-05-2001 19:49

Thanks Max

Yes, I'll try putting the .htpasswd file in the same folder as soon as I figure out how to get my site back up.

I must have screwed something up royaly. I was trying to chmod a cgi file that I put in the cgi-bin to 755. as soon as I did that I could no longer access my site. I thought maybe I changed the permission on my root folder by mistake, but from what I can see, that's what the root folder should be set to anyway.

I deleted the .cgi file, and the cgi-bin folder that I put there, and I still can't access my site. It gives me a 403 Forbidden- "You don't have permission to access / on this server".

I'm not sure what the hell I did, but boy did I do it.



[This message has been edited by butcher (edited 05-05-2001).]

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-05-2001 21:00

It's back

They must have been having a little problem with the server for a while, no more Forbidden errors.

Mr. Max, The .htaccess works fine now, must have been your suggestion about putting the .htpasswd file in the same directory.

Thanks

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-06-2001 07:11

talking about .htaccess... I'm using CuteFTP and is it possible to show hidden files in CuteFTP? if so how?

::K::A::R::N::

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-06-2001 12:52

If you mean being able to see .htaccess and .htpasswd files, yes. I use cute ftp and I'm able to see them.

I don't know if it's a special setting or not, I go look and try to find out.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 05-06-2001 20:22

I don't use CuteFTP, so I can't give you a direct answer. Anyway, if you can set custom command for listing folder contents, you should set it to "list -a".

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-06-2001 22:53

I can't set listing folder content in cuteFTP... Butcher what ersion are you using... I uploaded a .htaccess file into my directory and I can't delete it cause I can't see it...

::K::A::R::N::

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-07-2001 00:43

Sorry KARN, I looked through the help files and couldn't find anything that would help you. I have cute version 4.0. Let me know if you have the same version already, and I'll look a little harder.

la'dsasha
Neurotic (0) Inmate
Newly admitted
posted posted 05-07-2001 03:35

i guess that would depend on how your host has ftp set or something. i was on a free server for a while that allowed .htaccess files. i could never see them on the server, though.

however, when i ftp into the webserver sitting on the floor here, i can see all unix hidden files (anything with a . it the start of the file name is hidden in unix) in my home directory, including one that i named .htaccess.

i am using cuteFTP 4.0

------
this rose has a thorn...

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-07-2001 03:51

I have version 4 and I've beend playing around with most of the tools and still no clue... butcher what os are you using?

::K::A::R::N::

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-07-2001 22:18

Windows 98 KARN

I just had one thought (Yea I know, hip hip horray, butcher had a thought ), could the folder settings on windows affect the way that CUTEftp on Windows dispalys files?

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-10-2001 23:59

I've tried it... it doesn't work... I'm using Windows 98 too...

::K::A::R::N::

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-11-2001 01:49

KARN, does the .htaccess file you sent to the server work? Did you send it as htaccess.txt and then rename it to .htaccess once it was on the server? Other than that I don't know what to say except to check with your host for ideas.

Sorry

Let me know what happens.



[This message has been edited by butcher (edited 05-11-2001).]

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-11-2001 22:40

well I renamed it to .htaccess then uploaded it... First time I had some lines on it and uploaded it and it screwed up my page then I took out the lines and uploaded it again and everything went fine but I can't seem to see the file...

::K::A::R::N::

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 05-12-2001 00:07

No, upload in ASCII mode (which cute usually switches to automatically) as htaccess.txt and then rename it to .htaccess after it is on the server.

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 05-12-2001 00:40

oh thanx...

::K::A::R::N::

« BackwardsOnwards »

Show Forum Drop Down Menu