Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been trying to setup apache for the use of .htaccess files, with no luck.
I have followd everything on the websites I could find and still nothing could someone tell me what all needs done to the httpd.conf file
the .htaccess, .htpasswd and where they actually go and what permisions should be on them including who should the owner of the files be.
using the basic auth with apache (using flat files) has been very unsuccessful for me, if I were you I would use mod_auth_mysql and setup a database with users and groups (easier and faster)
but if you can't for some reason use that...
try
htpasswd -c .htpasswd
htpasswd username password
also I wouldn't keep that file in your wwwroot, I would keep it outside (if you can) that directory
try that as your .htaccess (change the Userfile path of course)
then
htpasswd -cd .htaccess [username]
or
htpasswd -c .htaccess [username]
or (for md5 digest)
htpasswd -cm .htaccess [username]
also make sure that both your .htaccess file and .htpasswd file are given full ownership to your web server account (e.g. chown www:www .ht*)
After trying this for a while I was able to get it to work, though, I don't see what I did other than restarting it serveral times. I also enabled mod_auth_digest, but I'm not using it...
Thank you for your help
basically, I had to go through the same thing to get it going,
and I still am not for sure what I did any differant than before.
besides the restarting for everychange i tried. I did activate the same auth mods like you but I am not using them either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.