Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496266 - www-servers/apache-2.2.25 - apache2.service fails because it does not set SERVERROOT and CONFIGFILE
Summary: www-servers/apache-2.2.25 - apache2.service fails because it does not set SER...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
Depends on:
Reported: 2013-12-28 13:34 UTC by Evert
Modified: 2017-11-09 11:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2013-12-28 13:34:00 UTC
www-servers/apache-2.2.25 doesn't start using systemd.

This is caused by /usr/lib/systemd/system/apache2.service which doesn't implement the SERVERROOT and CONFIGFILE variables, not even hardcoded!

My workaround is adding "-d /usr/lib64/apache2 -f /etc/apache2/httpd.conf" to APACHE2_OPTS in /etc/conf.d/apache2 so for me it now looks like this:

APACHE2_OPTS="-D SSL -D PROXY -D PHP5 -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf"

I haven't reported any gentoo bugs in years, but this is my third bug report for services using systemd and I expect this not to be the last one ;)
Comment 1 Pacho Ramos gentoo-dev 2013-12-28 13:51:56 UTC
This comes from the first round of including service files and were working ok also on Sabayon:
*apache-2.2.24-r1 (20 May 2013)

  20 May 2013; Fabio Erculiani <> +apache-2.2.24-r1.ebuild,
  apache-2.4.4-r3.ebuild, +files/00_systemd.conf,
  +files/httpd-2.4.3-mod_systemd.patch, +files/apache.conf,
  +files/apache2.2.service, +files/apache2.4.service:
  add systemd support to both 2.2 and 2.4 branches on behalf of the systemd
  team, fix bug #466096, overriding unresponsive maintainer

@Fabio, are you around?
Comment 2 Evert 2014-05-13 07:01:20 UTC
It looks like Fabio is not around...
Am I really the only one using apache with systemd on Gentoo?
Comment 3 Pacho Ramos gentoo-dev 2017-11-09 11:02:17 UTC
this looks obsolete now (I run 2.4.27 without any issues)