Apache2 on FreeBSD 4.8-R returns garbage from nwfs-mounted filesystem

Stephen Marquard scm at marquard.net
Sat Aug 16 00:20:59 PDT 2003


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 at marquard.net
Cell: +27-83-500-5290




More information about the freebsd-questions mailing list