lighttpd + wTorrent trouble

view full story

http://forums.fedoraforum.org – I originally posted this question to the lighttpd forums but got no responses, so I'll try my luck here. Not very familiar with lighttpd, trying to use it to serve wTorrent pages. Found a guide here (http://www.wtorrent-project.org/trac...TorrentInstall), and I've followed it but am not having much luck. Running Fedora 12 x86_64, lighttpd version 1.4.23, lighttpd-fastcgi module version 1.4.23. As specified by the guide I was reading, I also installed the packages php.x86_64 (version 5.3.0), php-pdo.x86_64 (version 5.3.0), sqlite.x86_64 (version 3.6.17), and php-xmlrpc.x86_64 (version 5.3.0). My lighttpd config file, without any blank lines or comments, is Code: server.modules              = (                                 "mod_alias",                                 "mod_access",                                 "mod_accesslog",                                 "mod_accesslog",                                 "mod_scgi" ) server.document-root        = "/var/www/lighttpd/" server.errorlog            = "/var/log/lighttpd/error.log" index-file.names            = ( "index.php", "index.html",                                 "index.htm", "default.htm" ) mimetype.assign            = (   ".rpm"          =>      "application/x-rpm",   ".pdf"          =>      "application/pdf",   ".sig"          =>      "application/pgp-signature",   ".spl"          =>      "application/futuresplash",   ".class"        =>      "application/octet-stream",   ".ps"          =>      "application/postscript",   ".torrent"      =>      "application/x-bittorrent",   ".dvi"          =>      "application/x-dvi",   ".gz"          =>      "application/x-gzip",   ".pac"          =>      "application/x-ns-proxy-autoconfig",   ".swf"          =>      "application/x-shockwave-flash",   ".tar.gz"      =>      "application/x-tgz",   ".tgz"          =>      "application/x-tgz",   ".tar"          =>      "application/x-tar",   ".zip"          =>      "application/zip",   ".mp3"          =>      "audio/mpeg",   ".m3u"          =>      "audio/x-mpegurl",   ".wma"          =>      "audio/x-ms-wma",   ".wax"          =>      "audio/x-ms-wax",   ".ogg"          =>      "application/ogg",   ".wav"          =>      "audio/x-wav",   ".gif"          =>      "image/gif",   ".jar"          =>      "application/x-java-archive",   ".jpg"          =>      "image/jpeg",   ".jpeg"        =>      "image/jpeg",   ".png"          =>      "image/png",   ".xbm"          =>      "image/x-xbitmap",   ".xpm"          =>      "image/x-xpixmap",   ".xwd"          =>      "image/x-xwindowdump",   ".css"          =>      "text/css",   ".html"        =>      "text/html",   ".htm"          =>      "text/html",   ".js"          =>      "text/javascript",   ".asc"          =>      "text/plain",   ".c"            =>      "text/plain",   ".cpp"          =>      "text/plain",   ".log"          =>      "text/plain",   ".conf"        =>      "text/plain",   ".text"        =>      "text/plain",   ".txt"          =>      "text/plain",   ".dtd"          =>      "text/xml",   ".xml"          =>      "text/xml",   ".mpeg"        =>      "video/mpeg",   ".mpg"          =>      "video/mpeg",   ".mov"          =>      "video/quicktime",   ".qt"          =>      "video/quicktime",   ".avi"          =>      "video/x-msvideo",   ".asf"          =>      "video/x-ms-asf",   ".asx"          =>      "video/x-ms-asf",   ".wmv"          =>      "video/x-ms-wmv",   ".bz2"          =>      "application/x-bzip",   ".tbz"          =>      "application/x-bzip-compressed-tar",   ".tar.bz2"      =>      "application/x-bzip-compressed-tar",   # default mime type   ""              =>      "application/octet-stream",  ) accesslog.filename          = "/var/log/lighttpd/access.log" url.access-deny            = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" {   server.range-requests = "disable" } static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) server.pid-file            = "/var/run/lighttpd.pid" server.username            = "lighttpd" server.groupname          = "lighttpd" include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {}  \;" scgi.server = (  "/RPC2" => # RT_DIR   ( "" =>   (     "host" => "", # Ip where rtorrent is listening     "port" => 5000, # Port specified in .rtorrent.rc     "check-local" => "disable"   )   )  ) Aside from the huge mimetype section, it does not look especially complicated, but there's something I'm obviously not doing correctly. I did notice the 'static-file.exclude-extensions' line, but commenting this out & restarting lighttpd didn't get me where I wanted to be, my browser (Firefox 3.5) prompted me for where to save the .php file. As the guide specified, I put the wtorrent/ directory in /var/www/lighttpd/ , and ran 'chmod -R 777 wtorrent/' (though I really didn't like the idea of setting it 777, so I moved the wtorrent/ directory elsewhere until I can figure out what's wrong). Lighttpd actually runs, I can get to the default lighttpd page without any problem. When I try to access http://localhost/wtorrent/install.php , lighttpd comes back with a '403 forbidden' message. If I just do something silly like run 'echo "hello" > something.html' and then view http://localhost/wtorrent/something.html , it displays without any errors. So it can see files in the wtorrent/ subdirectory, it just doesn't seem to like PHP files very much. I can see in the access log every time I try and view the page: Code: localhost - [22/Nov/2009:19:54:43 -0500] "GET /wtorrent/install.php HT TP/1.1" 403 345 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko /20091105 Fedora/3.5.5-1.fc12 Firefox/3.5.5" There's nothing in error.log which indicates anything actually going wrong, so it seems like lighttpd not serving up PHP files is the expected behavior for how I have it configured ... but it's not what I actually want it to do. It seems like there's an extra step I need to do to tell lighttpd to serve up PHP files, but I don't know what that is. If anyone has some insight as to why PHP files are being kicked back by default, it'd be very helpful. (HowTos)