You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tomas Spångberg <to...@jarlmagnussonab.se> on 2002/03/21 12:43:25 UTC

httpd fails to start

Hi all!

I have ApacheJServ-1.1.2-3 installed on RH 6.0

When I try to start it I get the following msg:
jml1(root)pts/0: apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
/usr/sbin/apachectl restart: httpd started

and the following in httpd/error_log:

jml1(root)pts/0: tail /var/log/httpd/error_log
[Thu Mar 21 11:46:50 2002] [warn] pid file /var/run/httpd.pid overwritten --
Unclean shutdown of previous Apache run?
[Thu Mar 21 11:46:50 2002] [notice] Apache/1.3.22 (Unix) configured --
resuming normal operations
[Thu Mar 21 11:46:50 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Thu Mar 21 11:46:51 2002] [alert] Child 31781 returned a Fatal error...
Apache is exiting!

Any sugestions?

// Tomas


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: httpd fails to start

Posted by Owen Boyle <ob...@bourse.ch>.
Tomas Spångberg wrote:
> 
> Ok, thank you, but how do I start it with user "apahe"?
> 

You don't. You continue to start as root, but then apache spawns all the
httpd daemons as user "apache". This is a key feature of apache - it
starts as root and so gets access to port 80 etc. but then all the
servers that interact with the outside world are all processes belonging
to a less-privileged user.

BTW, you *can* start as user "apache" if you don't mind binding to a
port greater than 1024. To do this, just login as "apache" and issue the
"apachectl start" command. 

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: httpd fails to start

Posted by Tomas Spångberg <to...@jarlmagnussonab.se>.
Ok, thank you, but how do I start it with user "apahe"?

// Tomas
----- Original Message -----
From: "Owen Boyle" <ob...@bourse.ch>
To: <us...@httpd.apache.org>
Sent: Thursday, March 21, 2002 12:49 PM
Subject: Re: httpd fails to start


> Tomas Spångberg wrote:
> >
> > Hi all!
> >
> > I have ApacheJServ-1.1.2-3 installed on RH 6.0
> >
> > When I try to start it I get the following msg:
> >....
> > [Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
> > getpwuid: couldn't determine user name from uid 4294967295, you probably
> > need to modify the User directive
> > [Thu Mar 21 11:46:51 2002] [alert] Child 31781 returned a Fatal error...
> > Apache is exiting!
>
> This is a bug in 1.3.22 - if you don't define User and Group, the
> defaults don't work. To fix:
>
> - Upgrade to 1.3.23 (probably you can't since it's bundled with JServ)
>
> or
>
> - Define User and Group to some real values, e.g. create a user "apache"
> in the group "users" and do:
>
> User apache
> Group users
>
> Rgds,
>
> Owen Boyle.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: httpd fails to start

Posted by Owen Boyle <ob...@bourse.ch>.
Tomas Spångberg wrote:
> 
> Hi all!
> 
> I have ApacheJServ-1.1.2-3 installed on RH 6.0
> 
> When I try to start it I get the following msg:
>....
> [Thu Mar 21 11:46:50 2002] [alert] (2)Filen eller katalogen finns inte:
> getpwuid: couldn't determine user name from uid 4294967295, you probably
> need to modify the User directive
> [Thu Mar 21 11:46:51 2002] [alert] Child 31781 returned a Fatal error...
> Apache is exiting!

This is a bug in 1.3.22 - if you don't define User and Group, the
defaults don't work. To fix:

- Upgrade to 1.3.23 (probably you can't since it's bundled with JServ)

or

- Define User and Group to some real values, e.g. create a user "apache"
in the group "users" and do:

User apache
Group users

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org