View Full Version : Error: /bin/chown: `apache:apache': invalid user
Reyner
08-04-2004, 01:24 PM
Hello,
I have CentOS 3.1 and got this error message:
/bin/chown: `apache:apache': invalid user
Does anyone know/experience this before?
Your help is greatly appreciated.
Thank you,
Reyner
nobaloney
08-04-2004, 04:48 PM
Under what circumstances do you get this error?
Dring an install, or when you're trying to change a user?
I use WBEL, which should set up exactly the same as CentOS.
There is an apache user, and there is an apache group, so chown apache:apache should work.
And apache (httpd) does run as user apache, at least on our system.
Jeff
Reyner
08-04-2004, 04:52 PM
I notice that in my /etc/passwd, I don't have apache user and group. Is it common?
nobaloney
08-04-2004, 04:55 PM
It should be there.
Who owns your httpd program?
# whereis httpd
then:
# ls -al /path/to/httpd
Jeff
Reyner
08-04-2004, 10:07 PM
Hello Jeff,
Here is what I see:
[root@s3 etc]# whereis httpd
httpd: /etc/httpd
[root@s3 etc]# ls -al /etc/httpd
total 12
drwxr-xr-x 3 root root 4096 Aug 4 14:17 .
drwxr-xr-x 41 root root 4096 Aug 4 23:40 ..
drwxr-xr-x 2 root root 4096 Aug 4 14:17 conf.d
[root@3 etc]#
Thank you,
Reyner
nobaloney
08-05-2004, 04:33 PM
You don't have apache installed.
Did the DirectAdmin install go without errors?
While you may have other errors which need to be adressed as well, you might want to try reinstalling apache:
/usr/local/directadmin/scripts/apache.sh
Watch for errors.
Jeff
skruf
08-05-2004, 04:36 PM
Hey,
This was on RH9 but, you may want to take a look:
http://www.directadmin.com/forum/showthread.php?threadid=4290
David
Reyner
08-05-2004, 07:05 PM
Hey guys,
Thanks a lot for your help!
I've tried all of the above, but then when I do setup.sh, it stops at the same point.
I finally compare the /etc/passwd with my other DA server /etc/passwd:
[root@server]# grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/bin/false
Then I copy this line:
apache:x:48:48:Apache:/var/www:/bin/false
to the /etc/passwd of the server that's getting the error. After that, DA installed smoothly.
Reyner
Reyner
08-23-2004, 09:04 PM
Aparrently, it didn't work as well as I thought, so I reinstalled everything and it works like a charm now! :)
DA is awesome!
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.