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 2010-12-14 16:19:29

stefanth
Member
Registered: 2010-12-14
Posts: 63

Can not get php going

Dear Sir or Madame

I can not get the php working on a homepage in my NAS, DNS-320


I have downloaded and installed the fonz flug
I have installed the php packed

Code:

root@Btest:/mnt/HD/HD_a2/ffp/tmp# wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/php-5.2.9-1.tgz
root@Btest:/mnt/HD/HD_a2/ffp/tmp# funpkg -i php-5.2.9-1.tgz

root@Btest:/mnt/HD/HD_a2/ffp/tmp# wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/All/curl-7.19.4-1.tgz
root@Btest:/mnt/HD/HD_a2/ffp/tmp# funpkg -i curl-7.19.4-1.tgz

root@Btest:/mnt/HD/HD_a2/ffp/tmp# lighttpd -v
lighttpd-1.4.22 (ssl) - a light and fast webserver
Build-Date: Apr 13 2009 14:27:12

root@Btest:/mnt/HD/HD_a2/ffp/tmp# php -v
PHP 5.2.10 (cli) (built: May 19 2010 20:36:25)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

root@Btest:/mnt/HD/HD_a2/ffp/tmp# curl -V
curl 7.19.4 (arm-unknown-linux-uclibc) libcurl/7.19.4 OpenSSL/0.9.8h zlib/1.2.3
Protocols: tftp ftp telnet dict http file https ftps
Features: Largefile NTLM SSL libz

I also made the copy (and changed to the correct path in the conf file, adding HD/ to the paths)

Code:

root@Btest:/mnt/HD/HD_a2/ffp/tmp# cp ../../ffp/etc/examples/lighttpd.conf ../../ffp/etc

I have the following html page in the www/pages directory

Code:

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 
 http:Hello World<br><br>
 
  <?php
  
  echo "php:hello world";
  
  phpinfo() ;
 ?>

 
 </body>

</html>

The problem is that the the php commands are never executed when I access the html page (I only see "htttp:Hello World" on the screen),
does anyone knows why ?

Also, the php-v command return (cli) which have been indicated in other posts on the forum is incorrect, it should be (fast-cgi), if this is the problem how do I change this?

Regards Stefan

Offline

 

#2 2010-12-14 23:50:16

stefanth
Member
Registered: 2010-12-14
Posts: 63

Re: Can not get php going

Dear all

Seems that the misstake I did was to name the html page to "index.html" instead of "index.php"

Regards Stefan

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB