Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Tue, 17 Nov 2009 22:11:55 -0800, John R Pierce wrote:

 Mike - email ignored wrote:
 How do I format the prompt at level 3?  One of my accounts has it
 right, but not the other. I guessed that it was in .tcshrc which was
 missing from the bad account so I copied it from the good account, but
 it made no difference.
   
   
 depends on what shell you're using   bash uses $HOME/.bash_profile

Its bash.  Following from .bash_profile to .bashrc to /etc/bashrc,
and noting that at level 3, $TERM=linux, I should be calling
/etc/sysconfig/bash-prompt-default, if I have one, which I don't.

But root gets it right, and myUser gets it wrong.

   cd; grep -i .*

shows only the .tcshrc which I should have realized is not the one.
So how is root getting it right?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Wed, 18 Nov 2009 08:25:48 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:
[...]
 
 Ah! Permission/ownership problem?
 
   mark

Good suggestion.  I found that for myUser .bashrc had the wrong
permissions and .bash_profile was missing!  I am sure that this
happened because I copied /home/myUser was copied in from backup
before the account was created.  We won't do that again.

But now, I still do not see how the prompt is set since I have
no /etc/sysconfig/bash-prompt-default .

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Wed, 18 Nov 2009 09:22:44 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:

 On Wed, 18 Nov 2009 08:25:48 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw
 wrote: [...]

 Ah! Permission/ownership problem?

 Good suggestion.  I found that for myUser .bashrc had the wrong
 permissions and .bash_profile was missing!  I am sure that this
 happened because I copied /home/myUser was copied in from backup before
 the account was created.  We won't do that again.

 But now, I still do not see how the prompt is set since I have no
 /etc/sysconfig/bash-prompt-default .
 
From the code /etc/bashrc:
 ...
 screen)
 if [ -e /etc/sysconfig/bash-prompt-screen ]; then
 PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
 else
 PROMPT_COMMAND='echo -ne
 \033_${us...@${hostname%%.*}:${PWD/#$HOME/~}; echo -ne \033\\'
 fi
 ;;
 ...
 
  mark

Not so.  With this debug:

---

echo TERM = $TERM

# are we an interactive shell?
if [ $PS1 ]; then
case $TERM in
   xterm*)
  if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
 PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
  else
 PROMPT_COMMAND='echo -ne \033]0;${us...@${hostname%%.*}:${PWD/#
$HOME/~}; echo -ne \007'
  fi
  ;;
   screen)
echo doing screen
  if [ -e /etc/sysconfig/bash-prompt-screen ]; then
 PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
  else
  PROMPT_COMMAND='echo -ne \033_${us...@${hostname%%.*}:${PWD/#$HOME/
~}; echo -ne \033\\'
  fi
  ;;
   *)
echo doing default
  [ -e /etc/sysconfig/bash-prompt-default ]  PROMPT_COMMAND=/etc/
sysconfig/bash-prompt-default
   ;;
esac

---

I get:

TERM = linux
doing default

The mystery remains.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Wed, 18 Nov 2009 17:48:58 +0100, Nicolas Thierry-Mieg wrote:

 Mike - email ignored wrote:
[...]

 I get:

 TERM = linux
 doing default

 The mystery remains.
 
 what do you get with these:
 echo $PROMPT_COMMAND
 echo $PS1
 
 if $PROMPT_COMMAND has a value you could grep for it (or for
 PROMPT_COMMAND) in /etc and subdirs, and try to find it?

[myu...@mbrc40 ~]$ echo $PROMPT_COMMAND

[myu...@mbrc40 ~]$ echo $PS1
[...@\h \W]\$

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Wed, 18 Nov 2009 09:50:54 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:

[...]
 No, we're getting closer. What you need to find out is what's setting
 TERM to linux, which is further back than /etc/bashrc. Is the user
 logging directly onto the Linux box, or are they from, say, a WinDoze
 box via putty, or ...?
 
mark

Direct.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] format level 3 prompt

2009-11-18 Thread Mike - email ignored
On Wed, 18 Nov 2009 18:00:25 +0100, Frank.Brodbeck-E4aVwrWTXLGELgA04lAiVw
wrote:

 Hi,
 
 I'd try this as a quickshot:
 
 find /etc /root /home -type f -exec grep -l PS3 {} \;
 
 than I'd take a closer look at the files that will show up. And I'd read
 bash(1) closely to learn which files are being read in which order and
 especially when.
 
 If all of the above doesn't lead me anywhere, I'd start poking around on
 a mailing list to see if somebody could explain me what's going on, but
 maybe that's just me.
 
 Frank.

[r...@mbrc40 ~]# find /etc /root /home -type f -exec grep -l PS3 {} \;
/etc/termcap
/etc/pki/tls/certs/ca-bundle.crt
/etc/alsa/cards/PS3.conf
/root/.ssh/exe/psftp.exe
/root/.ssh/exe/putty.exe
/root/.mozilla/firefox/l2cth6mq.default/Cache/61FD9500d01
/root/nvidia/NVIDIA-Linux-x86-190.42-pkg1.run
[... I removed results in .pan2]

In termcap, it is in a comment.

in ca-bundle.crt, its in the base64 (don't tell anyone)

Nothing else seems relevant.

Mike.








___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] openvpn server: one client works; one fails.

2009-11-17 Thread Mike - email ignored
I installed an openvpn-2.0.9 server on my new CentOS 5.4 box from
using the same parameters I used on a Fedora box I retired.

Now I have a dual boot laptop that has WinXP and Fedora FC8.  Both of
these partitions have openvpn clients installed that have worked well in
the past.

After adjusting these for new IP addresses, I find:

   WinXP:  connects and contacts boxes on the same
   LAN as the server.

   FC8 appears to connect but will not contact
   anything.

Since I have nested routers, I was able to disconnect from the real WAN,
and use an emulated WAN.  I then shut off iptables on both Linux boxes. 
The behavior was not altered.

BTW, I use TAP rather than TUN.

I have run out of ideas.  Suggestions would be most welcome.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openvpn server: one client works; one fails.

2009-11-17 Thread Mike - email ignored
On Tue, 17 Nov 2009 21:14:14 +, Mike - email ignored wrote:

[...]

PROBLEM SOLVED by shutting off eth0 on the laptop.
This was never necessary before.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] format level 3 prompt

2009-11-17 Thread Mike - email ignored
How do I format the prompt at level 3?  One of
my accounts has it right, but not the other.
I guessed that it was in .tcshrc which was
missing from the bad account so I copied it
from the good account, but it made no
difference.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] openvpn for CentOS 5.4

2009-11-16 Thread Mike - email ignored
Where can I get openvpn for Centos 5.4? 
yum list openvpn doesn't find it.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] pan news reader

2009-11-14 Thread Mike - email ignored
On Fri, 13 Nov 2009 22:41:47 -0500, Ron Loftin wrote:

 On Sat, 2009-11-14 at 03:38 +, MIKE - EMAIL IGNORED wrote:
 Does anyone know if the pan news reader works on CentOS 5.4?  I am
 considering installing version 0.132 that I downloaded from
 pan.rebelbase.com .
 
 
 I'm using 0.133 from rpmforge.  Seems to work fine.
 
 Thanks for your advice.
 
 Mike.
 
I was not successful in installing the tarball from pan.rebelbase.com
so I tried the rpm you suggested.  It went in with no problem.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] pan news reader

2009-11-14 Thread Mike - email ignored
On Sat, 14 Nov 2009 05:00:28 -0500, B.J. McClure wrote:

 
 This works fine for me on 5.4.
 
 [bmccl...@house ~]$ rpm -q pan
 pan-0.132-1.el5.rf
 
 CentOS 5.4, Linux 2.6.18-164.6.1.el5 athlon 04:58:11 up 8:30, 2 users,
 load average: 0.06, 0.13, 0.09

It didn't work for me until I installed it from an rpm.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stop K3B CDDB Popup

2009-11-13 Thread MIKE - EMAIL IGNORED
On Fri, 13 Nov 2009 02:27:18 -0800, John Doe wrote:

 From: MIKE - EMAIL IGNORED
 m_d_berger_1...@yahoo.com
 On CentOS 5.4 I just installed K3B to write some CDs.  Now every time I
 used a CD, I get a popup that asks me to Select a CDDB entry  How
 can I stop this popup?
 
 Tried the 'configure k3b' menu?
 There's a CDDB section...
 
 JD

Yes, I unchecked the things in the CDDB section.
The popup still appears.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stop K3B CDDB Popup

2009-11-13 Thread MIKE - EMAIL IGNORED
On Fri, 13 Nov 2009 06:22:02 -0800, John Doe wrote:

 From: MIKE - EMAIL IGNORED
 m_d_berger_1...@yahoo.com
 On Fri, 13 Nov 2009 02:27:18 -0800, John Doe wrote:
  From: MIKE - EMAIL IGNORED
  On CentOS 5.4 I just installed K3B to write some CDs.  Now every
  time I used a CD, I get a popup that asks me to Select a CDDB entry
   How can I stop this popup?
  
  Tried the 'configure k3b' menu?
  There's a CDDB section...
 
 Yes, I unchecked the things in the CDDB section. The popup still
 appears.
 
 I have local CDDB, maybe that's why I don't get popups?
 
   $ cat ~/.kde/share/config/k3brc
   [Cddb]
   cddb server=Http freedb.org:80
   cgi path=/~cddb/cddb.cgi
   local cddb dirs=~/.cddb/
   save cddb entries locally=true
   use local cddb query=true
   use manual cgi path=false
   use remote cddb=false
 
 But I never inserted an audio CD, so cannot be sure...

 JD
Didn't work.  Then I ran yum remove k3b and I still
had the problem.  The popup top says KsCD and I found
an item on the menu by that name.  I checked Cache Only
in its configuration FWIW.  Also in Control Center -
Peripherals - Storage Media, I clicked Do Nothing.
For now, the popups stopped.

Is there a way to remove KsCD?  There is no audio on the system.

Mike.



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stop K3B CDDB Popup

2009-11-13 Thread MIKE - EMAIL IGNORED
On Fri, 13 Nov 2009 13:29:10 -0600, Robert wrote:

 MIKE - EMAIL IGNORED wrote:
 On Fri, 13 Nov 2009 06:22:02 -0800, John Doe wrote:


 From: MIKE - EMAIL IGNORED
 m_d_berger_1...@yahoo.com
 
 On Fri, 13 Nov 2009 02:27:18 -0800, John Doe wrote:
   
 From: MIKE - EMAIL IGNORED
 
 On CentOS 5.4 I just installed K3B to write some CDs.  Now every
 time I used a CD, I get a popup that asks me to Select a CDDB
 entry  How can I stop this popup?
   
 Tried the 'configure k3b' menu?
 There's a CDDB section...
 
 Yes, I unchecked the things in the CDDB section. The popup still
 appears.
   
 I have local CDDB, maybe that's why I don't get popups?

   $ cat ~/.kde/share/config/k3brc
   [Cddb]
   cddb server=Http freedb.org:80
   cgi path=/~cddb/cddb.cgi
   local cddb dirs=~/.cddb/
   save cddb entries locally=true
   use local cddb query=true
   use manual cgi path=false
   use remote cddb=false

 But I never inserted an audio CD, so cannot be sure...

 JD
 
 Didn't work.  Then I ran yum remove k3b and I still had the problem. 
 The popup top says KsCD and I found an item on the menu by that name.
  I checked Cache Only in its configuration FWIW.  Also in Control
 Center - Peripherals - Storage Media, I clicked Do Nothing. For
 now, the popups stopped.

 Is there a way to remove KsCD?  There is no audio on the system.

 Mike.
   
 Kscd is part of the kdemultimedia package:
 
 [r...@mavis rj]# rpm -q --whatprovides /usr/bin/kscd
 kdemultimedia-3.5.4-2.fc6
 
 You might want to worry about what else is in that package before
 tossing it:
 
 [r...@mavis rj]# rpm -ql kdemultimedia | wc -l 1077
 [r...@mavis rj]#
 
 You might find a config option in /usr/share/config.kcfg/kscd.kcfg but
 that's an XML file.
 Another thought is to rename the executable and see what havoc that
 causes or look at the spec file in the src.rpm with the idea of getting
 rid of the junk the right way.
 
 Good luck!

Thanks, I just ran yum remove kdemultimedia.  Since the box is
used primarily for C++ code development, and occasionally as a
web server, I have a strong feeling that I won't miss it.  If I
do, I could reinstall it.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] pan news reader

