Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I installed apache by:
(openssl-0.9.7e-sol10-intel-local and libgcc-3.3-sol10-intel-local have been installed in openssh.)
# pkgadd -d apache-2.0.52-sol10-intel-local
# pkgadd -d db-4.2.52.NC-sol10-intel-local
# pkgadd -d expat-1.95.5-sol10-intel-local
# pkgadd -d
# pkgadd -d libiconv-1.8-sol10-intel-local
# ln -s /usr/local/apache2/bin/apachectl /etc/rc3.d/S99apache# /etc/rc3.d/S99apache start
# /etc/rc3.d/S99apache stop
httpd (pid 635?) not runningHow can I know if it is correct? I tried http://192.168.1.2:80 from the other pc and failed. If every is right I believe I should able to access that. Please help. Thanks.

Thanks for your reply, I did see any httpd
# cd /var/log
# ls
Xorg.0.log authlog snmpd.log syslog
Xorg.0.log.old pool sysidconfig.log webconsole
#

The location of the log files is dictated in the httpd.conf file. It will tell you where to look.
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".

Thanks for your reply, I found the error log and don't know how to solve the problem, please read following error log from /usr/local/apache2/logs:
[Sat Feb 19 15:29:48 2005] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Sat Feb 19 15:29:48 2005] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Sat Feb 19 15:29:48 2005] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Sat Feb 19 15:29:48 2005] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Sat Feb 19 15:29:48 2005] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Sat Feb 19 15:29:49 2005] [notice] Apache/2.0.52 (Unix) DAV/2 configured -- resuming normal operations
[Sat Feb 19 15:29:49 2005] [alert] Child 497 returned a Fatal error...\nApache is exiting!
[Sat Feb 19 15:39:05 2005] [notice] Digest: generating secret for digest authentication ...
[Sat Feb 19 15:39:05 2005] [notice] Digest: done
[Sat Feb 19 15:39:05 2005] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous
Apache run?Thanks.

It says that the apache process is trying to run as an undefined group. Look at the section of the httpd.conf that specifies UID and GID and change to valid values.
# 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 www and 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 apache
Group apache

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |