Build Your Own Apache Server with mod_perl and mod_ssl
Subject:   Get the Sharing Tab to recognize your new Apache install
Date:   2003-01-30 12:07:37
From:   anonymous2
here are the steps

edit httpd.conf
1. change Users and Groups to www

# 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 nobody on these systems!
User www
Group www

2. Change Pidfile to /private/var/run/
# PidFile: The file in which the server should record its process
# identification number when it starts.
PidFile /private/var/run/

3. edit apachectl and change path to pid file
# the path to your PID file

4. make sure /System/Library/StartupItems/Apache/Apache looks something like this ($WEBSERVER vars must be used)

# Apache HTTP Server

. /etc/rc.common

StartService ()
if [ "${WEBSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting Apache"
/usr/local/apache/bin/apachectl start

StopService ()
ConsoleMessage "Stopping Apache"
/usr/local/apache/bin/apachectl stop

RestartService ()
if [ "${WEBSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Restarting Apache"
/usr/local/apache/bin/apachectl restart

RunService "$1"

1 to 1 of 1
  1. No go with Apache2/Panther
    2004-03-05 06:01:16 [View]

1 to 1 of 1