Deleting user, cause httpd process to be killed

wdeboer

Verified User
Joined
Jul 16, 2005
Messages
40
Hello

When I delete a customer's user account as a reseller or administrator Apache stops working. If re-add the users again in DirectAdmin Apache starts working again, how can I fix this?

I would like to remove these users, I thought deleting a user would do the stuff correctly. But it looks like it doesn't!

Looks like we aren't allowed to delete users ? For now I have suspended the two users, and all keeps working.

Yours,
Weyert de Boer
 
Last edited:
What version of DirectAdmin are you running, what operating system, and do you have root access to the server?

After removing the users, try to start apache from the command line and see what errors it gives you.
 
Weyert,

Does this problem occur with any user? If so, do you have to add the same user?

It sounds like a problem with your httpd.conf file or the code that manipulates it.

For example, if /etc/httpd/conf/httpd.conf is set immutable, then it's likely that exactly what you write about could be happening.

Why?

Because you're removing an httpd.conf include file but if the master httpd.conf file is immutable you're not removing the link to it.

Jeff
 
Hi Jeff,

Well, it happened with the two users, it only works again when I re-add these users.

But how can I see if /etc/httpd/conf/httpd.conf is immutable?
 
Run a lsattr
If it's got the immutable bit (i), then undo it with chattr -i httpd.conf
 
I am getting the following error:

srv001# lsattr
lsattr: Command not found.
srv001#
 
what operating system?

if freebsd the command is chflags
run man chflags
 
Hello!

I think I changed it now:

-rw-r--r-- 1 root wheel 23058 Jul 31 21:44 httpd.conf
-
 
Give it a try and see if it works. In my tests, the i bit only showed up if I used lsattr while the normal ls -l did not show that bit even though it was set.
 
Hmm, still not working.... really odd. I think I will ask the hosting partner to fix it :)
 
Back
Top