Help with Lighttpd
Started by: 4ndr3wk4ndr3wk
On: 1204662458|%e %b %Y, %H:%M %Z|agohover
Number of posts: 7
rss icon RSS: New posts
Summary:
broken .conf file!
Help with Lighttpd
4ndr3wk4ndr3wk 1204662458|%e %b %Y, %H:%M %Z|agohover

could someone please help, i was trying to do the transmission hack and changed the lighttpd.conf file, and it didnt work come with error:
Restarting lighttpd: 2008-03-04 20:23:03: (configfile.c.737) source: /etc/lighttpd/lighttpd.conf line: 70 pos: 3 invalid character in variable name
2008-03-04 20:23:03: (configfile.c.793) configfile parser failed: (COMMA)

and i never checked for a backup file! could someone please upload the file! not the text but the actual file! the edited one would be preffered aswell as it would probably work lol and be MUCH appreciated

thanks a lot 4ndr3wk

unfold Help with Lighttpd by 4ndr3wk4ndr3wk, 1204662458|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
anandusanandus 1204663263|%e %b %Y, %H:%M %Z|agohover

Why don't you have a look at what generates this error?
Probably just a typo in your lighttpd.conf.
Have a look at that file, line 70, third character seem a good place to start ;)

unfold Re: Help with Lighttpd by anandusanandus, 1204663263|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
4ndr3wk4ndr3wk 1204664945|%e %b %Y, %H:%M %Z|agohover

i had a look at the location of that and it was

"nasMaster.pl" => (( “socket” => “/tmp/lighttpd.fcgi.socket”,
“check-local” => “disable”,
))
)

the first bracket, so i deleted it, then it said the other " was wrong, did i type the file in wrong?

EDIT: i think ive really broken it now :( could someone send me the original unedited version to <my username> @gmail.com big thanks to anyone who does

last edited on 1204675168|%e %b %Y, %H:%M %Z|agohover by 4ndr3wk + show more
unfold Re: Help with Lighttpd by 4ndr3wk4ndr3wk, 1204664945|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
alephsmithalephsmith 1204684985|%e %b %Y, %H:%M %Z|agohover

It is possible that the pasted section is using different uninterpretable characters.

For example, do not paste in “check-local” => “disable” rather make sure you paste “check-local” => “disable”. As you can see the quote marks are different because the wiki is trying to be 'intelligent'.

I have included my edited .conf file below. This has been marked with [[code]][[/code]] tags to avoid parsing problems with the wiki.

server.document-root = "/usr/www/lib/"
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = "/var/log/lighttpd/error.log"

server.port = 80

server.username = "www-data"
server.groupname = "www-data"

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

server.errorfile-prefix = "/usr/www/lib/error-"

mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".gif" => "image/gif",
  ".css" => "text/css"
)

accesslog.filename = "/var/log/lighttpd/access.log"
dir-listing.activate = "enable"
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )
index-file.names = ( "nasMaster.pl", "index.html", "index.php" )

# bruce - I don't think we need this now...
#cgi.assign                 = ( ".cgi"  => "/usr/bin/perl" )

alias.url = ( "/auth" => "/usr/www/lib" )

auth.backend               = "htdigest"
auth.backend.htdigest.userfile = "/var/private/lighttpd.htdigest.user"
auth.require               = ( "/auth" =>
                               (
                                  "method"  => "digest",
                                  "realm"   => "nas admin",
                                  "require" => "valid-user"
# bruce - removed user=
#                                  "require" => "user=admin"
                               ),
                               "/Clutch/" =>
                               (
                                  "method"  => "digest",
                                  "realm"   => "nas admin",
                                  "require" => "valid-user"
                               ),
                               "/PUBLIC/" =>
                               (
                                  "method"  => "digest",
                                  "realm"   => "nas admin",
                                  "require" => "valid-user"
                               )
)
fastcgi.debug = 0

# Bruce - Removed host & port and replaced with a socket
# "host" => "127.0.0.1",
# "port" => 1026,
fastcgi.server = ( ".pl" =>
    (( "socket" => "/tmp/lighttpd.fcgi.socket",
       "bin-path" => "/usr/www/lib/nasMaster.pl",
       "check-local" => "disable",
       "min-procs" => 1,
       "max-procs" => 1,
       "idle-timeout" => 30,
       "bin-environment" => (
        # Environment variables for nasMaster.pl
                "PERL5LIB" => "/usr/www/lib",
        "NAS_NBIN" => "/usr/www/nbin",
       ),
    )),
    "nasMaster.pl" => ((  "socket" => "/tmp/lighttpd.fcgi.socket",              
        "check-local" => "disable",                 
    )),
        ".php" => ((  "bin-path" => "/opt/bin/php-fcgi", 
                "socket" => "/tmp/php.socket",
    ))                                                   
)
unfold Re: Help with Lighttpd by alephsmithalephsmith, 1204684985|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
4ndr3wk4ndr3wk 1204739115|%e %b %Y, %H:%M %Z|agohover

ah i see very "intelligent", i created that lightppd.conf file and tried rebooting lighttpd to now get this:
[root@MyBook ~]# /etc/init.d/lighttpd.sh restart
Restarting lighttpd: lighttpd.
[root@MyBook ~]# 2008-03-05 17:34:28: (mod_fastcgi.c.892) execve failed for: /opt/bin/php-fcgi No such file or directory
2008-03-05 17:34:28: (mod_fastcgi.c.920) child exited: 2
2008-03-05 17:34:28: (mod_fastcgi.c.923) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version.
You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli)
For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
2008-03-05 17:34:28: (mod_fastcgi.c.1200) [ERROR]: spawning fcgi failed.
2008-03-05 17:34:28: (server.c.673) Configuration of plugins failed. Going down.

i would tell you more if i knew what it meant lol, i have so far installed:
php 5.2.5
libxml 2.6.27
lib upnp

i have not done anything else, i have got as far as [http:// http://homepage.ntlworld.com/koolamaster/transmission.html#1.3]step 1.4

btw a BIG thankyou to everyone helping me :D

last edited on 1204739261|%e %b %Y, %H:%M %Z|agohover by 4ndr3wk + show more
unfold Re: Help with Lighttpd by 4ndr3wk4ndr3wk, 1204739115|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
bzhoubzhou 1204743999|%e %b %Y, %H:%M %Z|agohover

/opt/bin/ipkg install php-fcgi

unfold Re: Help with Lighttpd by bzhoubzhou, 1204743999|%e %b %Y, %H:%M %Z|agohover
Re: Help with Lighttpd
4ndr3wk4ndr3wk 1204752216|%e %b %Y, %H:%M %Z|agohover

thanks everyone, fixed it! turned out from alephsmiths file was a different directory, and i just edited the file and it worked

BIG THANKS!!!

unfold Re: Help with Lighttpd by 4ndr3wk4ndr3wk, 1204752216|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License