2009-11-13 Thread MIKE - EMAIL IGNORED
Does anyone know if the pan news reader works
on CentOS 5.4?  I am considering installing
version 0.132 that I downloaded from
pan.rebelbase.com .

Thanks for your advice.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Stop K3B CDDB Popup

2009-11-12 Thread MIKE - EMAIL IGNORED
On CentOS 5.4 I just installed K3B to write some
CDs.  Now every time I used a CD, I get a popup
that asks me to Select a CDDB entry 
How can I stop this popup?

Thanks,
Mike,

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos HP Pavilion box

2009-11-07 Thread Mike -- EMAIL IGNORED
Has anyone put Centos 5.4 (or ant version on aHP Pavilion box?
I'm having some problems.  For example, I can't get
my Dell E198WFPV 1440x900 monitor to work correctly.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos HP Pavilion box

2009-11-07 Thread Mike -- EMAIL IGNORED
On Sat, 07 Nov 2009 11:33:08 -0500, mark wrote:

 Mike -- EMAIL IGNORED wrote:
 Has anyone put Centos 5.4 (or ant version on aHP Pavilion box? I'm
 having some problems.  For example, I can't get my Dell E198WFPV
 1440x900 monitor to work correctly.
 
 What's the video card?
 
   mark

Video card: NVIDA C73 [GeForce: 7100/ nForce 630i]

When I go to: Administration - Display - Settings
and select 1440x900, it changes it to 1280x1024.
It does this for various settings of Hardware - Monitor Type.
The monitor is a Dell E198WFPV.  I note that the list CentOS
offers includes all of this except the terminal 'V', with
analog and digital options.  I tried both, as well as
generic choices.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Problem: NVIDIA C73 1440x900

2009-11-07 Thread MIKE - EMAIL IGNORED
As mentioned in my previous thread, I can't get my
Video card: NVIDIA C73 [GeForce: 7100/ nForce 630i]
to display 1440x900 on my CentOS 5.4 on my HP
Pavilion with monitor Dell E198WFPV.

Googing around, I see that others have had this problem
with the NVIDIA card.  In one case, it was solved by
gaining access to card parameters and setting them
directly.  I can't find a way to do this on my box.

One solution might be to just insert another video
card in the bus, and ignore the NVIDIA.  Would this
work?  I have a card that I know works.

Thanks in advance for your advice.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem: NVIDIA C73 1440x900

2009-11-07 Thread MIKE - EMAIL IGNORED
On Sat, 07 Nov 2009 16:42:11 -0500, fred smith wrote:

 On Sat, Nov 07, 2009 at 09:31:20PM +, MIKE - EMAIL IGNORED wrote:
 As mentioned in my previous thread, I can't get my Video card: NVIDIA
 C73 [GeForce: 7100/ nForce 630i] to display 1440x900 on my CentOS 5.4
 on my HP Pavilion with monitor Dell E198WFPV.
 
 Googing around, I see that others have had this problem with the NVIDIA
 card.  In one case, it was solved by gaining access to card parameters
 and setting them directly.  I can't find a way to do this on my box.
 
 One solution might be to just insert another video card in the bus, and
 ignore the NVIDIA.  Would this work?  I have a card that I know works.
 
 Thanks in advance for your advice.
 
 Mike:
 
 I have no experience with that card, but here are a couple of ideas that
 may help:
 --are you using a digital (DVI) video cable, or the analog cable from
   video card to monitor? If DVI, try the analog (VGA) cable and see if
   it allows you to select the resolution you need. (my new DVI monitor
   came with a note that said that some cards cannot select the right
   resolution when using the DVI cable, but will work fine with a VGA
   cable--though it worked fine for me with my nvidia card (9800GT))
 --have you tried using xrandr to force it to the desired resolution?
   'man xrandr' is your friend.
 
 Fred

The screen is connected through an Iogear switch so the screen works
with two Linux boxes.  I assume that this is a digital connection,
although I don't really know.  Everything is fine with the other box
as well as the old box I am replacing.

I tried:  xrandx --verbose -s 1440x900

I get:  Size 1440x900 is not found in available modes

I am considering taking the video card from the old box and putting
it in the new one, and ignoring the original card in the new box.
Might this work?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Long tar -x: Box Shuts Down

2009-11-05 Thread Mike -- EMAIL IGNORED
My Centos 5.2 box shuts itself down during a
long tar -x.  There is plenty of disk available.
This is new; it worked in the past.

Any suggestions?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Long tar -x: Box Shuts Down

2009-11-05 Thread Mike -- EMAIL IGNORED
On Thu, 05 Nov 2009 11:04:50 -0800, Bill Campbell wrote:

 On Thu, Nov 05, 2009, Mike -- EMAIL IGNORED wrote:
My Centos 5.2 box shuts itself down during a long tar -x.  There is
plenty of disk available. This is new; it worked in the past.

Any suggestions?
 
 Look in the logs, particularly dmesg, to see if there are any hints
 there.
 
 Bill

Nothing jumps out.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Long tar -x: Box Shuts Down

2009-11-05 Thread Mike -- EMAIL IGNORED
On Thu, 05 Nov 2009 14:03:49 -0600, Les Mikesell wrote:

 Mike -- EMAIL IGNORED wrote:
 My Centos 5.2 box shuts itself down during a long tar -x.  There is
 plenty of disk available. This is new; it worked in the past.
 
 Any suggestions?
 
 Are you dropping things on top of running programs (like tar itself) or
 /proc or /sys?

I hope not; I am putting the result in a data directory.

In and case, I can't run at all now.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Long tar -x: Box Shuts Down

2009-11-05 Thread Mike -- EMAIL IGNORED
On Thu, 05 Nov 2009 23:51:35 +, Mike -- EMAIL IGNORED wrote:

 On Thu, 05 Nov 2009 11:04:50 -0800, Bill Campbell wrote:
 
 On Thu, Nov 05, 2009, Mike -- EMAIL IGNORED wrote:
My Centos 5.2 box shuts itself down during a long tar -x.  There is
plenty of disk available. This is new; it worked in the past.

Any suggestions?
 
 Look in the logs, particularly dmesg, to see if there are any hints
 there.
 
 Bill
 
 Nothing jumps out.
 
 Mike.

I got it working again with a rescue, but it still crashes.
Here are some suspect lines from messages:

Nov  5 19:35:14 mbrc21 kernel: hda: drive_cmd: status=0x51 { DriveReady 
SeekComplete Error }
Nov  5 19:35:14 mbrc21 kernel: hda: drive_cmd: error=0x04 
{ DriveStatusError }
Nov  5 19:35:14 mbrc21 kernel: ide: failed opcode was: 0xb0
...
Nov  5 19:35:34 mbrc21 kernel: ACPI: PCI Interrupt :01:00.0[A] - GSI 
16 (level, low) - IRQ 201

What do you think?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] differences in DNS between boxes

2009-08-04 Thread Mike -- EMAIL IGNORED
On Tue, 04 Aug 2009 21:31:22 +0200, Kai Schaetzl wrote:

 Mike -- EMAIL IGNORED wrote on Tue, 4 Aug 2009 16:56:22 + (UTC):
 
 Please refer to my thread excessive DNS slows httpd
 
 Why don't you keep posting in there then?

Because the new title reflects a new focus, and I hoped
to attract different people.

 
 Suggestions would be most welcome.
 
 Foremost, you want to find out why those queries are generated despite
 the fact that hostnamelookups are off. That is surely something in your
 configuration or a web application. It's not a general problem of Apache
 on CentOS, mine are all not doing that.
 
 Kai

Until now, for a long time, mine wasn't doing it either.

Part of the problem was suggested by someone on the Apache group;
there are two problems:

1. Both boxes have nscd, but it was not running on the CentOS
   box.  Now that I fixed that, all but the first connection
   are rapid, as you might expect.

2. We still do not why the change in httpd.conf caused the
   problem to appear.  However, my belief that there was a
   difference between the two machines is accounted for
   by the difference in /etc/init.d/nscd . When I tried it
   for the first time this morning, the box that previously
   been fast was slow.  No doubt, the nscd storage had
   timed out.

Except that nscd was not set to run, it is probably not
specifically a CentOS problem.  Perhaps I made a wrong
choice in setup?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] differences in DNS between boxes

