LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2006, 08:16 AM   #1
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Apache won't start because...


Hi,

Just having a bit of trouble getting Apache to start. I'm running a set of conf files written to support load balancing over Mongrel servers, instead of the default.

When I attempt to start Apache (2.2.3), error_log is populated with:
Code:
[Sat Oct 07 14:15:08 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 07 14:15:09 2006] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Oct 07 14:15:09 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Oct 07 14:15:09 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Oct 07 14:15:09 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Oct 07 14:15:09 2006] [notice] Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7e configured -- resuming normal operations
[Sat Oct 07 14:15:09 2006] [alert] Child 1120 returned a Fatal error... Apache is exiting!
[Sat Oct 07 14:15:09 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Oct 07 14:15:09 2006] [alert] getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
I'm not really sure what any of these mean, and so would be very greatful if someone could help me out here .

Kind regards,
James
 
Old 10-08-2006, 03:48 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
getpwuid is searching for a uid which it doesnt find. you could try creating a user with that uid or change the uid to point to your nobody, apache, www-data or whatever.
 
Old 12-22-2010, 08:49 PM   #3
ShellyCat
Member
 
Registered: Jul 2007
Distribution: Slackware 13
Posts: 178

Rep: Reputation: 29
Post This thread is really old, but still relevant.

This was myy first time installing Apache manually on Linux. I had the same issue and did what was said. To be specific, add the following (outside of any directive) to "httpd.conf":
Code:
User nobody
Group nobody
It solved this same problem for me. (You can also set the User and Group to daemon, which is easier because you only have to "touch /usr/local/apache2/logs/error_log" and "chmod 755 error_log" to get rid of errors regarding logs.)

In addition, sometimes I noticed restarting Linux got rid of the "unable to bind to port" errors.

Also (nothing to do with the above), I was surprised that with the Slackware package, the "httpd.conf" included with the Linux download was empty, and that there was no "httpd-default.conf" (this does not apply to the source from Apache itself). I found out that they stuck it in a different directory for Linux: you can find "httpd-default.conf" in "/etc/httpd/extra". So just do this:
Code:
rm /etc/httpd/httpd.conf
cp /etc/httpd/extra/httpd-default.conf /etc/httpd/httpd.conf

Last edited by ShellyCat; 12-24-2010 at 02:17 AM. Reason: Additional solutions for port errors and log errors.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
Apache will not start. MercuryRaz0r Linux - Networking 7 11-04-2004 08:10 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM
Apache 2.0.45 does not start arkopolo Linux - Software 1 07-08-2003 12:52 PM
Apache won't start .... yogi-bear Linux - Newbie 2 09-03-2002 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration