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

This question already has an answer here:

I've configured a WAMP (Windows Apache MySQL and PHP) stack when when configured to use local storage takes 3-4 seconds to load. When I use an SMB/UNC share it takes 12-15 seconds to load.

Here are the two lines in my httpd.conf:

 #DocumentRoot "//"
 #<Directory "//">

 #DocumentRoot "C:/www"
 #<Directory "C:/www">

Is there performance tuning I can do on windows server 2008 R2 to improve performance or is there another way to improve performance using smb

share|improve this question

marked as duplicate by HopelessN00b Feb 25 '15 at 7:04

This question was marked as an exact duplicate of an existing question.

A script that takes 3-4 seconds in PHP must be pretty large, maybe you're using a CMS or other platform. Either way, SMB has far too much lag to be a practical docroot of your site. It's just inherent in the protocol I'm afraid. NFS may be faster, but really, your docroot should be local. I'm actually quite amazed it only takes 12-15 seconds if a local version takes 3-4.

share|improve this answer
Is this something specific to Apache, or in general? We have a bunch of sites running in IIS on a DFS root (which is CIFS) and we don't see any appreciable delay in accessing network resources – Mark Henderson Jun 17 '13 at 23:26

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