From owner-freebsd-questions@FreeBSD.ORG Sat Aug 16 00:20:59 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2B1137B401 for ; Sat, 16 Aug 2003 00:20:58 -0700 (PDT) Received: from ctb-mesg1.saix.net (ctb-mesg1.saix.net [196.25.240.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4060343FAF for ; Sat, 16 Aug 2003 00:20:58 -0700 (PDT) (envelope-from scm@marquard.net) Received: from MITHRIL (rrba-bras-196-46.telkom-ipnet.co.za [165.165.196.46]) by ctb-mesg1.saix.net (Postfix) with ESMTP id 43E2651F1 for ; Sat, 16 Aug 2003 09:20:55 +0200 (SAST) From: "Stephen Marquard" To: freebsd-questions@freebsd.org Date: Sat, 16 Aug 2003 09:20:52 +0200 MIME-Version: 1.0 Priority: normal X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Message-Id: <20030816072055.43E2651F1@ctb-mesg1.saix.net> Subject: Apache2 on FreeBSD 4.8-R returns garbage from nwfs-mounted filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 07:20:59 -0000 Hi, I am running Apache 2.0.47 on FreeBSD 4.8-RELEASE (compiled from FreeBSD ports, default install), with a virtual website set up to access files mounted on a Netware filesystem. The filesystem is mounted using mount_nwfs. The FreeBSD kernel has NCP and NWFS compiled in to support the Netware filesystem. As a normal user or even as the www user which apache2 runs as, it is possible to read the files on the Netware-mounted filesystem normally. However, when the virtual website is accessed, apache2 returns garbage, no matter what the file accessed. The contents appear to be random parts of other files on the system (or could be from the server memory space, I'm not sure). Apache2 is returning a file of the correct length however, just that the contents are completely different. If I use a php page to include() a file on the netware-mounted filesystem, it works correctly. Running the same setup under apache1 works as expected, i.e. does not return garbage. This appears to be a problem with apache2's handling of files read from nwfs-mounted filesystems, where the contents somehow become corrupt. Does anyone have a solution to this, or should I submit it as an apache2 bug report ? I'm happy to do any further diagnostic tests that anyone can suggest. Regards Stephen --- Stephen Marquard ICT Consultant scm@marquard.net Cell: +27-83-500-5290