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-16 18:48:35

Nussmischung
New member
From: Munich
Registered: 2008-03-16
Posts: 4

Problems with chroot Debian and lighttpd + php (php is not running)

Hi,
today i've managed to install chroot Debian etch. Then I installed ssh-server, and when i reboot the DNS-323 i have ssh access. So I think this works correct smile

Now i want to get lighttpd running with php extension.
I have already done this steps:

* apt-get install lighttpd
* apt-get install php4-cgi
* added cgi.fix_pathinfo = 1 in /etc/php4/cgi/php.ini
* edited /etc/lighttpd/lighttpd.conf ( http://trac.lighttpd.net/trac/wiki/Tuto … figuration )

My NAS has the IP 192.168.0.111, lighttpd listens on port 8080 (80 is used by d-link firmware).
When I enter the URL http://192.168.0.111:8080/ I see the lighttpd welcome page. But when I try to view the http://192.168.0.111:8080/phpinfo.php file which i created in /var/www, my browser downloads the php file..


I think the php4-cgi module doesn't work correct.. but why?


Thanks for your help,
Lukas

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB