Question:
.htaccess and .htpasswd, and configuration.pl I have them protecting files that but where is the password?
Brian D
2007-04-27 09:32:31 UTC
My problem is that I have had someone give me some files and I need to have them display in my cgi-bin. I try to display them but it asks me the password and such. I however don't know what it is. Is there a way to find out?, (other than asking the client?). What I am wondering is this. I was given a CD with all the files on it, (including the .htaccess and .htpasswd file). Through e-mail however I was sent a different .htaccess file and a configuration.pl file. I am wondering if this is supposed to protect their data and that I won't need the password as perhaps somehow one can read from the other if I put them in the right place. Also the configuration.pl file has some information in it like an MySQL password, but I am not sure which to just use for the main .htaccess file... any ideas or help?

Thanks,

Brian
Three answers:
Tracy L
2007-04-28 05:38:37 UTC
Well this may be way to simple of an answer but if you have access to the files just rename the .htaccess and you wont need any password period.



I assume of course you have access (which you say you do) Copy the Cd to your server, remove/rename the .htaccess file and you will run without it. Once you are through rename it back to .htaccess and the password will be required again!



I take it you dont know too much about linux and apache. Your job will not be easy.
spungoguy
2007-04-27 16:43:21 UTC
There is a lot here to explain, so I will try to answer it in a way that is useful to you.



(1) .htaccess is a file that sits in your web server directory. It supplies configuration options to the web server, including, among other things, a username and password for access to that directory.



(2) There is no way to look up the password for an existing .htaccess user. This is because the passwords are encrypted using one-way encryption.



(3) You can, however, *reset* the password using some command-line tools. Well, the tool "htpasswd"



(4) There is really not enough detail in your question to answer your question.



Questions to you:



(1) What do you mean by "I need to have them display in my cgi-bin"? This is a nonsensical statement to me.



(2) What are you trying to achieve? Post some images to a web page? Set up a web site?



(3) What is this "CD with all the files"? A Website that was created for you by someone else?



(4) What is the MySQL stuff? What relevancy does it have to what you are trying to achieve?



My finding is that often, novice computer users trying to set up a website will ask the wrong questions or try to do stuff in a more complicate way than is required. Please state in clear English description exatly what you are trying to do and you can be answered more appropriately.



later...
2007-04-27 16:38:46 UTC
The files should never go into cgi-bin if they are to be displayed. NEVER put anything in there unless you know what it does.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for '.htaccess and .htpasswd, and configuration.pl I have them protecting files that but where is the password?' (Questions and Answers)
5
replies
Can someone running php,mysql and apache, paste their httpd.conf file because mine is giving errors.Thanks?
started 2007-06-03 13:02:46 UTC
programming & design
Loading...