2009-08-04 Thread Mike -- EMAIL IGNORED
On Tue, 04 Aug 2009 17:23:04 -0500, Les Mikesell wrote:

 Mike -- EMAIL IGNORED wrote:
 On Tue, 04 Aug 2009 21:31:22 +0200, Kai Schaetzl wrote:
 
[...]
 
 Until now, for a long time, mine wasn't doing it either.
 
 Part of the problem was suggested by someone on the Apache group; there
 are two problems:
 
 1. Both boxes have nscd, but it was not running on the CentOS
box.  Now that I fixed that, all but the first connection are rapid,
as you might expect.
 
 2. We still do not why the change in httpd.conf caused the
problem to appear.  However, my belief that there was a difference
between the two machines is accounted for by the difference in
/etc/init.d/nscd . When I tried it for the first time this morning,
the box that previously been fast was slow.  No doubt, the nscd
storage had timed out.
 
 Except that nscd was not set to run, it is probably not specifically a
 CentOS problem.  Perhaps I made a wrong choice in setup?
 
 If I really want to know what is different between two boxes, I'll do
 something like NFS mount one into the other or rsync their /etc trees
 somewhere on a common host and let diff -r walk through them.


As indicated above, I already know the difference between the two boxes.

 
 Are you sure this isn't as simple as having (and using, check your
 resolv.conf) a caching name server running on one box so most lookups
 are resolved locally while the other is making the query to something
 slow?

resolve.config is the same on the two boxes.

Mike.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] differences in DNS between boxes

2009-08-04 Thread Mike -- EMAIL IGNORED
On Tue, 04 Aug 2009 18:55:01 -0400, Matty wrote:

[...]

 If you are uncertain where the DNS lookups are originating from, you
 could always add an interposer between Apache and glibc. When the
 culprit calls one of the get* routines, you could log a backtrace to a
 file. Summarizing the backtraces should lead you to the modules (and
 directives) responsible for the lookups. If you happen to have a Solaris
 10 / OpenSolaris host handy, you can use the DTrace ustack() action to
 do just this. No need to muck around with interposing on the glibc
 calls.
 
 Hope this helps,
 - Ryan

I don't have Solaris; where would I get the interposer,
and how would I add it?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] differences in DNS between boxes

2009-08-04 Thread Mike -- EMAIL IGNORED
On Tue, 04 Aug 2009 14:58:17 -0700, nate wrote:

 Mike -- EMAIL IGNORED wrote:
 Except that nscd was not set to run, it is probably not specifically a
 CentOS problem.  Perhaps I made a wrong choice in setup?
 
 Something I like to do when troubleshooting apache related things is
 turn on mod_status and mod_info and compare the results there(mod_info
 really mod_status for realtime stuff), just in the off chance a config
 is loading that you don't expect, or perhaps apache wasn't properly
 restarted/reloaded since the last change etc.
 
 nate

I have good reason to believe that the loaded config
is largely correct; do think that this can tell me
why there are DNS calls?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] differences in DNS between boxes

2009-08-04 Thread Mike -- EMAIL IGNORED
On Tue, 04 Aug 2009 18:28:13 -0500, Les Mikesell wrote:

 Mike -- EMAIL IGNORED wrote:
 
 If I really want to know what is different between two boxes, I'll do
 something like NFS mount one into the other or rsync their /etc trees
 somewhere on a common host and let diff -r walk through them.
 
 
 As indicated above, I already know the difference between the two
 boxes.
 
 I find that a little hard to believe, since they behave differently and
 you seem not to understand why.

I have corrected the difference, and they now behave the same.

 
 Are you sure this isn't as simple as having (and using, check your
 resolv.conf) a caching name server running on one box so most lookups
 are resolved locally while the other is making the query to something
 slow?
 
 resolve.config is the same on the two boxes.
 
 Assuming you mean resolv.conf, is the the first choice one of the boxes
 in question?

Yes, resolv.conf ,  I am not sure that I understand the question.
The resolv.conf for the two boxes are identical.  Each contain two
router addresses.  I have two nested routers, and each have the
same two real DNS addresses.

Mike.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] excessive DNS slows httpd

