[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[100/200/300/400] Lighttpd - 1.4.32 with PHP-5.4.10
02-20-2011, 07:56 PM
Post: #91
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Does this package include xdebug for PHP?

Callisto - Series and Movies Organizer for NMT
Find all posts by this user
Add Thank You Quote this message in a reply
02-21-2011, 02:35 AM
Post: #92
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
(02-20-2011 07:56 PM)quantum Wrote:  Does this package include xdebug for PHP?

Is it additional plugin/module?

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
02-22-2011, 04:49 AM
Post: #93
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Yes, it's a plugin.
http://www.xdebug.org/

Callisto - Series and Movies Organizer for NMT
Find all posts by this user
Add Thank You Quote this message in a reply
02-22-2011, 06:10 AM
Post: #94
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
(02-22-2011 04:49 AM)quantum Wrote:  Yes, it's a plugin.
http://www.xdebug.org/
Compiled and released.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
02-28-2011, 05:31 AM
Post: #95
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Removed from CSI. Available only via i-pkg.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
03-02-2011, 10:30 PM
Post: #96
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Is it possible to get the previous (default) webserver back installed?
I removed the Lighttpd because my NZBget was not reachable again through http://<popcorn>:8066

Thx!
Find all posts by this user
Add Thank You Quote this message in a reply
03-03-2011, 01:26 AM
Post: #97
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
(03-02-2011 10:30 PM)Bld- Wrote:  Is it possible to get the previous (default) webserver back installed?
I removed the Lighttpd because my NZBget was not reachable again through http://<popcorn>:8066

Thx!

Once you remove the lighttpd, the default C200 webserver will be active.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
03-03-2011, 07:18 PM
Post: #98
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
(03-03-2011 01:26 AM)vaidyasr Wrote:  
(03-02-2011 10:30 PM)Bld- Wrote:  Is it possible to get the previous (default) webserver back installed?
I removed the Lighttpd because my NZBget was not reachable again through http://<popcorn>:8066

Thx!

Once you remove the lighttpd, the default C200 webserver will be active.

Hm, thats what I did (I've got the A200).
I removed it with the CSI, rebooted, but the webserver is still unreachable?
The NZBget app itself works; when I copy a NZB to the share, the download starts.
Find all posts by this user
Add Thank You Quote this message in a reply
05-25-2011, 12:20 AM
Post: #99
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Hello vaidyasr!

It seems libpcre is needed by lighttpd, but is missing in your repository http://sourceforge.net/projects/c200ipkg/files/

Code:
sh-3.00# ipkg install   lighttpd
Installing lighttpd (1.4.28-1) to root...
Downloading http://sourceforge.net/projects/c200ipkg/files/lighttpd_1.4.28-1_mips.ipk
Installing libpcre (8.00-1) to root...
Downloading http://sourceforge.net/projects/c200ipkg/files/libpcre_8.00-1_mips.ipk
file_move: ERROR: failed to rename /tmp/ipkg-Y8qklK/libpcre_8.00-1_mips.ipk to /tmp/ipkg-Y8qklK/libpcre_8.00-1_mips.ipk: No such file or directory
Nothing to be done
An error ocurred, return value: -1.
Collected errors:
Failed to download libpcre. Perhaps you need to run 'ipkg update'?

Thanks!
Find all posts by this user
Add Thank You Quote this message in a reply
05-25-2011, 03:14 AM
Post: #100
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
I made lot of changes in the packages (just organizing to the correct section by taking the debian packages as example). I can't upload from my work. Now everything uploaded to the sourceforge. Please check and let me know.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to vaidyasr for this post
05-26-2011, 08:36 AM
Post: #101
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
I had to start from a fresh CSI + ipkg, but it's now ok.

Thank you!
Find all posts by this user
Add Thank You Quote this message in a reply
07-13-2011, 11:21 PM (This post was last modified: 07-13-2011 11:42 PM by The Glimmerman.)
Post: #102
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Maybe a stupid question.
I installed ipkg and then

php5
lighttpd
and php5-fcgi (because http://PCH-C200-IP:9999/local_web/ was not working)

And Finally its working.
But here are a few questions.

edit:
I found the document root. but I cannot create a folder there to put my website in it.

edit: scratch these
Code:
in Apps\local\share\www\lighttpd i see a index.html but when I go to http://PCH-C200-IP:9999 nothing.
Where is the document root.

How can I host multiple websites? (home use only)

Thanks in advance

Michel
Find all posts by this user
Add Thank You Quote this message in a reply
07-14-2011, 02:44 AM
Post: #103
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
(07-13-2011 11:21 PM)The Glimmerman Wrote:  Where is the document root.

The document root will be /share/Apps/AppInit/websites

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to vaidyasr for this post
07-15-2011, 09:18 PM
Post: #104
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
But I cannot add a folder. Write protected.
So how can I add my custom website.

Thanks in advance.
Find all posts by this user
Add Thank You Quote this message in a reply
08-15-2011, 06:08 AM
Post: #105
RE: Lighttpd - 1.4.28 with PHP-5.2.17 for C200/A200 - Updated 11th Feb
Hello,

I have a problem running lighttpd installed via ipkg.

At first, despite of installing lighttpd nothing happened - that is, now lighttpd process was started. I found out, that the problem was with startup script /usr/local/etc/init.d/80lighttpd.sh. I changed line 14 from

test -x $DAEMON || exit 0

to

test -x ${INSTALL_ROOT}/${DAEMON} || exit 0

because otherwise script was checking for presence of lighttpd in /sbin directory while and exiting when it was not there, while lighttpd is in /usr/local/sbin.

After that lighttpd daemon is being started but original webserver still runs :-( Here is the list of running processes:

Code:
sh-3.00# ps
PID   USER     TIME   COMMAND
    1 root       0:01 init
    2 root       0:00 [kthreadd]
    3 root       0:00 [ksoftirqd/0]
    4 root       0:00 [events/0]
    5 root       0:00 [khelper]
   35 root       0:00 [kblockd/0]
   36 root       0:00 [ata/0]
   37 root       0:00 [ata_aux]
   40 root       0:00 [khubd]
   42 root       0:00 [kseriod]
   54 root       0:00 [pdflush]
   55 root       0:00 [pdflush]
   56 root       0:00 [kswapd0]
   57 root       0:00 [kprefetchd]
   58 root       0:00 [aio/0]
   59 root       0:00 [cifsoplockd]
   60 root       0:00 [cifsdnotifyd]
  662 root       0:00 [scsi_eh_0]
  672 root       0:00 [scsi_eh_1]
  702 root       0:00 [scsi_eh_2]
  703 root       0:00 [usb-storage]
  727 root       0:00 udevd
  728 root       0:05 [sigmblockd]
  838 root       0:00 udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0
  845 root       0:00 [sigm_write_cach]
  896 root       0:03 mounter
  897 root       0:00 cdstatus
  935 root       0:04 /upnp/upnpapp
  936 root       0:00 [kjournald]
  937 root       0:00 /opt/sybhttpd/sybhttpd /opt/sybhttpd
  940 root       0:00 mDNSNetMonitor
  941 root       0:00 /upnp/upnpapp
1010 root       0:00 /bin/sh ./appcontrol
1012 root      93:23 syb_framework
1032 root       0:00 nmt_scannerd
1036 root       0:00 ipmonitor
1042 root       0:00 crond -l 20
1067 root       0:00 telnetd -l /bin/sh
1168 root       0:00 nmbd -D
1335 root       0:00 [kjournald]
1369 root       0:00 [kjournald]
1597 nobody     0:00 sbin/lighttpd -f etc/lighttpd/lighttpd.conf -m lib/lightt
1605 root       0:00 SCREEN -dmS pyload /usr/local/bin/python2.5 /usr/local/sh
1630 root       0:04 /usr/local/bin/python2.5 /usr/local/share/pyload/pyLoadCo
1644 root       0:16 ./nmtdaemon
1651 root       0:00 pure-ftpd (SERVER)
1669 daemon     0:00 /usr/sbin/portmap
1672 root       0:00 [nfsd4]
1673 root       0:00 [lockd]
1674 root       0:00 [rpciod/0]
1675 root       0:00 [nfsd]
1677 root       0:00 /usr/sbin/mountd
1679 516        0:00 /usr/sbin/statd
1696 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1697 root       0:01 ./msUPnP-mips --port 8088
1700 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1701 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1702 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1703 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1704 nobody     0:00 ./httpd -d /nmt/apps/server -f /nmt/apps/server/httpd.con
1708 root       0:00 ./mDNSrespd-mips -n PCH-C200 myihome -t _difi._tcp. -p 80
1710 root       0:00 ./mDNSrespd-mips -n PCH-C200 myihome (SMP8634 Media Serve
1717 root       0:02 ./ms-mips start
1735 root       0:00 /nmt/apps/bin/smbd -D
1736 root       0:00 /nmt/apps/bin/smbd -D
1745 root       0:00 /nmt/apps/bin/transmission-daemon -g /share/.transmission
1761 nmt        0:00 /nmt/apps/bin/nzbget -D -c /share/.nzbget/nzbget.conf
1776 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1778 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1779 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1780 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1781 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1782 nobody     0:00 ./httpd -d /nmt/apps/server/php5server/ -f /nmt/apps/serv
1815 root       0:00 [kjournald]
25204 root       0:00 /nmt/apps/bin/smbd -D
25250 root       0:00 /bin/sh
25251 root       0:00 ps

It seems that

$APPINIT webserver_disable && sleep 1

in line 75 which is expanded to

/share/Apps/AppInit/appinit.cgi webserver_disable && sleep 1

does not stop webserver. I tried to run this command manually, it executes without any error messages but webserver is not stopped.

I will be grateful for any help.

k0liber
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [400] how to convert scripts from c200 (html+php) to a400 (javascript or bash or ???) ? dmhwsm 0 438 02-10-2013 05:39 PM
Last Post: dmhwsm
  [200] Subs downloader (series) - PHP alext82 1 1,064 05-04-2012 11:33 AM
Last Post: BeeVee
  [200] PHP with GD functions XL92 2 1,626 09-09-2011 09:59 PM
Last Post: XL92
Music [200] [beta] NMT Cloudplayer - php html5 music streamer ramishi 5 2,897 08-19-2011 03:08 AM
Last Post: ramishi
  [200] php get response from url Arie B 3 3,090 04-02-2011 07:49 PM
Last Post: Arie B
  [200] php/html play files Arie B 5 2,357 03-31-2011 10:35 PM
Last Post: Arie B
  [200] issue with popcorn original php scripts rafiki30 2 2,269 03-25-2011 12:51 PM
Last Post: rafiki30
  [200] PHP code speed up VYP 5 2,444 01-21-2011 01:18 PM
Last Post: VYP
  [200] add php files Arie B 3 2,424 01-06-2011 06:10 PM
Last Post: Arie B
  [200] C200 - PHP Support tiefling 1 1,360 09-17-2010 09:16 PM
Last Post: dc11ab

Forum Jump: