Re: DHCP versus PPPoE for ADSL.

2009-04-24 Thread Chris Tankersley
Honestly, I think it is going to depend on your ISP. For example, Embarq 
a few years ago switched their 'Embarq' ISP to using a hybrid DHCP setup:


(Whatever the DSLAM connects to)--PPPoE--DSLAM--DHCP--Modem--DHCP-

So when you set the modem to 'Bridge' whatever was behind it was set to 
DHCP, not PPPoE. PPPoE no longer worked because the DSLAM took care of 
the PPPoE connection, not the modem anymore.


If you were on someone who resold Embarq, then that reseller had to use 
PPPoE so that it routed back to the reseller correctly.


Chris

David Walker wrote:

From:  Claudio Jeker

The main encapsulation over ADSL is PPPoE or PPPoA only lately, with the
spread of IPTV and VDSL, EFM (Ethernet First Mile) is used by some telcos.
So it totaly depends on what your provider is giving you.


Hi Claudio.
Maybe I didn't explain myself or perhaps I am trying to explain
something that doesn't make sense.
I understand there are differing methods of getting the packets from
the exchange to the premises, etcetera.
Considering the existing popular method of PPPoE is there more than
one way to collect those packets at the first adapter after the modem?

My current scenario:
DSLAM-PPPoE-Modem-TCP/IP-Router
In this case, the relevant adapter on the router gets an IP address
from the modem's DHCP server. All the PPPoE to IP transactions occur
within the modem.
The hostname.if file on the router:
DHCP none none none

The other scenario:
DSLAM-PPPoE-Modem-PPPoE-Router
In this case the relevant adapter on the router recieves PPPoE
encapsulated packets from the modem exactly as they are sent from the
exchange.
The modem does not do any PPPoE to IP conversion.
The hostname.if file on the router merely says up.
There is also an /etc/hostname.pppoe0 file on the router.

This other scenario seems to be the intent of pppoe(4):
 This is often used to connect a router via a DSL modem to an access con-
 centrator.  The pppoe interface does not by itself transmit or receive
 frames, but needs an Ethernet interface to do so.  This Ethernet inter-
 face is connected to the pppoe interface via ifconfig(8).  The Ethernet
 interface needs to be marked UP, but does not need to have an IP address.

So it is quite different from my current scenario - no IP address for a start.

Am I reading all this correctly?

Best wishes.





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



httpd slowdown issues

2008-09-03 Thread Chris Tankersley
I have a development web server set up for httpd, mysql5 and php5 that
has all of a sudden started randomly pausing. After some testing
(removing PHP modules, httpd conf settings, etc) it seems that simply
loading PHP is what is causing the issue. If I remove it from httpd
then serving static HTML is fine. With PHP enabled I get issues with
slow rendering of PHP content, slow CLI scripts (another sign it is
just PHP itself), and when I do a 'apachectl stop' the box will hang
for up to 60 seconds before responding again. I updated to the newest
4.3-stable last week to see if that would help but to no avail.

I have loaded everything from Packages and there is nothing from Ports
or hand compiled on the box. My 4.1-stable box has not encountered any
issues such as this though it is slated to be updated to 4.3 as soon
as some new hardware comes in.

Any other info that is needed, just let me know.

