Gene Heskett wrote:
> > Are you running FastCGI with your Apache instead of the internal
> > Apache handler?  (Which is fine.)  Check the configuration for it.
> > Something might be snafu there setting the communication socket.
> 
> I think I am, but its been years since I last messed with that.  Is there 
> a quick way to tell someplace in the /etc/apache2 tree?

I would try grep'ing the entire tree looking for the socket file name.
That config has to be in there somewhere.

  grep -r cgisock /etc/apache2

> > > No clue how to fix this one, APACHE_RUN_DIR is not set in the
> > > environment. Broken init.d script perhaps??
> >
> > It is in the /etc/apache2/envvars file.
> 
> Ahh, lemme check. BRB.  Humm, its not in that file, so
> >
> >   $ grep APACHE_RUN_DIR /etc/apache2/envvars
> >   export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
> 
> Add this, restart.  Solves both problems.  Thank you, Bob.

That file has a lot of stuff in it.  If you were missing that then you
are probably missing a lot of that file.  I would be inclined to
re-install apache2.2-common in order to get a clean copy of that
file.  Normally there isn't any reason to need to modify it.  I will
include a copy from Wheezy 7 at the end.

Bob

# envvars - default environment variables for apache2ctl

# this won't be correct after changing uid
unset HOME

# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
        SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
        SUFFIX=
fi

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale

export LANG

## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'

## If you need a higher file descriptor limit, uncomment and adjust the
## following line (default is 8192):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'


## If you would like to pass arguments to the web server, add them below
## to the APACHE_ARGUMENTS environment.
#export APACHE_ARGUMENTS=''

Attachment: signature.asc
Description: Digital signature

Reply via email to