Új hozzászólás Aktív témák

  • ecaddict

    senior tag

    válasz Laca0 #3743 üzenetére

    Kipróbáltam én is, profinak néz ki az interface.
    Beállítások:
    ../init.d/S45php

    #!/bin/sh

    export PHP_FCGI_CHILDREN=1
    PORT=1026
    BIN=/opt/bin/php-fcgi
    #/opt/etc/php.d

    case $1 in
    start)
    $BIN -b $PORT &
    ;;
    stop)
    killall php-fcgi ;;
    *)
    echo "usage: $0 (start|stop)"
    exit 1
    esac

    ../etc/lighttp/lighttpd.conf (kivonat):

    #...
    server.modules = (
    "mod_access",
    "mod_auth",
    "mod_scgi",
    "mod_fastcgi",
    "mod_cgi",
    "mod_accesslog" )
    #...

    #### fastcgi module
    ## read fastcgi.txt for more info
    fastcgi.server = ( ".php" =>
    ((
    "host" => "192.168.1.1",
    "port" => 1026,
    ))
    )

    #### CGI module
    cgi.assign = ( ".cgi" => "/bin/sh",
    ".pl" => "/opt/bin/perl" )

    scgi.server = ("/RPC2" =>
    ( "127.0.0.1" =>
    ( "host" => "127.0.0.1",
    "port" => 5000,
    "check-local" => "disable"
    )
    )
    )

    Amit minimum megváltoztatnék a beállításodon az "socket" az fastcgi.server-nél.
    Én pl. direktbe adtam meg a portot.
    Nálam az /mnt/ server.document-root és direktbe alá tettem a tgz-t, ennek megfelelően
    http://192.168.1.1:<https server port>/rtorrent/index.html-en érem el.

    [ Szerkesztve ]

    ### RT-N16, WL-500 Oleg optware script ami majdnem mindent feltesz ### ===========> http://wl500g.info/showthread.php?t=23684 <===========

Új hozzászólás Aktív témák