[EMAIL PROTECTED] pkg_info
apr-1.2.11p1Apache Portable Runtime
apr-util-1.2.10p0   companion library to APR
autoconf-2.61p1 automatically configure source code on many Un*x platforms
curl-7.17.1 get files from FTP, Gopher, HTTP or HTTPS servers
db-4.6.21   Berkeley DB package, revision 4
femail-0.97p0   simple SMTP client
gettext-0.16.1  GNU gettext
jpeg-6bp3   IJG's JPEG compression utilities
libiconv-1.9.2p5character set conversion library
libidn-1.1  internationalized string handling
libltdl-1.5.22p3GNU libtool system independent dlopen wrapper
libmcrypt-2.5.7p1   interface to access block/stream encryption algorithms
libxml-2.6.30   XML parsing library
mhash-0.9.1p1   strong hash library
mod_dav-1.0.3p5 class 1 and 2 DAV server for the Apache webserver
monit-4.10.1p0  monitoring and managing daemons utility
mysql-client-5.0.51a multithreaded SQL database (client)
mysql-server-5.0.51a multithreaded SQL database (server)
nano-2.0.7  Pico editor clone with enhancements
neon-0.26.2 HTTP and WebDAV client library, with C interface
p5-DBD-mysql-4.005  MySQL drivers for the Perl DBI
p5-DBI-1.59 unified perl interface for database access
p5-Net-Daemon-0.43  extension for portable daemons
p5-PlRPC-0.2018p0   module for writing rpc servers and clients
pear-1.5.0p1base classes for common PHP tasks
pear-utils-1.5.0p0  utilities for managing pear extensions
pecl-APC-3.0.15 Alternative PHP Cache
php5-core-5.2.5p2   server-side HTML-embedded scripting language
php5-curl-5.2.5 curl URL library extensions for php5
php5-extensions-5.2.5 informational package about PHP5 extensions
php5-gd-5.2.5-no_x11 image manipulation extensions for php5
php5-mbstring-5.2.5 multibyte characters extensions for php5
php5-mcrypt-5.2.5   mcrypt encryption/decryption extensions for php5
php5-mysql-5.2.5mysql database access extensions for php5
php5-mysqli-5.2.5   mysql database access extensions for php5
png-1.2.22  library for manipulating PNG images
python-2.5.2interpreted object-oriented programming language
rsync-2.6.9 mirroring/synchronization over low bandwidth links
screen-4.0.3p1  multi-screen window manager
subversion-1.4.4subversion revision control system
t1lib-5.1.0p1   Type 1 rasterizer library for UNIX/X11
vim-7.1.244p0-no_x11 vi clone, many additional features
wget-1.10.2p1   retrieve files from the web via HTTP, HTTPS and FTP

Chris



Re: httpd slowdown issues

2008-09-03 Thread Chris Tankersley
On Wed, Sep 3, 2008 at 1:05 PM, Ben Calvert [EMAIL PROTECTED] wrote:
[SNIP]
 Don't waste everyone's time with a hopelessly incomplete question. No one
 other than you has the information needed to resolve your problem, it is
 better to provide more information than needed than one detail too little.
 Any question should include at least the version of OpenBSD (i.e.,
 3.2-stable, 3.3-current as of July 20, 2003). Any hardware related

4.3-stable, like I had said in my original. OpenBSD 4.3-stable
(GENERIC) to be exact.

 questions should mention the platform (i.e., sparc, alpha, etc.), and
 provide a fulldmesg(8). Hardware model numbers, unfortunately, don't
 indicate much about the actual content of a particular machine or accessory,
 and are useless to anyone who doesn't have that exact machine sitting where
 they can easily recognize it. The dmesg(8) tells us exactly what is IN your
 machine, not what stickers are on the outside.

Since this was localized to a software issue I appended what installed
software was on the machine. The httpd.conf is stock except for
uncommenting mod_rewrite and an include directive to pull in conf
files for each VHost. php.ini is untouched. If a dmesg would help,
here it is:

OpenBSD 4.3-stable (GENERIC) #1: Thu Aug 28 08:33:01 EDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(TM) CPU 3.40GHz (GenuineIntel 686-class) 3.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,SSE3,DS-CPL
real mem  = 536375296 (511MB)
avail mem = 510599168 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/06/07, BIOS32 rev. 0 @
0xfd880, SMBIOS rev. 2.31 @ 0xe0010 (45 entries)
bios0: vendor Phoenix Technologies LTD version 6.00 date 09/06/2007
bios0: VMware, Inc. VMware Virtual Platform
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1e00! 0xca000/0x1000
0xdc000/0x4000! 0xe/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x01
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x08
pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: NECVMWar, VMware IDE CDR00, 1.00 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x08: SMBus disabled
vga1 at pci0 dev 15 function 0 VMware Virtual SVGA II rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
mpi0 at pci0 dev 16 function 0 Symbios Logic 53c1030 rev 0x01: irq 9
scsibus1 at mpi0: 16 targets
sd0 at scsibus1 targ 0 lun 0: VMware, Virtual disk, 1.0 SCSI2 0/direct fixed
sd0: 20480MB, 2610 cyl, 255 head, 63 sec, 512 bytes/sec, 41943040 sec total
mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
vic0 at pci0 dev 17 function 0 AMD 79c970 PCnet-PCI rev 0x10: irq
11, address 00:0c:29:a1:82:64
isa0 at piixpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask e765 netmask ef65 ttymask ffe7
mtrr: Pentium Pro MTRR support
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
syncing disks... done
rebooting...
OpenBSD 4.3-stable (GENERIC) #1: Thu Aug 28 08:33:01 EDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(TM) CPU 3.40GHz (GenuineIntel 686-class) 3.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,SSE3,DS-CPL
real mem  = 536375296 (511MB)
avail mem = 510599168 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/06/07, BIOS32 rev. 0 @
0xfd880, SMBIOS rev. 2.31 @ 0xe0010 (45 entries)
bios0: vendor Phoenix Technologies LTD version 6.00 date 09/06/2007

Re: httpd slowdown issues

2008-09-03 Thread Chris Tankersley
On Wed, Sep 3, 2008 at 6:08 PM,  [EMAIL PROTECTED] wrote:
 Quoting Chris Tankersley [EMAIL PROTECTED]:

 I have a development web server set up for httpd, mysql5 and php5 that
 has all of a sudden started randomly pausing. After some testing
 (removing PHP modules, httpd conf settings, etc) it seems that simply
 loading PHP is what is causing the issue. If I remove it from httpd
 then serving static HTML is fine. With PHP enabled I get issues with
 slow rendering of PHP content, slow CLI scripts (another sign it is
 just PHP itself), and when I do a 'apachectl stop' the box will hang
 for up to 60 seconds before responding again. I updated to the newest
 4.3-stable last week to see if that would help but to no avail.

 I have loaded everything from Packages and there is nothing from Ports
 or hand compiled on the box. My 4.1-stable box has not encountered any
 issues such as this though it is slated to be updated to 4.3 as soon
 as some new hardware comes in.

 Any other info that is needed, just let me know.

 Hi, Chris.

 Does *any* PHP script - even just ?php phpinfo(); ? show the problem?  I 
 think
 you are saying so above, but just to confirm.

 Trying to narrow it down to the smallest problem script.

Yes, even going down to something as little as ?php echo 'Hello
World'; ? has a 5-10 second response time.


 [EMAIL PROTECTED] pkg_info
 apr-1.2.11p1 Apache Portable Runtime
 apr-util-1.2.10p0 companion library to APR
 autoconf-2.61p1 automatically configure source code on many Un*x
 platforms
 curl-7.17.1 get files from FTP, Gopher, HTTP or HTTPS servers
 db-4.6.21 Berkeley DB package, revision 4
 femail-0.97p0 simple SMTP client
 gettext-0.16.1 GNU gettext
 jpeg-6bp3 IJG's JPEG compression utilities
 libiconv-1.9.2p5 character set conversion library
 libidn-1.1 internationalized string handling
 libltdl-1.5.22p3 GNU libtool system independent dlopen wrapper
 libmcrypt-2.5.7p1 interface to access block/stream encryption
 algorithms
 libxml-2.6.30 XML parsing library
 mhash-0.9.1p1 strong hash library
 mod_dav-1.0.3p5 class 1 and 2 DAV server for the Apache webserver
 monit-4.10.1p0 monitoring and managing daemons utility
 mysql-client-5.0.51a multithreaded SQL database (client)
 mysql-server-5.0.51a multithreaded SQL database (server)
 nano-2.0.7 Pico editor clone with enhancements
 neon-0.26.2 HTTP and WebDAV client library, with C interface
 p5-DBD-mysql-4.005 MySQL drivers for the Perl DBI
 p5-DBI-1.59 unified perl interface for database access
 p5-Net-Daemon-0.43 extension for portable daemons
 p5-PlRPC-0.2018p0 module for writing rpc servers and clients
 pear-1.5.0p1 base classes for common PHP tasks
 pear-utils-1.5.0p0 utilities for managing pear extensions
 pecl-APC-3.0.15 Alternative PHP Cache
 php5-core-5.2.5p2 server-side HTML-embedded scripting language
 php5-curl-5.2.5 curl URL library extensions for php5
 php5-extensions-5.2.5 informational package about PHP5 extensions
 php5-gd-5.2.5-no_x11 image manipulation extensions for php5
 php5-mbstring-5.2.5 multibyte characters extensions for php5
 php5-mcrypt-5.2.5 mcrypt encryption/decryption extensions for php5
 php5-mysql-5.2.5 mysql database access extensions for php5
 php5-mysqli-5.2.5 mysql database access extensions for php5
 png-1.2.22 library for manipulating PNG images
 python-2.5.2 interpreted object-oriented programming language
 rsync-2.6.9 mirroring/synchronization over low bandwidth links
 screen-4.0.3p1 multi-screen window manager
 subversion-1.4.4 subversion revision control system
 t1lib-5.1.0p1 Type 1 rasterizer library for UNIX/X11
 vim-7.1.244p0-no_x11 vi clone, many additional features
 wget-1.10.2p1 retrieve files from the web via HTTP, HTTPS and FTP

 Chris




Chris



Re: httpd slowdown issues

2008-09-03 Thread Chris Tankersley
Starting on line 2198 I start getting these kinds of output:
 23747 php  CALL  fcntl(0x5,0x3,0)
 23747 php  RET   fcntl -1 errno 9 Bad file descriptor
 23747 php  CALL  fcntl(0x6,0x3,0)
 23747 php  RET   fcntl -1 errno 9 Bad file descriptor
 23747 php  CALL  fcntl(0x7,0x3,0)

and this continues for 245 lines. This is before the conf file is
loaded (that happens about 1000 lines later). My script is read in on
line 11121 and then actually wrote out on line 11305 before it exits
with line 12414. This script took 12 seconds to run before I ran it
through ktrace. Other than the above errors I didn't see anything
explicitly with errors though this is the first time I've looked at a
trace.


On Wed, Sep 3, 2008 at 6:55 PM, Stuart Henderson [EMAIL PROTECTED] wrote:
 On 2008-09-03, Chris Tankersley [EMAIL PROTECTED] wrote:
 Yes, even going down to something as little as ?php echo 'Hello
 World'; ? has a 5-10 second response time.

 as a starting point, I'd run that as a CLI script under ktrace
 and see if kdump output gives clues.



Re: web development on OpenBSD

2008-04-29 Thread Chris Tankersley
L. V. Lammert wrote:
 At 01:07 PM 4/29/2008 +0200, you wrote:
 
 PHP is complete crap and a disaster as a programming language. Java is
 way too cumbersome. For this kind of use-case, I would definitely use
 python and twisted+nevow+axiom.
 
 Coincidentally, the latest Zend newsletter just showed up - turns out
 they have a *BSD Licensed* PHP Framework that looks promising:
 
 http://framework.zend.com/
 
 For those unfamiliar with the term 'framework', it provides a structure
 that greatly simplifies development by minimizing configuration
 problems, automatically integrating a database, and providing testing
 tools (I know, what's that!).
 
 Might be worth checking out - I am.
 
 Lee
 
 
I've been using it since just before 1.0 and have been very happy with
it. In fact, it's replaced out in-house framework we were using since
the new 1.5 now supports a better layout model for views. MVC
development is incredibly easy with the framework in general.

It doesn't have everything under the sun that a lot of other frameworks
have but they are more than happy to take recommendations for core
functionality. Plus, what really drew me in was that it is an at-will
framework, so I'm not forced to use anything that I don't want.

No complaints from using it on OpenBSD here.

Chris


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: scp doesn´t recognizes 127.0.0.1* as filename

2007-11-26 Thread Chris Tankersley

Eduardo Alvarenga wrote:

Hi there,

[EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL 
PROTECTED]:/u02/snap
ssh: 127.0.0.1-2007-11-26-18: Name or service not known

127.0.0.1-2007-11-26-18:31 is a directory

It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a
directory.
Can anyone help?

This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4


Regards,

  


That's because your directory name follows the same command pattern that 
scp looks for:


server:directory

so it's looking to SCP a directory called '31' on the server 
'127.0.0.1-2007-11-26-18' to the other server. If you put the filename 
in quotes, does it work?


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Server trouble shooting

2007-10-31 Thread Chris Tankersley

Claus Niesen wrote:

The console terminal didn't respond either.  I could use Ctrl-Alt-F2 to switch 
consoles but the console terminal wouldn't respond at all to key strokes.  I 
didn't see any error messages on the console itself either.  Faulty hardware or 
is it lack of RAM due to the multiple apache instances?
  
Oddly enough, I had this same problem when I set a console timeout on 
our external web server (internal was fine with it). If anything caused 
a console timeout (ssh, direct console access, etc) the box stopped 
spawning new processes yet allowed existing ones to continue. I ended up 
taking the console timeout off and it cleared up the problem. Could be 
something as simple as that.

[Snip]
  


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Machine stalling when TMOUT is set for ksh

2007-07-23 Thread Chris Tankersley
Friday we added TMOUT=600 to the user's profiles for ksh to 
automatically log them out after 10 minutes of inactivity. We started 
having processes like sendmail start to freeze, and figured that it was 
a software issue as our test machine is running just fine and the only 
differences are some monitoring software.


I was sitting here just a few minutes ago and realized that when it hits 
600 seconds to disconnect me from SSH, it actually stops all console 
input, either via SSH or the actual keyboard. When this happens, 
sendmail and other programs that run commands stop functioning, but 
processes like Apache that are always running continue just fine. I 
can't even log into the console, when I type in my username and hit 
enter, it just sits there without ever giving me the password prompt.


Logs don't show anything out of the ordinary, but if anyone thinks that 
they will help, just let me know what you want and I can post it.


Has anyone else run across this? Running OpenBSD 4.1-stable with RAIDFrame.

Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Send E-mail as Different Hostname

2007-07-17 Thread Chris Tankersley

Gordon Stratton wrote:

On 7/16/07, Chris Tankersley [EMAIL PROTECTED] wrote:

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Chris


Are you using PHP's built-in mail() function?  Look at example 1099 in
the PHP documentation for mail()[1].

Gordon

[1] http://us.php.net/manual/en/function.mail.php


Extra headers are being set. Depending on the form, it goes to a main 
e-mail address, and then to a backup stored at the ISP. Since we moved 
our website from their servers, they started rejecting them quoting 
'[EMAIL PROTECTED]' as the sender, even though the mail reaches our 
servers with the correct sender.


As a quick work-around I just changed the hostname of the machine to 
'www' and that seems to have cleared it up. Not the ideal solution, but 
at least the mails are being backed up off-site.


Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Send E-mail as Different Hostname

2007-07-17 Thread Chris Tankersley

Henning Brauer wrote:

* Chris Tankersley [EMAIL PROTECTED] [2007-07-16 22:29]:
  

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]



just switch from mini_sendmail (you should do that in any case, it is a 
piece of shit) to femail and set myname in femail.conf.
of course, this assumes that php is not explicitely setting the sender 
- if so, it has to be fixed there.


  
I'll look into femail. I settled on mini_sendmail just because it was 
the most oft-suggested mailer to use in a chroot'd environment.


As for the sender, it is being set in the headers. Depending on the 
form, it goes to a main e-mail address, and then to a backup stored at 
the ISP. Since we moved our website from their servers, they started 
rejecting them quoting '[EMAIL PROTECTED]' as the sender, even though 
the mail reaches our servers with the correct sender.


s a quick work-around I just changed the hostname of the machine to 
'www' and that seems to have cleared it up. Not the ideal solution, but 
at least the mails are being backed up off-site, but with femail I'll 
try it and see if it clears it up as well.


Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Send E-mail as Different Hostname

2007-07-16 Thread Chris Tankersley

We're running a web server with PHP 5 and OpenBSD's Apache 1.3.29.
Whenever a mail is sent from our site using mini_sendmail it is using
the hostname that we gave it, which doesn't exist to the outside world.
How can I have it send as another hostname, so that it sends from
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]

Chris


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: ps wrapping

2007-06-26 Thread Chris Tankersley

Nick Guenther wrote:

Is there anyway to make ps format its output to not cut off lines at
the edge of the screen? Is have a long command line I'm trying to
remember and I can't see it all. I tried -o command but it's still too
long.

Perhaps a newbie question, but I suspect it might not actually be 
possible.


Also, for the record, `ps $PID` works (exactly like `ps -p $PID`) as
you'd guess, but it's not in the man page.

-Nick



I use 'ps aux -w' in my scripts and haven't had a problem

Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: chroot'ed httpd howto

2007-06-12 Thread Chris Tankersley

stefan hoffmann wrote:

Hi,

I'm currenly having troubles running MediaWiki on 4.1, but I assume 
it's due to my poor understanding of the chroot'ed httpd and running php.


So is there somewhere an howto or a faq about troubleshooting problems 
in this field?


The actual problem: once a user has logged into and switches to 
another page, the login state is lost.



mfG
-- stefan --


I moved a MediaWiki install  1.6 from an Ubuntu Server to OpenBSD 
4.1-stable without any issues. Not really much help in your situation, 
but maybe there is something else other than it being in a chroot that 
is causing the issue?


Chris

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: php5 missing the money_format() function

2007-06-05 Thread Chris Tankersley
I just switched to number_format(), but I was only using money_format() 
on three pages.


Chris

Daniel wrote:

Hi!

I'm using OpenBSD 4.1, and php5. When trying to use the money_format() 
function I get this error in my logs:

Fatal error: Call to undefined function money_format() in ...

I understand that The function money_format() is only defined if the 
system has strfmon capabilities. For example, Windows does not, so 
money_format() is undefined in Windows.

But I'm not using that :)

Any ideas?

Thanks!

Daniel


  



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Dell PERC 3/Di - No Disks Found

2007-05-23 Thread Chris Tankersley
I'm trying to set up a new server running on an old Dell Poweredge 2500 
which contains a Dell PERC 3/Di Adaptec-based RAID controller running 
RAID 5 on three disks. When the install boots up it comes along and says 
that it does not detect any disks to install to. I dug around in Google 
and saw some older posts eluding to disabling the aha* and ahc* drivers 
via the UKC, but that did not help me. Since it is an Adaptec card, I 
even tried 'enable aac*' but that did not seem to load anything.


I am wondering if this card is actually supported, or if anyone has been 
able to get it to work easily. I've got conflicting compatibility 
reports as http://www.openbsd.org/i386.html does not list it, but the 
INSTALL.i386 file does.


As far as the card and hard drives go, they still seem usable as CentOS 
3.4 and Ubuntu 6.0.6.1 will install with no problems, so I'm leaning 
away from hardware failure.


If I need to I can submit a bug report to bugs@, but the IRC channel 
directed me here first :)


Chris


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.