PDA

View Full Version : Apache2: bad user name web30


thibotus01
4th November 2009, 17:02
Hi,

After adding a site, the domain doesn't work. So I restarted Apache manually and I got this error :

apache2: bad user name web30

web30 is the site I just created. So I don't really understand.
/home/clients/client0/web30 is here.

If I do : Apache2 -t before restarting manually I got :

apache2: bad user name ${APACHE_RUN_USER}

Any idea ? I already tried to recreate the site via ispconfig. Same result.

till
4th November 2009, 17:15
Please post the output of:

grep sshuser /etc/group

thibotus01
4th November 2009, 17:17
I got nothing.

maybe you want : ssh:x:105:
?

till
4th November 2009, 17:21
No, the query was ok. Please see here for the solution:

http://www.howtoforge.com/forums/showpost.php?p=207221&postcount=6

thibotus01
4th November 2009, 17:27
Apache restart without error but Apache2 -t still give me :

apache2: bad user name ${APACHE_RUN_USER}

And I don't have access to the website (it redirect me to the previous vhost)


I never had this kind of problem before... before what ? I don't know. Why sshusers wasn't there?

till
4th November 2009, 17:34
Apache restart without error but Apache2 -t still give me :

Thats ok as you can not test apache with httpd -t anymore on the latest versions of several linux distributions like ubuntu.

thibotus01
4th November 2009, 17:37
Well but my problem is still there...

In cron.log

chmod: cannot access `/home/clients/client0/web31/*': No such file or directory
chown: invalid user: `web31:client0'
useradd: unknown group sshusers



chroot: cannot run command `userdel': No such file or directory
chmod: cannot access `/home/clients/client0/web33/*': No such file or directory

till
4th November 2009, 17:39
chmod: cannot access `/home/clients/client0/web31/*': No such file or directory
chown: invalid user: `web31:client0'
useradd: unknown group sshusers

Then you still have not added the group sshusers as I explained in the other thread.

chroot: cannot run command `userdel': No such file or directory
chmod: cannot access `/home/clients/client0/web33/*': No such file or directory

Thats ok.

thibotus01
4th November 2009, 17:41
web31 was before I run the addgroup command.

and web33 after... And it's not ok. I don't have access to the domain. it's redirect me to another one -> to the first domain I installed on ispconfig like Apache go back to the first rule.

till
4th November 2009, 17:44
An which errors do you get in the syslog in the ispconfig monitor now?

Be aware that it takes some time until configuration cahnges get written, so you have to wait a few minutes before you test again.

thibotus01
4th November 2009, 17:50
Yes I Know, I wait until the job is gone in the jobqueue.

I have nothing in the log... I looked into syslog, error.log (new domain), error.log (apache2), access.log...

thibotus01
4th November 2009, 17:53
Problem solved :) Cache not empty in my web browser :D

And any idea why the group sshuser diseapered ?