Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get apache 2 to start 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Im using TurboLinux 6.5 and Ive been trying to install apache2 successfully, but to no avail. i ran the following commands:

./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
make
make install

After that, I modified httpd.conf and then entered /usr/local/apache2/bin/apachectl start

The server states: /usr/local/apache2/bin/apachectl start: httpd started

However, when I run ps -ax, it doesnt show that apache2 has started. and when i try to access the server thru the web, it isnt up and running.

I've been able to install apache1.3.24 with no problems, but i dont understand why apache2 wont start as well. Is there a certain special way of installing apache2? Any help is appreciated. Id really like to get this thing working already
 
Perhaps your configuration is not set up properly, I suggest you check the error.log and paste it in here so we can see what the problem is.
 
Here's what the error log says after I try to start Apache2 up:

[warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous apache run?
[notice] Apache/2.0.36 (Unix) configured -- resuming normal operations
[alert] (22) Invalid argument: setgid: unable to set group id to Group 4294967295
[alert] (22) Invalid argument: setgid: unable to set group id to Group 4294967295
[alert] (22) Invalid argument: setgid: unable to set group id to Group 4294967295
[alert] (22) Invalid argument: setgid: unable to set group id to Group 4294967295
[alert] (22) Invalid argument: setgid: unable to set group id to Group 4294967295
[alert] Child 302 returned a Fatal error . . . Apache is exiting!

I dont quite understand what the problem is by just looking at the error log. Any help is appreciated!! Thanks!

-REI
 
Ok this is a fairly simple problem to fix. There is a section in yout httpd.conf file which will look something like this

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User nobody
Group #-1


Change the Group #-1 to Group nogroup and make sure that you have the group nogroup on your system.

Hope this helps
Brett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top