2009-08-03 Thread Mike -- EMAIL IGNORED
My web server is a CentOS box thus:

   [root ~]# uname -a
   Linux mbrc21 2.6.18-92.1.22.el5 #1 SMP Tue
  Dec 16 12:03:43 EST 2008 i686 athlon i386 GNU/Linux
   root ~]# rpm -q httpd
   httpd-2.2.3-22.el5.centos.2

My development and standby is on a Fedora box thus:

   [root ~]# uname -a
   Linux mbrc32 2.6.23.17-88.fc7 #1 SMP Thu
  May 15 00:35:10 EDT 2008 i686 athlon i386 GNU/Linux
   [root@ ~]# rpm -q httpd
   httpd-2.2.8-1.fc7

They are close neighbors on my LAN.

Now I recently revised my httpd.conf making it somewhat
more complex and adding ssl for part of it.  Running the
same configuration on both boxes, I find that the Fedora
box runs rapidly, while the CentOS box is very slow.

Examining the situation with WireShark on both boxes I
find that in responding to a simple GET, the CentOS box
does a sequence of DNS queries to resolve the details of
the location of the client IP address, whereas the
Fedora box does no such thing.  It ts these DNS queries
that are causing the slow response.

Now if I revert to the old configuration, there is no
such problem and WireShark shows that there are no DNS
queries.

Advice on how to proceed would be much appreciated.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excessive DNS slows httpd

2009-08-03 Thread Mike -- EMAIL IGNORED
On Mon, 03 Aug 2009 20:11:09 -0400, Brian Mathis wrote:

 What did you revise in your httpd.conf file?  My guess is that you
 enabled DNS lookups for the connecting clients.
 

HostnameLookups Off

The changes were largely the removal of a lot of common
code for Directorys and VirtualHosts to other files
and the addition of Includes.  I then tightened up some
RewriteRules and RewriteConds, and added some
IfDefine so I don't have to edit the file as often.
And I added SSL for one virtual host, and bought a
certificate.

Remember -- the httpd configuration and the web data
itself are exactly the same on both boxes, except
for the IP addresses.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] excessive DNS slows httpd

2009-08-03 Thread Mike -- EMAIL IGNORED
On Mon, 03 Aug 2009 20:23:18 -0500, Les Mikesell wrote:

