state of httpd is lockf...?

2003-01-09 Thread Nigel Soon
Hi all,

For a few days now I have had a few httpd(s) in a lockf state when I look
at top. What does this mean and what should I do with them? I am running
FreeBSD 4.7 with apache+mod_ssl-1.3.27.

Here is what top looks like:
  PID USERNAME PRI NICE  SIZERES STATETIME   WCPUCPU COMMAND
27307 ns28   0  1976K  1044K RUN  0:00  5.45%  1.61% top
   96 root   2   0   608K   252K select  12:31  0.00%  0.00% natd
20802 www   18   0  9848K  6720K lockf1:06  0.00%  0.00% httpd
20800 www   18   0 10196K  7048K lockf0:57  0.00%  0.00% httpd
20798 www   18   0  9908K  6764K lockf0:57  0.00%  0.00% httpd
20943 www   18   0 10008K  6868K lockf0:56  0.00%  0.00% httpd
20945 www   18   0 10920K  7780K lockf0:56  0.00%  0.00% httpd
20801 www   18   0 10064K  6920K lockf0:55  0.00%  0.00% httpd
20799 www   18   0  9844K  6696K lockf0:48  0.00%  0.00% httpd
20804 www   18   0  9904K  6764K lockf0:46  0.00%  0.00% httpd
20805 www   18   0  9776K  6636K lockf0:44  0.00%  0.00% httpd
  144 root   2   0  2916K  1732K select   0:44  0.00%  0.00% sendmail

here is some other info that may help.
# ps waux | grep http
root  20797  0.0  1.0  7312 3968  ??  Ss   Tue06PM   0:06.41 /usr/local/sbin/htt
pd -DSSL
www   20798  0.0  1.7  9908 6764  ??  ITue06PM   0:56.74 /usr/local/sbin/htt
pd -DSSL
www   20799  0.0  1.7  9844 6696  ??  ITue06PM   0:48.18 /usr/local/sbin/htt
pd -DSSL
www   20800  0.0  1.8 10196 7048  ??  ITue06PM   0:57.00 /usr/local/sbin/htt
pd -DSSL
www   20801  0.0  1.8 10064 6920  ??  ITue06PM   0:54.59 /usr/local/sbin/htt
pd -DSSL
www   20802  0.0  1.7  9848 6720  ??  ITue06PM   1:06.22 /usr/local/sbin/htt
pd -DSSL
www   20804  0.0  1.7  9904 6764  ??  ITue06PM   0:45.63 /usr/local/sbin/htt
pd -DSSL
www   20805  0.0  1.7  9776 6636  ??  ITue06PM   0:44.01 /usr/local/sbin/htt
pd -DSSL
www   20943  0.0  1.8 10008 6868  ??  ITue06PM   0:56.30 /usr/local/sbin/htt
pd -DSSL
www   20944  0.0  1.8 10044 6904  ??  ITue06PM   0:40.37 /usr/local/sbin/htt
pd -DSSL
www   20945  0.0  2.0 10920 7780  ??  ITue06PM   0:56.19 /usr/local/sbin/htt
pd -DSSL

# netstat -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
tcp4   0 36  sundive.ssh10.0.0.3.2967  ESTABLISHED
tcp4   0  0  *.http *.*LISTEN
tcp4   0  0  *.https*.*LISTEN
tcp4   0  0  *.3306 *.*LISTEN
tcp4   0  0  *.submission   *.*LISTEN
tcp4   0  0  *.smtp *.*LISTEN
tcp4   0  0  *.ssh  *.*LISTEN
tcp46  0  0  *.ssh  *.*LISTEN
tcp4   0  0  *.ftp  *.*LISTEN
udp4   0  0  *.snmp *.*
udp4   0  0  localhost.1046 localhost.1046
udp4   0  0  *.syslog   *.*
udp6   0  0  *.syslog   *.*
udp4   0  0  *.bootpc   *.*
div4   0  0  *.natd *.*
icm4   0  0  *.**.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-QInode Conn Refs  Nextref Addr
cfce4a00 stream  0  00 cfce496000 /tmp/.s.PGSQL.
5432
cfce4960 stream  0  00 cfce4a0000
cfce4b40 stream  0  0 cfe08740000 /tmp/screens/S
-ns/316.ttyp0.sundive
cfce4be0 stream  0  0 cfd9e340000 /tmp/mysql.soc
k
cfce4d20 stream  0  0 cfd5ffc0000 /tmp/.s.PGSQL.
5432
cfce4aa0 dgram   0  00 cfce4f000 cfce4dc0
cfce4dc0 dgram   0  00 cfce4f000 cfce4e60
cfce4e60 dgram   0  00 cfce4f0000
cfce4f00 dgram   0  0 cfcdf8c00 cfce4aa00 /var/run/log



Thanks,

Nigel

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Proper way to configure NIC in full duplex

2003-04-04 Thread Nigel Soon
Have a look at the man page for you nic i.e

man rl


On Sun, 04 May 2003, William Ashworth wrote:

 Hello,
 
 I'm using an r10 nic and have all the information already configured in
 rc.conf, however, transfer speeds are unusually slow (i.e., 55-60kbps when
 it SHOULD be somewhere near 1.00mbps+)
 
 Someone told me that I might not be running the interface in full duplex.
 How can I determine this?  How can I fix it if I am not currently running in
 full duplex?
 
 Any assistance is appreciated and below is the output of my interface
 information:
 
 www# ifconfig rl0
 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 246.193.67.3 netmask 0xff00 broadcast 216.194.67.255
 inet6 fe80::248:54ff:fe3d:350%rl0 prefixlen 64 scopeid 0x1
 inet 66.51.100.209 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.210 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.211 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.212 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.213 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.214 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.215 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.216 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.217 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.218 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.219 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.220 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.221 netmask 0xfff0 broadcast 66.51.100.223
 inet 66.51.100.222 netmask 0xfff0 broadcast 66.51.100.223
 ether 00:48:54:3d:03:50
 media: Ethernet autoselect (none)
 status: active
 
 Thanks,
 
 William Ashworth
 [EMAIL PROTECTED]
 
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache13-modssl + mod_php4, php not interpreted

2002-10-03 Thread Nigel Soon

Hello,

I have a problem with php not being interpreted now that I have
started using apache13-modssl instead of apache13. 

I am running freebsd 4.6-RELEASE. The procedure I went through
was removing mod_php4 then removing apache. I then changed the
dependency of mod_php4 to use apache13-modssl and recompiled.

The web server starts fine using ssl but the php web pages are
not interpreted. I have the following lines in my http.conf 
file which leads me to believe the php modules are being loaded

---
IfDefine SSL
LoadModule ssl_module libexec/apache/libssl.so
LoadModule php4_modulelibexec/apache/libphp4.so
/IfDefine
.
.
.
.
IfDefine SSL
AddModule mod_ssl.c
AddModule mod_php4.c
/IfDefine
---


Does anybody have any ideas?

Thanks,

Nigel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: apache13-modssl + mod_php4, php not interpreted

2002-10-03 Thread Nigel Soon

Hi Tom,

Thanks I was missing the 'Addtype ...' lines in my http.conf file.
Once I added those and restarted the server everything worked.

Thanks again,

Nigel


On Thu, 03 Oct 2002, Thomas T. Veldhouse wrote:

 First, did you start your server with SSL?  Second, unless you want php to
 run ONLY with SSL, I would move it out of that block so that it will start
 anytime.  Lastly, make sure you have the following in your config.
 
 [...]
 DirectoryIndex index.php index.html
 [...]
 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps
 [...]
 
 Tom Veldhouse
 
 - Original Message -
 From: Nigel Soon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 03, 2002 1:15 PM
 Subject: apache13-modssl + mod_php4, php not interpreted
 
 
  Hello,
 
  I have a problem with php not being interpreted now that I have
  started using apache13-modssl instead of apache13.
 
  I am running freebsd 4.6-RELEASE. The procedure I went through
  was removing mod_php4 then removing apache. I then changed the
  dependency of mod_php4 to use apache13-modssl and recompiled.
 
  The web server starts fine using ssl but the php web pages are
  not interpreted. I have the following lines in my http.conf
  file which leads me to believe the php modules are being loaded
 
  ---
  IfDefine SSL
  LoadModule ssl_module libexec/apache/libssl.so
  LoadModule php4_modulelibexec/apache/libphp4.so
  /IfDefine
  .
  .
  .
  .
  IfDefine SSL
  AddModule mod_ssl.c
  AddModule mod_php4.c
  /IfDefine
  ---
 
 
  Does anybody have any ideas?
 
  Thanks,
 
  Nigel
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message
 
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



failure installing procmail from ports

2002-10-04 Thread Nigel Soon

Hello,

I'm can't seem to get procmail to install from the ports. I am running 
4.6-RELEASE and am trying to install procmail-3.22. 

