Solved smbfs as filesystem for Apache data

Is there any posibility to use smbfs as data container for apache?

Scenario:

Code:
FreeBSD 10 box -> jail -> apache with mounted filesystem via smbfs (html, php, css js etc...)

I'll try to run as follows but ...

PHP works fine, access for this is different than for JS, CSS or graphics files, and when i'll try to get other files i get

Code:
net::ERR_INCOMPLETE_CHUNKED_ENCODING

smbfs is mounted via /etc/fstab before jail starts. Permissions are set for user www and group www when the filesystem is mounted. Also files are accessible from FreeBSD box; PHP can parse *.php files created on Windows but these files are read via a PHP module.

I want to do this because I want to create a developer environment on my Windows XP machine with Virtualbox. I want to edit project files from Windows. The Samba daemon works but access to disks is very slow (despite having SSD disks). So I want to reverse the situation.

Any ideas?
 
alfikmik said:
Is there any posibility to use smbfs as data container for apache?
Yes, that should work. I can't comment on its performance though, it's probably not the fastest filesystem to use. NFS would probably be a better choice as a network filesystem but Windows' support for NFS is abysmal.
 
If anyone is interested: my problem solves Apache 2.2 parameter
Code:
EnableSendfile Off
.

Code:
<VirtualHost mydomain>
    ServerName mydomain
    DocumentRoot /v/smb/mydomain/
    <Directory /v/smb/mydomain/>
        Options All
        AllowOverride All
       EnableSendfile Off
    </Directory>
    ...
</VirtualHost>
 
Back
Top