You are not logged in.

#1 2006-12-10 19:11:30

Seb74
Member
Registered: 2006-10-07
Posts: 89

Please help, apache stopped working :(

Was fooling around with htpasswd to try and make directories protected.

What I did was running "htpasswd -c /etc/httpd/.htpass username password"

A .htpass was created with my username and with a encrypted password.

THAT I cant believe could have caused ANY harm.


So, on we go. I opened httpd.conf, added these lines:

<Directory>
    AuthType Basic
    AuthName "Files"
    AuthUserFile "/etc/httpd/.htpass"
    Require valid-user
</Directory>

I then did apachectl stop, followed by apachectl start.

After that my webserver doesn't work.
So, of course I tried to comment the few added lines out, but noooooooo, of course that small experiment had to totally ruin my webserver.

The webbserver starts anyway, it seems, as you can see here.
# ps -e | grep httpd
14280 ?        00:00:00 httpd

sad sad sad

Anyone? Please smile


EDIT: When I check the running processes NOW (5 minutes later) more httpd's have started and server seems to work again.
Strange....very strange. Hope its all ok now...might try some more getting protected folders, think I'm on the right way....I hope wink
# ps -e | grep httpd
14280 ?        00:00:00 httpd
14291 ?        00:00:00 httpd
14293 ?        00:00:00 httpd
14294 ?        00:00:00 httpd
14295 ?        00:00:00 httpd
14296 ?        00:00:00 httpd

Offline

#2 2006-12-19 02:30:14

thewonka
Member
From: San Diego, CA
Registered: 2006-11-05
Posts: 13
Website

Re: Please help, apache stopped working :(

the Directory command works better if you specify a directory path, that might have been what put Apache on the wacky side.

Offline

Board footer

Powered by FluxBB