[...]

 Are you doing any proxy passthrough's or rewrites resulting in a proxy? 
 Or client access permissions based on hostnames.  These things might be
 specified in a .htaccess file.  Also, remember that all the
 /etc/httpd/conf.d/*.conf files
   are included.

I did cd /etc/httpd/conf.d/; grep -i HostnameLookups *; .
Anything else I should look for?  There are no
.htaccess files. I do use reverse proxy to access large
files which at present are on the same box.  However, the
failure occurs on the home page which is a simple menu
that doesn't call the reverse proxy.  It does go through
a rather complex CGI written in C++.  However, for the
home page, nothing complex happens; it is just passed
through.

Thanks for your ideas.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] aautomatic updates

2009-07-29 Thread Mike -- EMAIL IGNORED
On Tue, 28 Jul 2009 22:14:25 -0500, Robert wrote:

[...]
 Don't you just hate it when you know something and can't remember it!?!

Yes, and it happens more often as time passes.
Mike.



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] aautomatic updates

2009-07-28 Thread Mike -- EMAIL IGNORED
Could someone please remind me what
file controls automatic updates?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] httpd: internal dummy connection

2009-02-14 Thread Mike -- EMAIL IGNORED
On Thu, 12 Feb 2009 10:31:23 +0100, Kai Schaetzl wrote:

 Mike -- EMAIL IGNORED wrote on Wed, 11 Feb 2009 23:07:59 + (UTC):
 
 If I try to access it on a WinXP box, ZoneAlarm blocks it as a spy
 site.  I wonder why it thinks so.
 
 And I wonder why you use ZA at all.
 
 Kai

It blocks all sorts of things.  Along with useful software
I get, I get all sorts of junk that pops up things.  A few
clicks in ZA, and its gone, but not in a final way in case
I made a mistake.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] httpd: internal dummy connection

2009-02-14 Thread Mike -- EMAIL IGNORED
On Thu, 12 Feb 2009 10:41:26 +0100, Rainer Duffner wrote:

 Kai Schaetzl schrieb:
 Mike -- EMAIL IGNORED wrote on Wed, 11 Feb 2009 23:07:59 + (UTC):


 If I try to access it on a WinXP box, ZoneAlarm blocks it as a spy
 site.  I wonder why it thinks so.
 
 
 And I wonder why you use ZA at all.


   
 
 Or Windows, for that matter.
 ;-)
 
 
 Rainer

I still see it as a necessary evil.  Last time I looked
at Open Office, I found that cross-references in the
word processor essentially did not exist.  For most
uses, that is a deal breaker. :(

However, most of the time I spend on computers is
on various Linux boxes. :)

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] httpd: internal dummy connection

2009-02-11 Thread Mike -- EMAIL IGNORED
On my Centos 2.5 web server, in  /var/log/httpd/access_log,
I saw several occurrences of:

   new.mydomain.net - - [11/Feb/2009:14:34:58 -0500] GET /
  HTTP/1.0 403 - - Apache/2.2.3 (CentOS)
  (internal dummy connection)

I have never seen anything like this before over many
years of watching my logs.  I presume it failed because
my named virtual host does not have new..., if for
no other reason.

What is it?  Why do I have it now, and not before?

Thanks for your advice.
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] httpd: internal dummy connection

2009-02-11 Thread Mike -- EMAIL IGNORED
On Wed, 11 Feb 2009 14:45:36 -0800, Florin Andrei wrote:

 Mike -- EMAIL IGNORED wrote:
 
new.mydomain.net - - [11/Feb/2009:14:34:58 -0500] GET /
   HTTP/1.0 403 - - Apache/2.2.3 (CentOS) (internal dummy
   connection)
 
 What is it?  Why do I have it now, and not before?
 
 http://tinyurl.com/cnzaf6

If I click this on a FC7) Linux box, Firefox gets redirected
to google, and automatically runs a search.  I wonder
how that happens.

If I try to access it on a WinXP box, ZoneAlarm blocks
it as a spy site.  I wonder why it thinks so.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Old Small Box

2009-01-21 Thread Mike -- EMAIL IGNORED
I have an old 400mHz Dell with a 20G hard drive
and 125M ram.  Can I install and run CentOS on it?
Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bugs in yum update

2009-01-13 Thread Mike -- EMAIL IGNORED
On Tue, 13 Jan 2009 09:31:20 +0100, Kai Schaetzl wrote:

[...]
 I installed a fresh Centos 5.2
 
 that means exactly what?
 
 Kai

I have a DVD image of CentOS 5.2  downloaded
a few months ago.  It is installed on an ftp
server on a nearby machine.  I booted the
netinstall disk and did a complete install,
removing all partitions, and reformatting
the hard drive.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bugs in yum update

2009-01-13 Thread Mike -- EMAIL IGNORED
On Tue, 13 Jan 2009 11:18:37 +, Tony Mountifield wrote:

[...]
 
 This suggests that yum is not flushing output, possibly because it
 doesn't think it's stdio is on a tty.
 
 1. Were you running yum update locally on the console, or remotely via a
 network connection of some kind, e.g. ssh? If you do it as a direct
 command to ssh (ssh myhost yum update) you might get those symptoms,
 unless you also give -t to ssh: ssh -t myhost yum update
 
 2. If you were on the console, were you piping the output of yum through
 something else like tee? e.g. yum update | tee mylogfile
 If so, you might again get the same symptoms. If you want to capture the
 output of the session, use the script command:
 
 # script mylogfile
 Script started, file is mylogfile
 # yum update
 # exit
 Script done, file is mylogfile
 #
 
 If neither of the above is applicable, please explain exactly what you
 did, step by step, including what you might consider insignificant.
 
 Cheers
 Tony

On the local console, I did:
   yum update 21 | tee log
so, as you say, that might account for the
problem.  But it is not clear to me why this would be
so.  I'll try the script suggestion.

FWIW, the missing output did not appear in the log file.

Thanks,
Mike.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bugs in yum update

2009-01-13 Thread Mike -- EMAIL IGNORED
I am redoing it with script, and it is
working well.

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] yum update fails: CentOS 5.2

2009-01-12 Thread Mike -- EMAIL IGNORED
It gets as far as telling me:

Total download size: 207 M

It doesn't ask if its ok.  But
if I type yenter it reports:
   Is this ok [y/N]: Downloading Packages:

Then it does nothing.  I can't kill it
with CRTL-C, but I killed the yum process
with kill -9 from another window.
I retried it several times; same result.

Thanks for your help.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Bugs in yum update

2009-01-12 Thread Mike -- EMAIL IGNORED
This is a continuation of the thread:
   yum update fails: CentOS 5.2.

I installed a fresh Centos 5.2 and ran yum update.

It ran correctly, except for these issues:

1. As previously mentioned, after deciding what it
   is going to do, It doesn't ask if its ok.  But
   if I type yenter it reports:
  Is this ok [y/N]: Downloading Packages:

2. During the long period it is downloading files,
   it doesn't print anything, giving the impression
   that nothing is happening.  Watching the lights,
   and using WireShark and ARIN, I determined that
   it was downloading from the Rochester Institute
   of Technology.  I decided that was good.  During
   the install phase, the expected logging appeared.

3. When it said it was finished, it didn't exit the
   yum process; I did it with CRTL-C .

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Bugs in yum update

2009-01-12 Thread Mike -- EMAIL IGNORED
On Mon, 12 Jan 2009 20:25:06 -0500, Jim Perrin wrote:

 On Mon, Jan 12, 2009 at 8:19 PM, Mike -- EMAIL IGNORED
 m_d_berger_1...@yahoo.com wrote:
 This is a continuation of the thread:
   yum update fails: CentOS 5.2.

 I installed a fresh Centos 5.2 and ran yum update.

 It ran correctly, except for these issues:
 
 Okay, a few things to get out of the way first
 
 What's the output of the following commands?
 
 uname -a
 rpm -Va python\* yum\* sqlite\*
 rpm -qa python\*
 
 How much ram do you have in the box?
 Have you installed any packages from 3rd party repositories?

[r...@mbrc21 ~]# uname -a
Linux mbrc21 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686 
athlon i386 GNU/Linux
[r...@mbrc21 ~]# rpm -Va python\* yum\* sqlite\*
[r...@mbrc21 ~]# rpm -qa python\*
python-ldap-2.2.0-2.1
python-devel-2.4.3-21.el5
python-numeric-23.7-2.2.2
python-2.4.3-21.el5
python-iniparse-0.2.3-4.el5
python-elementtree-1.2.6-5
python-sqlite-1.1.7-1.2.1
python-urlgrabber-3.1.0-2
[r...@mbrc21 ~]#

As you can see, the second command got no response.

From top:
Mem:   1035288k total

Packages from 3rd party repositories: not yet, but
will soon install some.

Thanks for your help.
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Capture NX 1 vs 2

2008-12-17 Thread Mike -- EMAIL IGNORED
On Wed, 17 Dec 2008 16:18:37 +, Mike -- EMAIL IGNORED wrote:

 I have Capture NX 1. Is it worth spending money to get Capture NX 2? 
 Why?
 
 Thanks,
 Mike.

Sorry, wrong group.  Please ignore.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] secure file not updating

2008-12-14 Thread Mike -- EMAIL IGNORED
On Sun, 14 Dec 2008 02:25:17 +, Mike -- EMAIL IGNORED wrote:

 Further examination shows numerous log lines that were detected on Dec
 12 by swatch using tail on the secure file but do not presently appear
 in the secure file.  However, they do appear in the messages file.
 
 Mike.

Here are some tentative observations:

If I do a vi on the secure file and write it from vi, it stops recording.
If I do a /var/init.d/syslog restart, the secure file starts recording.

I still have no idea how swatch continues to function after the syslog
stops recording.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] secure file not updating

2008-12-13 Thread Mike -- EMAIL IGNORED
On Sat, 13 Dec 2008 11:33:06 -0600, Barry Brimer wrote:

 On my Centos 5 server, the secure file has not updated since Dec 10.
 This despite the fact that I run an sshd server that I access many
 times per day.  Most peculiar is the fact that a swatch monitor that
 I run on the secure file catches plenty of lines.  It is as if when
 swatch catches a line in the file, the line is removed from the file
 and the modification date is set back.  Hard to believe.  Any ideas?

 What is the output of lsattr /var/log/secure?  Do you have SELinux
 enabled, and are there any corresponding lines in
 /var/log/audit/audit.log?

 # lsattr /var/log/secure
 - /var/log/secure

 selinux is disabled

 /var/log/audit/audit.log appears to have lines describing a login I did
 a few minutes ago, and its modification date is correct.

 # ls -l /var/log/secure
 -rw--- 1 root root 18950 Dec 10 12:38 /var/log/secure

 # date
 Sat Dec 13 09:42:36 EST 2008
 
 Any unexpected syslog configuration?  Does a touch update the timestamp?

in syslog.conf:

# added by MDB
local0.*/var/log/httpd/cgi_log
local1.*/var/log/net_que
local2.*/var/log/sock_mon
kern.=debug /var/log/ipt_log

I also have added a number of things to logrotate.

These things have been working well for years, although only
a few months on Centos.

touch /var/log/secure updated the timestamp as expected.

I note that early tomorrow morning the logrotate occurs.  I
wonder what will happen.

Mike.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] secure file not updating

2008-12-13 Thread Mike -- EMAIL IGNORED
Further examination shows numerous log lines that were detected on
Dec 12 by swatch using tail on the secure file but do not presently
appear in the secure file.  However, they do appear in the messages
file.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Unexpected FTP Activity

2008-10-10 Thread Mike -- EMAIL IGNORED
Since I put my new Centos box on the net, it frequently
tr1es to make ftp contact with IP address 64.90.181.77 .

Why is this, and does anyone recognize this IP address?
Is it spyware?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Unexpected FTP Activity

2008-10-10 Thread Mike -- EMAIL IGNORED
On Fri, 10 Oct 2008 17:03:41 +0200, Ralph Angenendt wrote:

[...]
 
 Or it's yum-updatesd in action.
 
 Ralph
[...]

It looks like this is it; I shut it down.
I don't remember being offered a choice about
this on install; maybe I didn't recognize it.
I would think it should be made obvious.

Is there any other automatic Internet activity
in Centos?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Unexpected FTP Activity

2008-10-10 Thread Mike -- EMAIL IGNORED
On Fri, 10 Oct 2008 11:27:45 -0400, Toby Bluhm wrote:

 Mike -- EMAIL IGNORED wrote:
 On Fri, 10 Oct 2008 17:03:41 +0200, Ralph Angenendt wrote:
 
 [...]
 Or it's yum-updatesd in action.

 Ralph
 [...]
 
 It looks like this is it; I shut it down.
 
 Is there a reason why you don't want your machine updated?

Yes indeed!  I do some complicated things, and I can
do without the wonderful surprises that updates
sometimes deliver.  I do updates, but at times of
my choice, and I watch what I get.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-10 Thread Mike -- EMAIL IGNORED
On Fri, 10 Oct 2008 18:01:24 +0930, admin wrote:

 Have you run several Virtual Hosts with the same IP address?
 
 Yes, I run multiple Virtual Hosts on my development server and they all
 look like this:
 
 NameVirtualHost *:80
 
 VirtualHost *:80
DocumentRoot /var/www/html/site1
ServerName site1.localhost
other stuff 
 /VirtualHost
 
 VirtualHost *:80
DocumentRoot /var/www/html/site2
ServerName site2.localhost
other stuff 
 /VirtualHost
 
 VirtualHost *:80
DocumentRoot /var/www/html/site3
ServerName site3.localhost
other stuff 
 /VirtualHost
 
 Have you got your ServerNames set up properly in /etc/hosts or DNS?

All in hosts; my stuff is working now.  My last query
was really addressed to Michael Peterson, who indicated
that he omits ServerName.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Unexpected FTP Activity

2008-10-10 Thread Mike -- EMAIL IGNORED
On Fri, 10 Oct 2008 12:52:33 -0400, Filipe Brandenburger wrote:

 On Fri, Oct 10, 2008 at 12:07, Mike -- EMAIL IGNORED
 [EMAIL PROTECTED] wrote:
 Yes indeed!  I do some complicated things, and I can do without the
 wonderful surprises that updates sometimes deliver.  I do updates, but
 at times of my choice, and I watch what I get.
 
 Good luck with the wonderful surprises you will have to deal with if
 your machine gets compromised while running unpatched vulnerable
 software.
 
 Filipe

No doubt, what you say is a concern.  But I have a very tight
firewall, and I take few risks.  On Linux systems, in my
experience, surprise results from updates have been more of
a problem.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: Unexpected FTP Activity

2008-10-10 Thread Mike -- EMAIL IGNORED
On Fri, 10 Oct 2008 15:59:35 -0400, Filipe Brandenburger wrote:

 On Fri, 10 Oct 2008 11:27:45 -0400, Toby Bluhm wrote:
 Is there a reason why you don't want your machine updated?
 
  On Fri, Oct 10, 2008 at 12:07, Mike -- EMAIL IGNORED wrote:
 Yes indeed!  [...]
 
 On Fri, Oct 10, 2008 at 14:42, Scott Silva
 [EMAIL PROTECTED] wrote:
 He didn't say he wasn't going to update,
 
 Yes, he did! :-)
 
 he just said he wants to do it on his schedule. Nothing wrong with
 that. As a matter of fact, it is more proper to update when you have
 tested on an enterprise system.
 
 Agreed, in particular with updates that bump a release (5.1 - 5.2), I
 also do it manually and not automatically.
 
 However, nowadays I consider updating the system and applying security
 patches an essential part of the sysadmin role in a Linux environment.
 
 Filipe

I quote from a previous post by me on this thread:

   I do updates, but at times of my choice,
and I watch what I get.

The reason I am moving from Fedora to Centos is that on a Fedora
news group I mentioned that I am interested in reliability and
stability.  A respondent suggested that in that case, I would be
better off with Centos, since Fedora experiments with the latest
and greatest, and therefore takes chances that would not be
appropriate in an enterprise context.  Automatic updates are
inconsistent with my objective.

I like to comment on my past employment years ago with a large
company whose name you would recognize.  I maintained control
systems whose failure would cost dollars quickly counted in the
millions, and could potentially endanger human life.  The
operating systems on these machines were well understood and
long obsolete.  A suggestion that they be upgraded would be
met with a blank stare.  I believe that the implementation of
automatic updates would have resulted in dismissal. ):

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On: Centos 5.2, with httpd-2.2.3-11.el5_1.centos.3