I have included below the error I am getting when I do 'make install':

---
.
.
.
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for enum

Your system appears to not (correctly) support at least one of:
const, volatile, function prototypes, and enum types.  Future
versions of procmail will probably require support for all of them,
so you should either upgrade your compiler to one that's compliant
with the ISO C standard (the standard's over 10 years old, for
goodness sake), or send email to [EMAIL PROTECTED] explaining why
you need procmail to continue to support KR C.

Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t  gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS()  WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
ftruncate, strtod, strncasecmp, strerror, strlcat,
memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Whoeaaa!  This actually can't happen.
You have a look and see if you detect anything uncanny:
***
In file included from includes.h:74,
 from sublib.c:13,
 from _autotst.c:3:
/usr/include/string.h:54: warning: conflicting types for built-in function `mem
cmp'
/usr/include/string.h:55: warning: conflicting types for built-in function `mem
cpy'
/usr/include/string.h:60: warning: conflicting types for built-in function `str
cmp'
/usr/include/string.h:62: warning: conflicting types for built-in function `str
cpy'
/usr/libexec/elf/ld: cannot find -lgcc
***
I suggest you take a look at the definition of LDFLAGS*
in the Makefile before you try make again.
*** Error code 1

Stop in /usr/ports/mail/procmail/work/procmail-3.22/src.
*** Error code 1

Stop in /usr/ports/mail/procmail/work/procmail-3.22.
*** Error code 1

Stop in /usr/ports/mail/procmail.

---

I'm a little bit lost here and apreciate any help.

Thanks,

Nigel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



which MDA should I use?

2002-10-04 Thread Nigel Soon

Hi,

I am trying to decide on an MDA to use and I thought I had settled on
procmail but I was told procmail-3.22(current in ports) pre-dates
FreeBSD 4.6 by over a year. Does this mean there is something else I
should use or is procmail still my best bet?

Thanks,

Nigel

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



top: nlist failed

2003-02-10 Thread Nigel Soon
Hi all,

I'm running FreeBSD 4.7 and when trying to exectute top I get
the error message top: nlist failed

This has never been a problem before. Has anyone else come across
this and can point me in the right direction?

Thanks,

Nigel

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Problems using screen

2003-03-03 Thread Nigel Soon
try,
# stty erase ^vpress backspace key right after typing ^v 

The ^v (control - v ) is the quote character. It keeps the shell from
interpreting the next keystroke. This is necessary because some shells 
are smart enough to realize that either ^H or ^? should be treated as the
backspace character, but some programs don't (like mail, vi...). 

You can put the stty erase command right into your shells startup script.

Daniel Graupner schrieb am Monday, den 03. March 2003:

 Hello,
 
 while pressing e.g. backspace or del in a screen session, the 
 'vbell'-message appears. These Keys seems to be non-functional, thats very 
 ugly.
 (Freebsd 4.7, ports/misc/screen)
 I read the manpage but couldn't find a workaround, maybe its terminal 
 specific.
 
 Any Ideas?
 
 Thanks, Daniel.
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: IP Aliasing in rc.conf

2003-03-06 Thread Nigel Soon
I think you want this instead:

ifconfig_fxp0=inet 10.0.0.201 netmask 255.0.0.0
ifconfig_fxp0_alias0=inet 10.0.0.211 netmask 255.255.255.255

On Thu, 06 Mar 2003, Martyn Hill wrote:

 Hi all
 
 Can someone confirm that the following is the correct way to implement one
 IP alias (same subnet) on a single fxp NIC in rc.conf (for the purposes of
 running a dual samba/samba-tng installation):
 
 ipconfig_fxp0=inet 10.0.0.201 netmask 255.0.0.0
 ipconfig_fxp0_alias0=inet 10.0.0.211 netmask 255.255.255.255
 
 Regards
 Martyn Hill
 Network Administrator
 St James Independent School
 London
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Thanks for the response...

2003-03-07 Thread Nigel Soon
This question may have already been asked but how are you exactly burning
the image. Just making sure your not just burning the file on the CD :)

