* [gentoo-user] Oddities in apache2 update, other init bizarrity.
@ 2007-09-05 2:55 Kevin O'Gorman
2007-09-05 15:21 ` Dan Farrell
2007-09-05 16:27 ` Grant
0 siblings, 2 replies; 15+ messages in thread
From: Kevin O'Gorman @ 2007-09-05 2:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]
Stable x86 just got a new apache server, and it's puzzling me.
For one thing, /etc/conf.d/apache2 now ends with this
# Environment variables to keep
# All environment variables are cleared from apache
# Use this to preserve some of them
# NOTE!!! It's very important that this contains PATH
# TODO: Phase this out in favor of /etc/conf.d/env_whitelist
#KEEPENV="PATH"
It has said all along that it's important to have PATH, but now it's
commented out without any replacement in env_whitelist.
Moreover, there's no example in env_whitelist to show the syntax. I just
put PATH in there on a line of its own, and hoped for the best.
The bigger puzzle is this one: I can't stop apache because it can't be
found, but I also can't start it because it's already running. It is in
fact running and serving web pages. But I'd like the init stuff to be a lot
more consistent.
The confusion about cupsd and vmware is a separate issue I've been meaning
to ask about for months; I don't think it has anything to do with apache2.
treat ~ # cd /etc/init.d
treat init.d # ./apache2 stop
* Stopping apache2 ...
No /usr/sbin/apache2 found running; none
killed.
[ !! ]
treat init.d # ./apache2 start
* WARNING: apache2 has already been started.
treat init.d # ./apache2 status
* Caching service dependencies ...
* Service 'cupsd' should be AFTER service 'vmware', but one of
* the services 'vmware' depends on, depends on
'cupsd'!
[ ok ]
* status: started
treat init.d #
--
Kevin O'Gorman, PhD
[-- Attachment #2: Type: text/html, Size: 3133 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 2:55 [gentoo-user] Oddities in apache2 update, other init bizarrity Kevin O'Gorman
@ 2007-09-05 15:21 ` Dan Farrell
2007-09-05 16:27 ` Grant
1 sibling, 0 replies; 15+ messages in thread
From: Dan Farrell @ 2007-09-05 15:21 UTC (permalink / raw
To: gentoo-user
On Tue, 4 Sep 2007 19:55:44 -0700
"Kevin O'Gorman" <kogorman@gmail.com> wrote:
> treat ~ # cd /etc/init.d
> treat init.d # ./apache2 stop
> * Stopping apache2 ...
> No /usr/sbin/apache2 found running; none
> killed.
> [ !! ]
> treat init.d # ./apache2 start
> * WARNING: apache2 has already been started.
Have you tried # /etc/init.d/apache2 zap
# killall apache2
# /etc/init.d/apache2 start
?
> treat init.d # ./apache2 status
> * Caching service dependencies ...
> * Service 'cupsd' should be AFTER service 'vmware', but one of
> * the services 'vmware' depends on, depends on
> 'cupsd'!
the dependancies are pretty easy to find and even adjust
in /etc/init.d; in fact, for cups, head does a really nice job of
clipping the whole thing as an example:
|dan@pascal ~ $ head /etc/init.d/cupsd
|#!/sbin/runscript
|
|depend() {
| use net
| after logger
| before nfs
| use hotplug
| after vmware
|}
you can list for vmware too, and see which of those depends on cups,
and fix this circular dependency issue; if you do so, you might want to
consider filing a bug report so others can fix it automatically on next
update.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 2:55 [gentoo-user] Oddities in apache2 update, other init bizarrity Kevin O'Gorman
2007-09-05 15:21 ` Dan Farrell
@ 2007-09-05 16:27 ` Grant
2007-09-05 17:19 ` Dan Farrell
` (2 more replies)
1 sibling, 3 replies; 15+ messages in thread
From: Grant @ 2007-09-05 16:27 UTC (permalink / raw
To: gentoo-user
> Stable x86 just got a new apache server, and it's puzzling me.
>
> For one thing, /etc/conf.d/apache2 now ends with this
>
> # Environment variables to keep
> # All environment variables are cleared from apache
> # Use this to preserve some of them
> # NOTE!!! It's very important that this contains PATH
> # TODO: Phase this out in favor of /etc/conf.d/env_whitelist
> #KEEPENV="PATH"
>
> It has said all along that it's important to have PATH, but now it's
> commented out without any replacement in env_whitelist.
> Moreover, there's no example in env_whitelist to show the syntax. I just
> put PATH in there on a line of its own, and hoped for the best.
>
> The bigger puzzle is this one: I can't stop apache because it can't be
> found, but I also can't start it because it's already running. It is in
> fact running and serving web pages. But I'd like the init stuff to be a lot
> more consistent.
I had the same problem yesterday, but rebooting the machine fixed it.
As for the KEEPENV, I was puzzled by that too but I didn't add
anything to env_whitelist and I left KEEPENV commented. Everything
seems to be fine.
Today apache2 wants to upgrade to 2.2.4-r12. I've got cold feet.
Anyone tried this yet?
- Grant
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 16:27 ` Grant
@ 2007-09-05 17:19 ` Dan Farrell
2007-09-05 17:20 ` Dan Farrell
[not found] ` <20070905124003.14f99ca1@pascal.spore.ath.cx>
2 siblings, 0 replies; 15+ messages in thread
From: Dan Farrell @ 2007-09-05 17:19 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Sep 2007 09:27:32 -0700
Grant <emailgrant@gmail.com> wrote:
> I had the same problem yesterday, but rebooting the machine fixed it.
> As for the KEEPENV, I was puzzled by that too but I didn't add
> anything to env_whitelist and I left KEEPENV commented. Everything
> seems to be fine.
Possibly the commented out setting is meant to show the default, as is
common in config files. The warning is to make sure that if you change
it you don't remove PATH.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 16:27 ` Grant
2007-09-05 17:19 ` Dan Farrell
@ 2007-09-05 17:20 ` Dan Farrell
[not found] ` <32F9A50E9B2B5A4AA062A602121DD4F00629C567@USEA-EXCH3.na.uis.unisys.com>
[not found] ` <20070905124003.14f99ca1@pascal.spore.ath.cx>
2 siblings, 1 reply; 15+ messages in thread
From: Dan Farrell @ 2007-09-05 17:20 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Sep 2007 09:27:32 -0700
Grant <emailgrant@gmail.com> wrote:
> Today apache2 wants to upgrade to 2.2.4-r12. I've got cold feet.
> Anyone tried this yet?
I just started it out, to see what happens.
I turned off the AC today, my feet aren't very cold ; )
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <20070905124003.14f99ca1@pascal.spore.ath.cx>]
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
[not found] ` <20070905124003.14f99ca1@pascal.spore.ath.cx>
@ 2007-09-05 20:23 ` Grant
2007-09-05 22:16 ` Dan Farrell
0 siblings, 1 reply; 15+ messages in thread
From: Grant @ 2007-09-05 20:23 UTC (permalink / raw
To: gentoo-user
> > Today apache2 wants to upgrade to 2.2.4-r12. I've got cold feet.
> > Anyone tried this yet?
>
> a few minutes, 8 config file updates (i didn't let it
> update /etc/conf.d/apache2 or /etc/apache2/httpd.conf),
> and apache2 didn't restart.
>
> modules appear to have changed names. Working on fixing now. Kindly,
> apache2 didn't stop working before it checked config, so my site hasn't
> even gone down yet ; )
>
> However any advice would be appreciated as far as tracking down what I
> should have saved from the new httpd.conf
Any luck? Can you just re-emerge the package and go through
etc-update properly?
- Grant
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 20:23 ` [gentoo-user] Oddities in apache2 update, other init bizarrity Grant
@ 2007-09-05 22:16 ` Dan Farrell
2007-09-05 22:34 ` kashani
0 siblings, 1 reply; 15+ messages in thread
From: Dan Farrell @ 2007-09-05 22:16 UTC (permalink / raw
To: gentoo-user
On Wed, 5 Sep 2007 13:23:25 -0700
Grant <emailgrant@gmail.com> wrote:
> Any luck? Can you just re-emerge the package and go through
> etc-update properly?
>
> - Grant
You will have to accept some of the changes to /etc/apache2/httpd.conf.
some of the module names and files have changed; I also had to take out
part of my httpd.conf file to get it working properly.
so the answer is yes, if you manually merge httpd.conf.
You will also have to rebuild php module if you use it.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] Oddities in apache2 update, other init bizarrity.
2007-09-05 22:16 ` Dan Farrell
@ 2007-09-05 22:34 ` kashani
0 siblings, 0 replies; 15+ messages in thread
From: kashani @ 2007-09-05 22:34 UTC (permalink / raw
To: gentoo-user
Dan Farrell wrote:
>
> You will have to accept some of the changes to /etc/apache2/httpd.conf.
>
> some of the module names and files have changed; I also had to take out
> part of my httpd.conf file to get it working properly.
>
> so the answer is yes, if you manually merge httpd.conf.
It's always a good idea to make any custom changes in your own config
files. I generally do not modify the Gentoo provided httpd.conf at all
and then load in my own configs to make changes afterwards. Makes
merging changes from Gentoo easier.
I usually put mine in /etc/apache2/vhosts.d/
000_httpd_tweaks.conf
00_default_vhost.conf
www.badapple.net.conf
and so on.
At first it seems like Gentoo is forcing you to jump through hoops and
making your life complex. In some ways it is. However I've found that
creating specific config files keeps you from losing settings when you
migrate to new servers or update your server in just about any distro of
Linux. It's a good habit to get into.
kashani
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2007-09-05 22:46 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 2:55 [gentoo-user] Oddities in apache2 update, other init bizarrity Kevin O'Gorman
2007-09-05 15:21 ` Dan Farrell
2007-09-05 16:27 ` Grant
2007-09-05 17:19 ` Dan Farrell
2007-09-05 17:20 ` Dan Farrell
[not found] ` <32F9A50E9B2B5A4AA062A602121DD4F00629C567@USEA-EXCH3.na.uis.unisys.com>
2007-09-05 18:12 ` [gentoo-user] Apache2 2.0 -> 2.2 upgrade Dan Farrell
2007-09-05 18:39 ` Dan Farrell
2007-09-05 18:57 ` Christian Heim
2007-09-05 20:11 ` Dan Farrell
2007-09-05 18:42 ` Christian Heim
2007-09-05 19:06 ` Dan Farrell
2007-09-05 19:26 ` [gentoo-user] Apache2 2.0 -> 2.2 upgrade [solved] Dan Farrell
[not found] ` <20070905124003.14f99ca1@pascal.spore.ath.cx>
2007-09-05 20:23 ` [gentoo-user] Oddities in apache2 update, other init bizarrity Grant
2007-09-05 22:16 ` Dan Farrell
2007-09-05 22:34 ` kashani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox