linux - lighttpd and php 403 - Forbidden -


i'm trying upload xml file using lighttpd , php linux board.

unfortenly, 403 - forbidden error.

no errors error.log.

no fcgi.

web_root folder has

chown -r root:root /web_root 

ajax request

$.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);     } }); 

lighttpd conf

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/" ) 

add following lighttpd.conf, restart server, re-run request, , check lighttpd.error.log.

debug.log-request-handling = "enable" 

(did intend write error log directly /home/ ?)

is fastcgi or cgi enabled run php on server? presume left lines out of lighttpd.conf posted above. check php being executed. log requests separate log file? check php has write permission location writing file.


Comments