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 2012-12-23 02:50:40

mendia
New member
Registered: 2012-12-23
Posts: 2

DNS320 error lighttpd /etc/server.pm

Hello,

Conf DNS320l
install fun-plug 0.7 = OK
install pkg lighttpd/openssl/curl/php/libiconv = OK
cp lighttpd.conf_dns320 to lighttpd.conf
change kickwebs.sh to kickwebs_dns320.sh (also desactived kickwebs.sh)

but as
http://dns323.kood.org/forum/viewtopic.php?pid=40473 (midsnipe)
I have "error 02001002:system library:fopen:no such file or directory /etc/server.pem

Result ps aux | grep light :
root 5139 /usr/sbin/lighttpd-angel -D -m /usr/lightly_lib -f /etc/lighttpd/lighttpd.conf
root 5140 /usr/sbin/lighttpd -D -m /usr/lightly_lib -f /etc/lighttpd/lighttpd.conf
root 5305 grp light

In post 40473#74#75, i don't find to fix. What i have to do please ?

thanks.

Offline

 

#2 2013-01-02 11:58:43

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: DNS320 error lighttpd /etc/server.pm

Check your lighttpd.conf for the option "ssl.pemfile". It defaults to "server.pem", and apparently the default folder is /etc, where it apparently does not exist.

You can change the option to include an absolute path:

Code:

ssl.pemfile = "/ffp/etc/server.pem"

Please note that this file is only required if you set up your lighttpd server for HTTPS access. If you don't need this, disable SSL in the config file by uncommenting the relevant options.

Offline

 

#3 2013-01-07 13:46:29

mendia
New member
Registered: 2012-12-23
Posts: 2

Re: DNS320 error lighttpd /etc/server.pm

Hello and thank you for your answer.

I had a lot of trouble setting up fun_plug 0.7 on DNS320L.
I explain to anyone facing the same:

1. ssh key server error
At each restart nas, the rights of répertoir + files /ffp/etc/ssh automatically modified, so the ssh keys are not accessible.
solution:
I force the change of rights in the conf file fun_plug with:
"# First:" WARNING: UNPROTECTED PRIVATE KEY FILE! [..] "
# Then "/ffp/var/lib/sshd must be owned by root and not group or world-writable."
# See http://dns323.kood.org/forum/viewtopic.php?id=3360
echo "* EDIT 05/06/2011 DAN - Restrict access to files ssh ssh let run"
chmod 0600 /ffp/etc/ssh/ssh_host_rsa_key
chmod 0600 /ffp/etc/ssh/ssh_host_dsa_key
chmod 0600 /ffp/etc/ssh/ssh_host_ecdsa_key
echo "* END EDIT DAN"

2. error /etc/server.pem - ssl key
The répertoir and the file does not exist. Error if I point out original ssl key (native OS /etc/server_v4_egiga0.pem).
solution:
I create a new key in fun_plug SSL folder /ffp/etc
I point it in lighttpd.conf:
ssl.pemfile = "/ffp/etc/server.pem"

After these changes, everything is OK.
Only think is I can't configurate lighttpd.conf to make webdav enable with fun_plug...
Thank you in advance

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB