Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PHP-FPM and nginx setup that has been working perfectly on Ubuntu Desktop 12.04. The webserver's files are served from a directory called /www, which is set as the root of the server.

Initially, /www was mounted as a VMware shared folder (because the Ubuntu Desktop is running as a guest os). However, due to performance issues with shared folders (seeing a 2 second delay!), I am testing out samba shares.

I have a folder called webfiles shared as a network share on my Windows 7 host. I am able to automount it to /www by mounting it as cifs in my fstab:

// /www cifs credentials=/home/user/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 

The /www mounts fine on start up and I can create and delete files on it in Ubuntu. Nginx is also able to serve static files from it with no problem.

The problem is that once I want it to server PHP files through PHP-FPM, I start getting File not found. errors. This is despite the fact the setup worked perfectly, and the only thing that changed is, instead of a shared folder being mounted at /www, I now have a samba share.

I am not very familiar with samba, but what could be causing this?

share|improve this question
up vote 0 down vote accepted

Looks like there was a problem with the mounting. Instead of having windows pass the inode numbers, setting it so that Ubuntu generate the inode numbers fixes the problem:

// /www cifs credentials=/home/user/.smbcredentials,noserverino 0 0
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.