1

Temat: lighttpd - No input file specified.

Witam,
mam problem z plikami php.
Mam wszystko skonfigurowane wg instrukcji lighttpd.

A po wczytaniu adresu: ..../index.php
mam komunikat:

No input file specified.

Co moze byc powodem ?

2

Odp: lighttpd - No input file specified.

W logach php i systemowych patrz. Możesz też uruchomić lighttpd z debugu i też będzie pewnie rzeczy pokazywał (lighttpd -Df /etc/lighttpd/lighttpd.conf czy jak tam masz ścieżki).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: lighttpd - No input file specified.

Wylaczylem lighttpd.

I chcialem uruchomic:

/etc/init.d/php start
Cannot bind/listen socket - [125] Address already in use.
Couldn't create FastCGI listen socket on port 1026

moze tu jest przyczyna ze ten php nie dziala ?

4

Odp: lighttpd - No input file specified.

Jak masz już uruchomiony to drugie uruchomienie właśnie coś takiego wyświetli - buntuje się że już jest uruchomione na tym porcie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: lighttpd - No input file specified.

Juz sie pogubilem jak moge ten problem rozwiklac.
Nie wiem za bardzo jakimi komendami mam to sprawdzic, co jest przyczyna ?

6

Odp: lighttpd - No input file specified.

ps wyświetli procesy. Jak już jest uruchomiony to nie ma sensu uruchamiać go jeszcze raz.

Zobacz mój opis ownCloud - jest tam kompletna instalacja lighttpd i php razem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: lighttpd - No input file specified.

mam takie procesy:

24086 root      3752 S    lighttpd -f /etc/lighttpd/lighttpd.conf
24088 root     11920 S    /usr/bin/php-fcgi -b 1026

i nadal mam komunikat:

No input file specified.

8

Odp: lighttpd - No input file specified.

Po pierwsze - test.php zrób i zobacz czy działa. Jeżeli nie - pokaż konfig lighttpd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9 (edytowany przez mulan 2014-04-18 08:13:55)

Odp: lighttpd - No input file specified.

test.php nie wyswietla sie.


# lighttpd configuration file
#
## modules to load
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules = (
#    "mod_rewrite",
#    "mod_redirect",
#    "mod_alias",
    "mod_auth",
#    "mod_status",
#    "mod_setenv",
    "mod_fastcgi",
#    "mod_proxy",
#    "mod_simple_vhost",
    "mod_cgi",
#    "mod_ssi",
#    "mod_usertrack",
#    "mod_expire",
#    "mod_webdav"
)

# force use of the "write" backend (closes: #2401)
server.network-backend = "write"

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root = "/root/www/"

## where to send error-messages to
server.errorlog = "/var/log/lighttpd/error.log"

## files to check for if .../ is requested
index-file.names = ( "index.php", "index.html", "default.html", "index.htm", "default.htm" )

## mimetype mapping
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"
)

## Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetypes.use-xattr = "enable"

## send a different Server: header
## be nice and keep it at lighttpd
#server.tag = "lighttpd"

$HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
}

##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

######### Options that are good to be but not neccesary to be changed #######

## bind to port (default: 80)
server.port = 81
cgi.assign = ( ".php"  => "/usr/bin/php-cgi" )
cgi.fix_pathinfo=1


## bind to localhost (default: all interfaces)
#server.bind = "localhost"

## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"

## to help the rc.scripts
server.pid-file = "/var/run/lighttpd.pid"


###### virtual hosts
##
##   If you want name-based virtual hosting add the next three settings and load
##   mod_simple_vhost
##
## document-root =
##   virtual-server-root + virtual-server-default-host + virtual-server-docroot or
##   virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"


##
## Format: <errorfile-prefix><status>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix = "/www/error-"

## virtual directory listings
#server.dir-listing = "enable"

## send unhandled HTTP-header headers to error-log
#debug.dump-unknown-headers = "enable"

### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot = "/"

## change uid to <uid> (default: don't care)
#server.username = "nobody"
#
server.upload-dirs = ( "/tmp" )

## change uid to <uid> (default: don't care)
#server.groupname = "nobody"

#### compress module
#compress.cache-dir          = "/dev/null/"
#compress.filetype           = ("text/plain", "text/html")

#### proxy module
## read proxy.txt for more info
#proxy.server = (
#    ".php" => (
#        "localhost" => (
#            "host" => "192.168.0.101",
#            "port" => 80
#        )
#    )
#)

#### fastcgi module
## read fastcgi.txt for more info
fastcgi.server = (
    ".php" => ((
        "host" => "127.0.0.1",
        "port" => 1026,
#        "localhost" => (
#            "socket" => "/tmp/php-fastcgi.socket",
#            "bin-path" => "/usr/local/bin/php"
        )
    )
)

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

#### SSL engine
#ssl.engine = "enable"
#ssl.pemfile = "server.pem"

#### status module
#status.status-url = "/server-status"
#status.config-url = "/server-config"

#### auth module
## read authentification.txt for more info
auth.debug=2
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"

#### url handling modules (rewrite, redirect, access)
#url.rewrite = ( "^/$" => "/server-status" )
#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )

#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
#    url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
}

10

Odp: lighttpd - No input file specified.

cgi.assign = ( ".php"  => "/usr/bin/php-cgi" )
cgi.fix_pathinfo=1

To wywal. Stronę oczywiście umieściłeś w /root/www/? Jeżeli tak, a nie jest to standardowe miejsce, więc pytanie czy w php.ini też root dokumentów zmieniłeś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11 (edytowany przez mulan 2014-04-18 08:20:20)

Odp: lighttpd - No input file specified.

Te dwie linie zakomentowalem.
I w php.ini zmienilem.

Lighttpd stop / start

I nadal nic, ten sam komunikat.

12

Odp: lighttpd - No input file specified.

Włącz logi w php, masz logi w lighttpd - co mówią?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: lighttpd - No input file specified.

OK dziala juz.

Musialem zrobic : /etc/init.d/php start

Dzieki wielkie.