Computing.Net > Forums > Solaris > Apache on Solaris 10

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Apache on Solaris 10

Reply to Message Icon

Name: wolf60s
Date: February 12, 2005 at 16:57:50 Pacific
OS: Solaris 10 intel
CPU/Ram: p4/500m
Comment:

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 running

How 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.




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: February 15, 2005 at 07:05:48 Pacific
Reply:

Have a look at the log files, probably located in /var/log/httpd/*log


0

Response Number 2
Name: wolf60s
Date: February 15, 2005 at 18:39:24 Pacific
Reply:

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
#


0

Response Number 3
Name: David Perry
Date: February 16, 2005 at 05:53:42 Pacific
Reply:

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".


0

Response Number 4
Name: wolf60s
Date: February 19, 2005 at 13:20:24 Pacific
Reply:

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.


0

Response Number 5
Name: David Perry
Date: February 22, 2005 at 08:01:50 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: wolf60s
Date: February 26, 2005 at 12:59:02 Pacific
Reply:

David, Thanks for your help. It works well after change user and group.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Apache on Solaris 10

Apache installation in Solaris 10 www.computing.net/answers/solaris/apache-installation-in-solaris-10-/4430.html

Multipathing in solaris 10 www.computing.net/answers/solaris/multipathing-in-solaris-10/5132.html

Open ports on Solaris 10 www.computing.net/answers/solaris/open-ports-on-solaris-10/4811.html