title: lighttpd and php 403 - Forbidden
body: <p>I'm trying to upload a xml file using lighttpd and php into linux board.</p>
  
  <p>Unfortenly, I get a 403 - Forbidden error.</p>
  
  <p>No errors into error.log. </p>
  
  <p>No fcgi.</p>
  
  <p>web_root folder has </p>
  
  <pre><code>chown -R root:root /web_root
  </code></pre>
  
  <p><strong>Ajax request</strong></p>
  
  <pre><code>$.ajax({
      url: "/cid/filename.cid",
      method: "PUT",
      data: xmlCID,
      dataType: "xml",
      processData: false,
      success: function(data){
          console.log(data);
      },
      error: function(jqXHR, textStatus, errorThrown){
         alert(jqXHR.responseText, textStatus, errorThrown);
      }
  });
  </code></pre>
  
  <p><strong>lighttpd conf</strong></p>
  
  <pre><code>server.modules              = (
                                 "mod_rewrite",
                                  "mod_access",
                                 "mod_auth",
                                 "mod_cgi",
                                  "mod_accesslog" )
  
  server.document-root        = "/home/web_root/"
  server.errorlog             = "/home/lighttpd.error.log"
  
  index-file.names            = ( "index.php", "index.html",
                                  "index.htm", "default.htm" )
  
  server.event-handler = "poll" # needed on OS X
  
  server.tag                 = "lighttpd/1.4.11 (Win32)"
  
  accesslog.filename          = "/home/access.log"
  
  static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  
  server.upload-dirs = ( "/var/tmp/lighttpd-upload/" )
  </code></pre>