I tried to bring up a web server using an
httpd.con that runs well

on: Fedora 8, with httpd-2.2.8-1.fc8

as well as several earlier versions, going
back to Fedora 4.

On the Centos version, I cannot successfully:
   run a NameVirtualHost;
   execute a CGI.

I can bring up a simple page if I avoid the
above.

Suggestions would be much appresiated.
Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 17:51:54 +0200, Ralph Angenendt wrote:

[...]
 Don't we all like puzzles? All those hundreds of pieces which look
 similar? Is that blue one there sky or is it the water? The green one
 over there - is it a tree? Is it a part of that house which has been
 painted green?
 
 If you want to solve that puzzle, it often helps to look at the picture
 on the top of the box.
 
 IOW: What did you try to do? What happened? What did you expect to
 happen? What does your config look like? Are there any errors in the log
 file?
 
 Ralph
[...]

Indeed.  Here is a summary:

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
...
NameVirtualHost 192.168.9.21:80
NameVirtualHost 127.0.0.1:80
...
VirtualHost 192.168.9.21:80
   Location /
  Order allow,deny
#  Allow from All
  Deny from all
   /Location
/VirtualHost

VirtualHost 192.168.9.21:80 127.0.0.1:80
   ServerName new.rosemike.net
   Options -All SymLinksIfOwnerMatch ExecCGI
   DocumentRoot /var/www/html/www
   DirectoryIndex index.cgi
   RewriteEngine on
   RewriteOptions Inherit
   ...
   RewriteRule ^/$ - [L]
   ...
/VirtualHost

All access attempts are with http://new.rosemike.net/
with that name appropriately defined in hosts files, as
verified by ping.

Now run as shown, the client gets:
   You don't have permission to access / on this server.
If you comment out the first VirtualHost block:
   you get the same thing
If you then add to the second virtual host block:
  Location /
 Allow from All
  /Location
you get:
   You don't have permission to access /index.cgi on this server.
(note that there are links to index.cgi in all directories.)
if you comment out Servername
   nothing changes
If you now expose the first VirtualHost block and change to
  Allow from All
  Deny from None
   you get the page displayed, but not via the CGI, as verified
   by absence debug text the CGI would have added, as well as
   nothing in a log the CGI writes.

Well, you asked.  BTW, I emphasize that this configuration works
well on Fedora, which you can see at www.rosemike.net .

Thanks for your interest.
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 10:14:54 -0700, Jerry Franz wrote:

[...]

 What do you get in the error_log?

I found the CGI problem (mia culpa), and  the CGI
is now working, but the NameVirtualHost still has
a problem.

NameVirtualHost 192.168.9.21:80
NameVirtualHost 127.0.0.1:80
...

VirtualHost 192.168.9.21:80
   Location /
  Order allow,deny
  Allow from None
  Deny from All
   /Location
/VirtualHost

VirtualHost 192.168.9.21:80 127.0.0.1:80
   ServerName new.rosemike.net
   Options -All SymLinksIfOwnerMatch ExecCGI
   DocumentRoot /var/www/html/www
   DirectoryIndex index.cgi
   RewriteEngine on
   ...

With the above I get:
   [client 192.168.9.10] client denied by server configuration:
  /var/www/html/www/
   [client 192.168.9.10] client denied by server configuration:
  /var/www/error/noindex.html

If I comment out the first VirtualHost block I get correct
function.  Most notably, correct function persists if I
comment out the ServerName line.  It appears the ServerName line
is ignored in all cases.  I also tried changing the order of
the VirtualHost blocks.  No change.

Thanks again for your interest.
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 18:07:08 +, Mike -- EMAIL IGNORED wrote:

[...]

I have additional information that ServerName is not working.
My system requires two virtual hosts with different values of
ServerName.  If they share an IP address, the system fails.
But if each virtual host has a unique IP address, the system
works.

In other words, ServerName alone fails to distinguish two
named virtual hosts.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 21:31:19 +0200, Kai Schaetzl wrote:

 what's the purpose of that whole confusing configuration? If you want to
 use IP-based virtualhosts *any* of them needs a servername. And why do
 you enclose the Location statement in a virtualhost? Why don't you
 simply specify the real location? And I would use Location / to make
 it look less like XML.
 
 Options -All SymLinksIfOwnerMatch ExecCGI
 you don't need to remove All
 
From my perspective you aim at a really hard to read and understand
 configuration. I wouldn't ever dare to mix the IP-based hosts like you
 try to do. Simplify your config and it will work.
 
 Kai

If I understand you correctly, you indicate that I
should remove the VirtualHost that does not contain
a ServerName, advice in the delivered httpd.config
file notwithstanding.  In fact, that is how I now
have it, thereby eliminating the protection against
IP address access, which I would rather have.

In any case, as I indicate in another post, it still
fails to properly distinguish on the basis of
ServerName.

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 22:42:06 +0200, Kai Schaetzl wrote:

[...]
 
 I still don't see the purpose of that virtual host. If it is for
 catching IP only accesses there are several methods to do this. Look
 for
  default virtualhost in the apache documentation (and in the config
 template coming with CentOS). Also, if that single virtualhost
 documentroot and the main documentroot (in httpd.conf) are not the same
 then all non-hostname access will got to the main server documentroot
 and not your virtual host.
 
 Kai

Following your suggestions, everything now working correctly.

Thanks,
Mike.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: NameVirtualHost and CGI Problems

2008-10-09 Thread Mike -- EMAIL IGNORED
On Thu, 09 Oct 2008 20:03:13 -0500, Michael Peterson wrote:

 Michael Peterson wrote on Thu, 09 Oct 2008 16:09:54 -0500:

 You need to remove the :80 in the VirtualHost declarations that
 contains Servername entries.

 No, that's perfectly ok and recommended. His problem was that he was
 using a virtual host without a ServerName directive.

 Kai

 --
 Kai Schätzl, Berlin, Germany
 Get your web at Conactive Internet Services: http://www.conactive.com



 ___ CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

 I run a Virtual Host entry without a ServerName directive and have been
 through several releases of CentOS and Apache and all works fine for me.

Have you run several Virtual Hosts with the same IP address?

Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] support libipq?

2008-08-13 Thread Mike -- EMAIL IGNORED
I am thinking of trying centos (I am now using Fedora).
Does centos support libipq?

Thanks,
Mike.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos