DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-03-02 06:58:27

msobon
Member
Registered: 2008-03-02
Posts: 6

Getting LightHttp to Work!

Ok so I followed the instructions provided on Shadowandy "Setting up lighttpd 1.4.17 with ImageMagick" http://www.shadowandy.net/_html/archive … _with.html

But i've run into a little problem it seems Lighthttp never really starts.
I run:
/mnt/HD_a2 #  ./fun_plug.d/start/lighttpd.sh
Starting lighttpd...
/mnt/HD_a2 #

but it never goes anywhere from here can anyone help? I'm a linux newb, here's the Strace output:


/mnt/HD_a2 # strace  ./fun_plug.d/start/lighttpd.sh
execve("./fun_plug.d/start/lighttpd.sh", ["./fun_plug.d/start/lighttpd.sh"], [/* 16 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40005000
stat("/etc/ld-uclibc.so.cache", 0xbefcaa1c) = -1 ENOENT (No such file or directory)
open("/mnt/HD_a2/fun_plug.d/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY)        = 3
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40006000
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`\346\0\000"..., 4096) = 4096
old_mmap(NULL, 364544, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000
old_mmap(0x4000d000, 306644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4000d000
old_mmap(0x4005f000, 7876, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4a000) = 0x4005f000
old_mmap(0x40061000, 18528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40061000
close(3)                                = 0
munmap(0x40006000, 4096)                = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
getpid()                                = 25714
brk(0)                                  = 0x11f000
brk(0x121000)                           = 0x121000
getcwd("/mnt/HD_a2", 4098)              = 11
geteuid()                               = 0
getppid()                               = 25713
open("./fun_plug.d/start/lighttpd.sh", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 10
close(3)                                = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
rt_sigaction(SIGINT, NULL, {SIG_IGN}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_IGN}, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTSTP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {SIG_IGN}, 8) = 0
read(10, "#!/bin/sh\n\nlighttpd_start() {\n  "..., 4095) = 753
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
brk(0x122000)                           = 0x122000
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat("/mnt/HD_a2/fun_plug.d/bin", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/mnt/HD_a2/fun_plug.d/bin", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 141 entries */, 4096)  = 4080
getdents64(3, /* 135 entries */, 4096)  = 4088
close(3)                                = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat64("/mnt/HD_a2/fun_plug.d/bin/[", {st_mode=S_IFREG|S_ISUID|0755, st_size=751500, ...}) = 0
fork()                                  = 25715
--- SIGCHLD (Child exited) @ 0 (0) ---
getpgrp()                               = 25713
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 25715
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat64("/mnt/HD_a2/fun_plug.d/bin/echo", {st_mode=S_IFREG|S_ISUID|0755, st_size=751500, ...}) = 0
fork(Starting lighttpd...
)                                  = 25716
--- SIGCHLD (Child exited) @ 0 (0) ---
getpgrp()                               = 25713
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 25716
stat("/mnt/HD_a2/fun_plug.d/bin", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/mnt/HD_a2/fun_plug.d/bin", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 141 entries */, 4096)  = 4080
getdents64(3, /* 135 entries */, 4096)  = 4088
close(3)                                = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 20 entries */, 4096)   = 664
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat("/mnt/HD_a2/fun_plug.d/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/mnt/HD_a2/fun_plug.d/etc", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 10 entries */, 4096)   = 368
close(3)                                = 0
fork()                                  = 25717
--- SIGCHLD (Child exited) @ 0 (0) ---
getpgrp()                               = 25713
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 25717
read(10, "", 4095)                      = 0
_exit(0)                                = ?
Process 25714 detached
/mnt/HD_a2 #

Last edited by msobon (2008-03-02 06:59:13)

Offline

 

#2 2008-03-02 13:26:10

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Getting LightHttp to Work!

Look for messages in /mnt/HD_a2/www/logs/error.log

Offline

 

#3 2008-03-02 16:05:52

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Getting LightHttp to Work!

My experience and also other reports on a dutch forum show that when you start with a clean setup, it should work. Did you have a funplug or other extra's running already? If so, remove them and start again but now with the lighttpd setup first

Offline

 

#4 2008-03-02 17:11:36

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: Getting LightHttp to Work!

My experience and also other reports on a dutch forum show that when you start with a clean setup, it should work. Did you have a funplug or other extra's running already? If so, remove them and start again but now with the lighttpd setup first

Offline

 

#5 2008-03-03 01:01:29

OctaneZ
Member
Registered: 2008-02-06
Posts: 8

Re: Getting LightHttp to Work!

I had to do a little debugging as well, as I tried to get PHP working immediately. The first thing I woudl do is change the fun_plug lighttpd.sh startup script and redirect STDOUT and STDERR.

Code:

#${SBINDIR}/lighttpd -f ${ETCDIR}/lighttpd.conf 1>/dev/null 2>/dev/null </dev/null                                                                              
${SBINDIR}/lighttpd -f ${ETCDIR}/lighttpd.conf 1>/mnt/HD_a2/out 2>/mnt/HD_a2/out </mnt/HD_a2/out

Then you can at least see what it is failing on.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB