Hello,
 
i have boa running on a gumstix with netCF, all the content and logfiles i have put on a big (128 MB) CF card.
 
This is what i have done:
 
CF card is mounted permanently to directory /cf
 
# mount
/dev/mtdblock2 on / type jffs2 (rw,noatime)
/proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
/dev/hda1 on /cf type vfat (rw,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)
Inside /var: ln -s /cf/www www (of course renamed the old www to www.old)
Put some HTML content inside /cf/www
Inside tmp: ln -s /cf/boa_access_log boa_access_log (same with the other files boa_cgi_log and boa_error_log)
 
Access the webserver is fine, but logfiles have permissions
 
-rwxr-xr-x    1 root     root        13508 Sep 18 20:53 boa_access_log
-rwxr-xr-x    1 root     root            0 Sep 18 20:53 boa_cgi_log
-rwxr-xr-x    1 root     root         3827 Sep 18 20:53 boa_error_log
and boa can't write to them (i think because write permission is not set for non-root). I tried to change them via chmod, but is not working (think because vfat has no rights field). So tried fmask=0000 and dmask=0000 in /etc/fstab.
 
# mount
/dev/mtdblock2 on / type jffs2 (rw,noatime)
/proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
/dev/hda1 on /cf type vfat (rw,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1)
 
The permission is now rwxrwxrwx, but even there boa is not writing anything to the logfiles. Why ?
 
Is there a solution for this problem ? Even then is it a security risk to put all file permissions to allow everything when (hopefully) only boa can access the CF card ?
 
Ok, another possibility could be to format the CF card with another fs ? But then i think i can't edit the content not more via WinXP...
 
Any ideas ?

Regards and thanks,
 
           Martin