User(s) browsing this thread: 1 Guest(s)
|
Faster PHP server CSI package
|
|
08-07-2009, 05:02 PM
|
|||
|
|||
|
RE: Faster PHP server CSI package
Hi,
1 questions (may sound stupid, sorry...): Can I use lighttpd to display my Skin on the TV (to replace sybhttpd) ? Thank! |
|||
|
08-07-2009, 09:18 PM
|
|||
|
|||
|
RE: Faster PHP server CSI package
lighttpd wont be able to directly replace sybhttpd as sybhttpd has many custom hacks inside it that make it not a normal web server. Beyond that the only thing that will run noticably faster through this server compared to sybhttpd/apache are php scripts and while they could be written, i'm not familiar with any php indexes.
journey4712 Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-07-2009, 09:47 PM
|
|||
|
|||
|
RE: Faster PHP server CSI package
Tried to install lighttpd but installation failed:
Checking for new version: up to date Checking Application Initializer profile: Valid Installing application from file /share/lighttpd.tar: /opt/sybhttpd/localhost.drives/HARD_DISK/Apps/AppInit/appinit.cgi: line 1: cannot open /share/Apps/lighttpd/appinfo.json: no such file Failed |
|||
|
08-07-2009, 10:20 PM
|
|||
|
|||
|
RE: Faster PHP server CSI package
Hmm, i double checked the packages they definatly contain appinit.cgi. You can manually install with the following process through telnet untill i figure out what could cause that error.
Code: mkdir /share/Apps/lighttpdjourney4712 Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-07-2009, 10:23 PM
|
|||
|
|||
RE: Faster PHP server CSI package
(08-07-2009 10:20 PM)journey4712 Wrote: Hmm, i double checked the packages they definatly contain appinit.cgi. You can manually install with the following process through telnet untill i figure out what could cause that error. Sometimes that might be causes by an unsupported tar format. For some reason the default tar on the NMT is very picky regarding it's files. I noticed a lot of (windows) programs create uncompressed tars which the default nmt's tar cant unpack. I use the nmt's tar or izarc which also creates good tar files. Tip for the user: can you try install telnet and then install the package? A newer busybox is present in telnet and dropbear with a better tar command. Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
|
08-07-2009, 11:03 PM
(This post was last modified: 08-07-2009 11:04 PM by DonGyros.)
|
|||
|
|||
RE: Faster PHP server CSI package
(08-07-2009 10:20 PM)journey4712 Wrote: Hmm, i double checked the packages they definatly contain appinit.cgi. You can manually install with the following process through telnet untill i figure out what could cause that error. That worked, thanks! Now I can start to compare the performance of UMC ![]()
|
|||
|
08-08-2009, 12:14 AM
(This post was last modified: 08-08-2009 01:01 AM by journey4712.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
In a quick test with firefox on the UMC front page, i saw a decrease from 1.3s to 0.8s to receive the response, a movie details page (with only 4 movies in the db, small test) went from 950ms to 300ms. Not too bad
![]() It looks like to use this in an automatic fashion UMC would need a new option in the mediacenter general tab for how to access mediacenter. To test locally i renamed umc.cgi to umc.php, replaced all occurances of umc.cgi with umc.php, and repointed localhost.drives:8883/HARD_DISK/ to localhost:9990/U_gaya/ EDIT: building a network based jukebox with apache compatible ticked works fine, just upload to Apps/AppInit/websites/U/ and access as http://localhost:9990/U/index.php I'd like to add quite impressive work from all of you on UMC. I had checked it out of svn a few times but never got it going before. The new release builds a friendly jukebox. @ger teunis thanks for the suggestion, i've re-tar'd the lighttpd package with the nmt busybox tar and replaced the -nmt2 package on the server, hopefully will fix that install issue. journey4712 Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-08-2009, 01:27 AM
|
|||
|
|||
RE: Faster PHP server CSI package
(08-08-2009 12:14 AM)journey4712 Wrote: In a quick test with firefox on the UMC front page, i saw a decrease from 1.3s to 0.8s to receive the response, a movie details page (with only 4 movies in the db, small test) went from 950ms to 300ms. Not too bad That sounds really great and is really promising! I think it could be even faster if we would try to optimize the php code ![]() I'm curious about the cache management issue and 1080p movies. Maybe lighttpd will make less problems with this issue!? |
|||
|
08-09-2009, 09:23 AM
|
|||
|
|||
|
RE: Faster PHP server CSI package
Looks like a great addition, but I got a question. How can I create a folder in the apps/appinit-directory? I tried using Samba (Win 7) and FTP and both tell me, that I don't own the rights to do so. Access denied. Seems that I missed something simple.
Want to try UMC using your alternative php-server-package on my NMT. Thanks for your effort in making those NMTs better and better. Tom |
|||
|
08-09-2009, 10:00 AM
(This post was last modified: 08-09-2009 10:26 AM by journey4712.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
EDIT: rewrote for simplicity after (rightfully, it was almost gibberish
)confusing tom92 belowSMB doesn't have the right file permissions to put the files there. FileManager from CSI suggested below is a great method. ftp might also have the right permissions. journey4712 Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-09-2009, 10:15 AM
|
|||
|
|||
|
RE: Faster PHP server CSI package
Uh euh
, well, will try . Did a work-around by using the File Manager included in the CSI which let me create the directory . But after adding UMC as web service I got stuck again. So I checked here and now I will try as you wrote above.Thanks for your help! Tom |
|||
|
08-09-2009, 10:17 AM
(This post was last modified: 08-09-2009 10:23 AM by journey4712.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
If you added the directory with filemanager i would stick with that route, easy and got the job done.
As to why its not working, not quite sure i will double check my installation vs the package and get back to you. Can you access the UMC jukebox from your PC browser? same url but replace localhost with the ip of your pch journey4712 EDIT: Hmm, no i tried from scratch and didn't need to do anything special. Interested what http://ip-of-pch:9990/U/index.php results in Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-09-2009, 11:36 AM
(This post was last modified: 08-09-2009 11:37 AM by Tom92.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
Got some answers but no solution.
Did a deep clean with following format of my hard_disk to get rid of all junk. Using CSI I installed first telnet then one of those subtitle-fonts, the file manager and via zip-file your php-package. No errors so far. Then I created the U-directory within the file manager and allowed all permissions. Before doing this I can't access it via ftp. Permissions were also only able to be changed using the file manager. Afterwards I copied my apache-ticked UMC jukebox (only 1 movie for testing purposes) into Apps/appinit/websites/U and tried to access via webbrowser: http://ip-of-pch:9990/U/index.php shows me "Connection failed" while http://ip-of-pch:9999/U/index.php works well and shows the introduction screen of UMC (the standard php-server) Putting http://localhost:9990/U/index.php into web services creates a "Request cannot be processed" error on PCH. Seems that the installation of the php-package failed in some way. Can I check some more on my side? Tom |
|||
|
08-09-2009, 12:37 PM
(This post was last modified: 08-09-2009 12:38 PM by journey4712.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
Hmm, if your getting connection failed then the server never started up. To verify that it can start, from telnet issue the following command
Code: /share/Apps/lighttpd/daemon.sh startYou should get a little output to verify its working. daemon.sh should have been called by appinit.cgi on installation, if it failed starting this should output why. successfull start looks something like Code: Trying 192.168.1.114...Automated TV Downloads | On-Demand Network Shares | Faster PHP (lighttpd+fastcgi+apc) PCH-A100 | PCH-C200 | XBMC HTPC | Sharp Aquos 42D62U | Logitech Z-5500 |
|||
|
08-09-2009, 01:09 PM
(This post was last modified: 08-09-2009 01:09 PM by Tom92.)
|
|||
|
|||
|
RE: Faster PHP server CSI package
Ok, when I start telnet the prompt looks like this:
Code: /opt/sybhttpd/localhost.drives/HARD_DISK #starting daemon.sh using Code: Apps/lighttpd/daemon.sh startCode: 2009-08-09 13:06:55: (log.c.75) server startedMaybe I should try installing telnet without using CSI? Will try that later and report. |
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]







![[+]](images/collapse_collapsed.gif)





, well, will try
. Did a work-around by using the File Manager included in the CSI which let me create the directory
. But after adding UMC as web service I got stuck again. So I checked here and now I will try as you wrote above.