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 2009-04-25 19:37:14

sil51
Member
From: France
Registered: 2009-04-25
Posts: 19
Website

Lighttp doesn't start automatically ??

Hi,

I'm a fresh user of the DNS-323 device, with 2 x 1To HDs in RAID 1 mode.

I've installed fun_plug 0.5, lighttpd and php, with no others apps (except D-Link BT app).

So, it's working great, but when I reboot the device, the http access (on original port 8080) in not working anymore. I don't understand why.... sorry, I'm newbie in unix system.

I can confirm that in the /ffp/start/ dir, the (unmodified) file lighttpd.sh is present
in /ffp/etc/ dir, the lighttpd.conf is present too, installed like this :
# cd /ffp/etc
# cp examples/lighttpd.conf .

To start the lighttpd, I need to connect throw PuTTY to manually run the server :
# sh /ffp/start/lighttpd.sh start

Everything looks like to start at every reboot of the unit, except lighttpd .... so why?

I find this forum really great and I hope someone coulde help, because after many search in the forum, I havent't found responses that could help me.

Bye

Last edited by sil51 (2009-04-26 05:02:12)


-=[ Sil 51 ]=-
DNS-323 / Firmware 1.09 / 2 x SAMSUNG Spinpoint F1 1To HD103UJ / FFP 0.5

Offline

 

#2 2009-04-25 22:37:05

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Lighttp doesn't start automatically ??

sil51 wrote:

To start the lightffp, I need to connect throw PuTTY to manually run the server :
# sh /ffp/start/lighttpd.sh start

Everything look like to start at every reboot of the unit, except lighttpd .... so why?

Sounds like the executable bit on the lighttpd.sh file is not set. Try this;

cd /ffp/start
chmod +x lighttpd.sh


Bob Blackwell
Pickering, ON

Offline

 

#3 2009-04-26 00:38:41

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Lighttp doesn't start automatically ??

sil51 wrote:

Everything look like to start at every reboot of the unit, except lighttpd .... so why?

@rcblackwell has almost certainly identified your problem.  Don't assume that everything in /ffp/start actually runs on boot.  hint: look in ffp.log (in the root of your drive) to have a confirmation of what is running on bootup.  As has already been suggested the permissions on the script which runs lighttpd are probably not set to execute (run), therefore when you reboot your box the httpd is not running.  look up the command 'chmod' either 'man chmod' at your telnet prompt or try a google search for 'chmod manpage' for usage.

Offline

 

#4 2009-04-26 04:45:50

sil51
Member
From: France
Registered: 2009-04-25
Posts: 19
Website

Re: Lighttp doesn't start automatically ??

Thank you rcblackwell, you were right, lighttpd.sh needed chmod +x !

luusac, ffp.log returned :

* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive

I'm very newbie in this system, but the log is clear about what start or not, i didn't know that before.
I'm surprised it wasn't executable by default, and not specified in the howto, maybe it is the unix default way.

So I can see that many other *.sh aren't launched, should I change something else from the log below?

Anyway, the lighttpd starts at reboot now, thank you again for you quick help !

Last edited by sil51 (2009-04-26 04:47:45)


-=[ Sil 51 ]=-
DNS-323 / Firmware 1.09 / 2 x SAMSUNG Spinpoint F1 1To HD103UJ / FFP 0.5

Offline

 

#5 2009-04-26 12:22:03

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Lighttp doesn't start automatically ??

your ffp.log looks normal, only the services/daemons that Fonz has set to execute by default are running - not everybody uses their box as a httpd, so that is why it is disabled by default.  It is the same with all of those other scripts that are listed as inactive.  The only thing that I would suggest that you do (seeing as you asked) is disable telnet and enable ssh.  ssh gives you the same console / command line access as telnet, but does so securely (telnet is insecure - passes username and passwords unencrypted).  See the how to for ffp on how to do this.

Offline

 

#6 2009-04-26 18:37:28

sil51
Member
From: France
Registered: 2009-04-25
Posts: 19
Website

Re: Lighttp doesn't start automatically ??

luusac wrote:

The only thing that I would suggest that you do (seeing as you asked) is disable telnet and enable ssh.  ssh gives you the same console / command line access as telnet, but does so securely (telnet is insecure - passes username and passwords unencrypted).  See the how to for ffp on how to do this.

Thanks for the advice, so I'm now logging into the dns with ssh, top security !


-=[ Sil 51 ]=-
DNS-323 / Firmware 1.09 / 2 x SAMSUNG Spinpoint F1 1To HD103UJ / FFP 0.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB