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-30 04:58:56

irios
New member
Registered: 2008-03-30
Posts: 2

Yet another lighttpd + php thread....

I've been struggling with getting lighttpd and php to work for over a day now (yes, almost 20 hours wasted on useless fumbling and stumbling)

I've managed to get fun_plug 0.4 lighttpd to work fine, but I'm not able to get php to work.
I've tried using the fun_plug 0.5 experimental version as well, but still no luck. (I'm not even able to get lighttdp running on 0.5 grrrrr)

I must have followed the tricks and solutions of at least 20 threads here, and yet none of them provide a working solution. Most of them dont even provide half a solution, they just give you small clues, and bits and pieces of things you might wanna do to get this working.

I have very little knowledge of *nix stuff, but I'm very skilled at windows stuff... I figured this should be fairly easy to do, but this is clearly not the case.

It would be nice if someone could write a -proper- step by step guide on how to do this. I would be very thankful, and I'm sure lots of other people would be as well smile

Last edited by irios (2008-03-30 04:59:41)

Offline

 

#2 2008-03-30 12:51:10

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

Re: Yet another lighttpd + php thread....

It's hard to solve your problem if you don't tell us what you did.

It's basically two steps:

1. Install php and all the dependencies (openssl, zlib, libxml2, libiconv, maybe more). Test in a telnet session with 'php-cgi -v'. If all is fine, it should print 'PHP 5.2.5 (cgi-fcgi) ...'.

2. Adjust lighttpd config. If you're using the default config from /ffp/etc/examples (cp /ffp/etc/examples/lighttpd.conf /ffp/etc), you need to uncomment 6 lines  (i.e. remove '#' chars) using your favorite editor (with unix support!):

Code:

...
                               "mod_fastcgi",
...
## php support
## uncomment the following lines and the mod_fastcgi module above
fastcgi.server = ( ".php" => ((
    "bin-path"  => "/ffp/bin/php-cgi",
    "socket"    => "/tmp/php-cgi.socket",
    "max-procs" => 2
)))

You can test it with a small file like this (/mnt/HD_a2/www/pages/phpinfo.php):

Code:

<?php
phpinfo();
?>

Offline

 

#3 2008-03-30 13:16:35

irios
New member
Registered: 2008-03-30
Posts: 2

Re: Yet another lighttpd + php thread....

Hi fonz, thanks for getting back to me:)

Basically I've tried any little tip and clue I could find in this forum, this is why i didnt list all the things I've tried becuase it would simply be too many things to write here.

A few minutes ago I finally managed to get it working tho. I followed the steps found in the readme text here http://www.inreto.de/dns323/fun-plug/0.3/

I didnt realize there was a completely different readme for each version, so when I tried installing 0.3 instead i quickly found out that it works smile

I even managed to get gdlib working now. Thanks again fonz.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB