403 Forbidden when trying to access php on lighttpd webserver openwrt
"Datangnya kematian tidak menunggu hingga kamu akan menjadi lebih baik. Jadilah orang baik dan tunggulah kematian" - Habib Ali Zainal Abidin
Permasalahan ketemu saat tuntung instalasi php dengan webserver lighttpd di openwrt yaitu : 403 Forbidden when trying to access php, dan <b>Done!</b>, setelah kita installasi ulang dengan konfigurasikan seperti ini :
<!-- Instalasi ulang --> opkg update opkg install lighttpd opkg install lighttpd-mod-cgi opkg install lighttpd-mod-fastcgi /etc/init.d/uhttpd stop /etc/init.d/lighttpd startdi /etc/httpd/lighttpd.conf
<!-- ighttpd configuration file -->
server.network-backend = "write"
server.document-root = "/www"
server.errorlog = "/tmp/error.log"
index-file.names = ( "index.html", "default.html", "index.htm", "default.htm" )
mimetype.assign = (  
    ".pdf"   => "application/pdf",
    ".class" => "application/octet-stream",
    ".pac"   => "application/x-ns-proxy-autoconfig",
    ".swf"   => "application/x-shockwave-flash",
    ".wav"   => "audio/x-wav",
    ".gif"   => "image/gif",
    ".jpg"   => "image/jpeg",
    ".jpeg"  => "image/jpeg",
    ".png"   => "image/png",
    ".svg"   => "image/svg+xml",
    ".css"   => "text/css",
    ".html"  => "text/html",
    ".htm"   => "text/html",
    ".js"    => "text/javascript",
    ".txt"   => "text/plain",
    ".dtd"   => "text/xml",
    ".xml"   => "text/xml"
 )
$HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.pid-file = "/var/run/lighttpd.pid"
server.upload-dirs = ( "/tmp" )
fastcgi.server = (
    ".php" => (
        "localhost" => (
            "socket" => "/tmp/php-fastcgi.socket",
            "bin-path" => "/usr/bin/php-cgi"
        )
    )
)
    
	
Sumber : https://forum.archive.openwrt.org/viewtopic.php?id=56401
. 
         
    Pencarian Serupa di Google untuk 403 Forbidden when trying to access php on lighttpd webserver openwrt
Result : 
    All Comments (1)
Add a Comment
    Silahkan tinggalkan pesan saudaraku.