Jump to content

lighttpd Help?


CDLehner

Recommended Posts

I'm getting my ass kicked trying to set-up lighttpd. Let me tell you where I am to this point.

 

I've installed the package by doing

 

wget -O /tmp/unweb.tgz http://www.tcpatools.com/bubba/unrai...i386-bubba.tgz

 

and then

 

installpkg /tmp/unweb.tgz

 

and that appears to be fine; I can get to http://tower:89

 

The problem is when I try to do the web-server config, on lighttpd's first page. Where it asks for the dir for the web-server files, I've tried a couple of options, including just the example /mnt/disk1/www/...which I assume would just put the http, php, xml, etc files on disk1? And I choose a port of 81, and hit save configuration and NOTHING appears to happen!

 

I assume...if it's "working" correctly...I should be able to see those http, php, xml config files being generated somewhere?? But I get nothing!!

 

Any thoughts on what I'm missing?

 

CD

Link to comment

OK; new package, same result. At least as far as I can tell. Obviously I'm doing something wrong still, because I try to save this configuration (yes, I realize that's just an example...but what the hell; put it on disk1 at this point...anything to get it to "work") and it just does NOTHING. Not that I know what it's supposed to do, but I assume it should do SOMETHING; create some files, go to the next step...what? Or should I say WTF!?  ???

 

untitled1-6.jpg

 

CD

Link to comment

Totally confused  ??? ??? ???

 

Restarted, can't hit :81...and now can't hit :89

 

Didn't I read somewhere that you needed a re-install in the go script, so that you don't lose lighttpd after reboot?

 

I have yet to see :81. I'm telling you, when I set-up a path for the web-server files (/mnt/disk1/www/) and the port, and click save configuration...it's like DEAD. And I never get the option to restart web server. I'm missing something?

 

CD

Link to comment

Bubba, first of all...thanks for the help. I know I'm stumbling through this.

 

I can't even get back to lighttpd on port :89 now. When I DL and install the package, I'm fine; but anytime I have to reboot the server (the unRAID server), I lose it. I thought there was a line that needed to be put in the go script to re-install on reboot?

 

I might as well ask this now, because it'll be coming soon enough: the whole reason for installing lighttpd in the first place, is I'm trying to serve the Roksbox channel on a Roku. It keeps looking for an .xml file, and I assume that at some point along the way...if I'm doing things right...that the lighttpd set-up will produce one? Lighttpd produces .xml (and other files obviously), I point Roksbox at .xml; is that how this kind of http serving works?

 

CD

Link to comment

I blew things out, started over...same result of course. I can DL and install the package. I can get to :89; but when I do the set-up, I can never seem to get it to "work".

 

I assume from what I've read so far, after I put in a dir for the web server files (and until I'm told different, or understand what's going there...I'll just use the example of /mnt/disk1/www/) and a port number (I've been using 81), hit save configuration...I should then have the option to restart the web server? And that's when I should be able to access //tower:81? Well...the restart web server button has never un-greyed itself...and I can never hit the port I've assigned.

 

Man, I'm just not sure what I'm doing wrong here?

 

CD

Link to comment

Well...I did before, and then tried to save config; but I never tried to hit port 81.

 

So...I should mkdir /mnt/disk1/www/...then try to save the config, then try to hit :81?

 

Don't I have to restart the web server first? I'm telling you...I'll try again, but I NEVER get that restart web server button.

 

CD

Link to comment

 

So...I should mkdir /mnt/disk1/www/...then try to save the config, then try to hit :81?

 

 

It will ALWAYS FAIL if the directory you put as the home for the web documents does not exist.  Lighttpd will not stoart if the home directory does not exist.

 

 

Link to comment

Seriously, I might have to just shitcan this. I could probably have bettered the world with the energy this is starting to eat up.

 

I've been doing this a while, but I'm still pretty green when it comes to unRAID, "linux", the idea of web-servers, etc.

 

I used to have Syabas Popcorn Hours, and for those I used a GUI called YAMJ. IIRC, you'd run the thing and it would generate the media files for the "enhanced" interface to the PCH; including .xml files. You point PCH at it, it reads the files, bingo. I assumed this was going to work in the same sort of way.

 

Now, I have this Roku (not my only streamer, I'm just saying for this project), and they have a private channel called Roksbox...where if you install a web server, it can push local files to it. They recommend Mongoose, if you're a noob, and Apache if you have a little more experience.

 

I remember guys using Apache to server their PCHs, so I contacted one...who I remembered had gotten Bubba's help to set it up directly on his unRAID box...because I wanted to do the same thing in this case. He said for "Apache" he used lighttpd...so that's why I started with it.

 

I assumed lighttpd was the same kind of file-server that I needed, to push files to the Roksbox on Roku. Am I wayyy off here? The reason I keep talking about generating an .xml file, is because in the Roksbox set-up it asks for a server location...I assume that's going to be //tower:81 (you know, if I ever get it working)...and a location for your media (so that's like my user share of movies); but when I try launch Roksbox, it says "looking for .xml", and obviously never finds any thing and stops. So silly me...I assume it needs an .xml somewhere?

 

If this config I'm trying to do doesn't generate ANYTHING...why do I have to pick a dir? Why do I have to say /mnt/disk1/www/; if nothing goes there, why do I have to tell it to be there?  ???

 

I'm sorry; I know you guys probably don't know, nor give two shits about Roksbox...but I was under the assumption that any http-based file-server would do...and lighttpd was an http server; in fact, isn't it like the http server? So what the hell am I missing here? Why can I never get the "restart" button to show? Why can I never see a page on :81??

 

CD

Link to comment

 

So...I should mkdir /mnt/disk1/www/...then try to save the config, then try to hit :81?

 

 

It will ALWAYS FAIL if the directory you put as the home for the web documents does not exist.  Lighttpd will not stoart if the home directory does not exist.

 

 

 

Well...I did mkdir /mnt/disk1/www/ (and confirmed the dir was there) and then put /mnt/disk1/www/ as my web-server files location, and port 81 and I still get the same result. I mean, you did say I needed to restart the web-server before I could access //tower:81, right Bubba? But I never get that option allowed; that button stays greyed-out.

 

Let me ask yet another in my series of dumb questions: on that lighttpd set-up page, it says

 

"If you are reading this page, then the unRAID web Management Portal is installed and working.

 

If you want to also run a personal web server separately from the management portal, this page will allow you to make some basic configuration changes to create a personal web server."

 

What does that mean exactly, personal web server? It almost sounds like "hey, if all you want is lighttpd...you're all set. But if you also (it says also) want a personal web server...do this other thing". Do I even want this personal web sever also??

 

Seriously; let me make this clear...all I want to do is push files to this stupid, $60 Roku!!! I mean, I'd get help on the Roku boards, but people there are like un-what? And people here are probably like "dude, Roku is child's play". Ugh  ???

 

CD

Link to comment

Did you even TRY going to http://tower:81 ??

YES; about 100 times at this point. Interesting about IE; should I try it with Firefox??

 

I'd almost like to "start over"; does that make sense? What would I do; delete custom out of my /root and re-DL and install?

 

CD

 

OK, well...it worked just fine in FF. Put the path in, port in...save config, restart button lit up, and gave me my link to port :81. Damn IE. Of course Bubba's right; it's not like there's anything in /mnt/disk1/www/...so I still need to figure out the whole web-server aspect. But I can probably get that help at Roku...if I ask how to set up Roksbox using lighttpd.

 

Unless someone here can school me?

 

CD

Link to comment

OK, so...you didn't think the dumb questions were going to end there, did you  ;)

 

Alright; do I still need to install Apache like on lighttpd? Like Apache is the "media-server" and lighttpd is the "platform" you install it on? I still just don't get this; this Roksbox wants an .xml file, and I just don't know what's suppose to generate that??

 

I mean, I guess I could go ask in the Roku forum, but isn't the answer obviously supposed to be "your media server"! I just want to see if I'm understanding lighttpd before I go asking a dumb question there too.  ???

 

CD

Link to comment

OK, well...it worked just fine in FF. Put the path in, port in...save config, restart button lit up, and gave me my link to port :81. Damn IE. Of course Bubba's right; it's not like there's anything in /mnt/disk1/www/...so I still need to figure out the whole web-server aspect. But I can probably get that help at Roku...if I ask how to set up Roksbox using lighttpd.

 

Unless someone here can school me?

 

CD

 

Welcome to the wonder world of IE.  I use firefox and Chrome for 95% of my stuff because it seems like S*** like this happens less.

Link to comment

OK, well...it worked just fine in FF. Put the path in, port in...save config, restart button lit up, and gave me my link to port :81. Damn IE. Of course Bubba's right; it's not like there's anything in /mnt/disk1/www/...so I still need to figure out the whole web-server aspect. But I can probably get that help at Roku...if I ask how to set up Roksbox using lighttpd.

 

Unless someone here can school me?

 

CD

 

Welcome to the wonder world of IE.  I use firefox and Chrome for 95% of my stuff because it seems like S*** like this happens less.

 

Yeah; big thanks to JM2005 for mentioning it. Otherwise, who knows how long I would have been trying with no luck. As it was, I was doing everything right for 2 days.

 

CD

Link to comment

Having a web-server installed is similar to having an program that can prepare an index for a book.  It does not write the book.  It will send to a web-browser pages that YOU put in the folders you ask it to.  It will not write those web-pages, nor create the folders.  It is an assist in the sending of those pages to the browser, nothing more.

 

If you are looking for a set of web-pages to accomplish a given task, great... there are many that when put in a directory "served" by a web-server will present information in a web-browser. 

 

Apache is not a media server, nor is lighttpd, they are web-servers.  The send web pages, in folders you point them to in response to requests for those pages from your web-browser.

 

You need to find a web-application that will send web-pages and media content in response to the requests from your Roku.  That is your first need.  Then, install that application in a folder "served" by a web-server.  Then configure that server to use that folder and respond to requests on a specific "port" on the unRAID server.

 

I think you missed the big picture...  You've hired an editor for the book, and asked them to prepare an index, but have not written the book.

 

Joe L.

Link to comment

Thanks Joe; that makes sense, and was what I was thinking (afaid of). What I still don't understand though, is why the Roksbox site just says download Monsoon or Apache and you're all set...since they're not media servers. Also, I know people use "Apache" to serve media to Popcorn Hours; how did they do that?

 

Like you said, I'm missing part of the big-picture here; but I don't know what I don't know. I'm trying to find like maybe the one other person who's set-up Roksbox to an unRAID server, to fill in the gaps.

 

CD

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...