On Fri, 07 Mar 2003, scott mcclellan wrote:

 Not sure how to reply to the threads on the freebsd lists, but will
 probably post there with an update to all this soon.
 
 I did do the ole' switch of jumpers (two times as I didn't know which
 posts were designated for MASTER - trial and error I guess). So now the
 system sees the CD-ROM as the Secondary Master (which is a good thing
 I'm supposing)
 
 And I did take another poster's advise in burning the ISO image at a
 slower speed (4x is as low as I get), but I'm still at a point where the
 system responds with:
 Boot from ATAPI CD-ROM:  Failure...
 No /boot/loader
 
 
 I assume that ATAPI is the model of the CD-ROM the system found. But,
 the 'Failure... has me stumped. Is it possible that although the system
 (and FreeBSD) recognize the type of CD-Rom I have, but FreeBSD just
 doesn't support it [Creative Infra1800]. I admit when looking at the
 supported hardware, I didn't see Creative on the list - but then what's
 up with ATAPI?
 
 I apologize. A lot of my questions are rhetorical in that I just need to
 'vent' (if I don't talk to myself, then I type to myself). And as
 another poster put it 'Don't throw out the old machine, just have
 patience' - as you've stated also. I have patience (and an occasional
 temper). Although my hostility factor towards this so far is only at
 about 3.
 
 Thanks again, and if you have anything else to add (not to my misery
 please), feel free.
 
 Scott McClellan
 
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


rejected mail hosts

2003-03-06 Thread Nigel Soon
I have a list of rejected mail hosts that was emailed to
me in the daily run output. In the list contains a few hosts
I don't know + my machine and localhost.

What does this mean exactly? Did something go wrong when I was
sending mail or was this from somebody trying to use me as a
relay?

Thanks,

Nigel

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: installijng freebsd on a second disk

2003-03-11 Thread Nigel Soon
have a look at this link:
http://ezine.daemonnews.org/200302/fbsdscratch.html

Nigel

On Tue, 11 Mar 2003, Rajeev Agrawala wrote:

 Hi,
 
 I have a freebsd machine running 4.2. I dwant to upgrade the machine to 
 4.7-RELEASE, but don't want to do an in-place upgrade. Is it possible, 
 to install freebsd on a second disk on a freebsd system running live, by 
 running /stand/sysinstall. Here /stand/sysinstall is from 4.2 release 
 and as I mentioned before, I will point it to install freebsd 4.7 from CD.
 
 Thanks,
 
 rajeev
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Mounting openbsd partitions.

2003-03-10 Thread Nigel Soon
try this
# mount /dev/ad0s1h /obsd

On Mon, 10 Mar 2003, Amit Chakradeo wrote:

 Hi,
 
   I searched the archives, but could not find answer to the
 question I have. 
 
   I have an openbsd disk, and I want to be able to access the files
 on it from my FreeBSD-4.7 system. disklabel gives me error:
 disklabel ad0 gives: disklabel: ioctl DIOCGDINFO: Invalid argument
 I am only able to mount the root slice using
 /dev/ad0s1 (command: mount /dev/ad0s1 /obsd ). I get same results  if I
 mount /dev/ad0s3 to /obsd.
 
   Is it possible at all to be able to access (readonly is okay)
 the openbsd partitions (/usr /home etc.) from freebsd ? 
 
 Thanks
 Amit
 
 P.S.  The disklabel command from openbsd does print out the 16 partitions:
 /obsd/sbin/disklabel -r /dev/ad0
 # using MBR partition 0: type A6 off 63 (0x3f) size 10233342 (0x9c25fe)
 # /dev/ad0:
 type: ESDI
 disk: ESDI/IDE disk
 label: QUANTUM FIREBALL
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 16383
 total sectors: 60233564 
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0
 
 16 partitions:
 #size   offsetfstype   [fsize bsize   cpg]
   a:   524097   634.2BSD 1024  819216   # (Cyl.0*- 519)
   b:   524160   524160  swap# (Cyl.  520 - 1039)
   c: 602335640unused0 0 # (Cyl.0 - 59755*)
   d:   264096  10483204.2BSD 1024  819216   # (Cyl. 1040 - 1301)
   e:   264096  13124164.2BSD 1024  819216   # (Cyl. 1302 - 1563)
   g:  4194288  15765124.2BSD 1024  819216   # (Cyl. 1564 - 5724)
   h:  4462605  57708004.2BSD 1024  819216   # (Cyl. 5725 - 10152*)
   i:  5719140 10233405ext2fs# (Cyl. 10152*- 15825*)
   j:  8273412 15952608ext2fs# (Cyl. 15826 - 24033*)
   k:  5976117 24226083ext2fs# (Cyl. 24033*- 29962*)
   l:   514017 30202263   unknown# (Cyl. 29962*- 30472*)
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message