envvars 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # envvars - default environment variables for apache2ctl
  2. # this won't be correct after changing uid
  3. unset HOME
  4. # for supporting multiple apache2 instances
  5. if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
  6. SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
  7. else
  8. SUFFIX=
  9. fi
  10. # Since there is no sane way to get the parsed apache2 config in scripts, some
  11. # settings are defined via environment variables and then used in apache2ctl,
  12. # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
  13. export APACHE_RUN_USER=www-data
  14. export APACHE_RUN_GROUP=www-data
  15. # temporary state file location. This might be changed to /run in Wheezy+1
  16. export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
  17. export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  18. export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  19. # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
  20. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
  21. ##
  22. #export APACHE_ROOT_DIR=/home/www
  23. ## The locale used by some modules like mod_dav
  24. export LANG=C
  25. ## Uncomment the following line to use the system default locale instead:
  26. #. /etc/default/locale
  27. export LANG
  28. ## The command to get the status for 'apache2ctl status'.
  29. ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
  30. #export APACHE_LYNX='www-browser -dump'
  31. ## If you need a higher file descriptor limit, uncomment and adjust the
  32. ## following line (default is 8192):
  33. #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
  34. ## If you would like to pass arguments to the web server, add them below
  35. ## to the APACHE_ARGUMENTS environment.
  36. #export APACHE_ARGUMENTS=''
  37. ## Enable the debug mode for maintainer scripts.
  38. ## This will produce a verbose output on package installations of web server modules and web application
  39. ## installations which interact with Apache
  40. #export APACHE2_MAINTSCRIPT_DEBUG=1