unRAID-Web - complete web server w/ php for unRAID


Recommended Posts

  • 2 weeks later...
  • Replies 280
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Just installed this, firstly i have to say WOW, really simple to install and great way to manage everything from the one place.

 

I have a couple of problems; hopefully someone will be able to help ;)

 

I added my RUTorrent files to the extensions folder; it all works good but the button in the extensions menu has no text, the link is there. I have tried clearing cookies, rebooting the server etc but its staying the same. (I'm using the latest firefox)

 

also I wanted to update to the latest ver. of Ajaxplorer, i have it installed but it stalls on the splash screen.

 

Any help would be appreciated

Link to comment

I added my RUTorrent files to the extensions folder; it all works good but the button in the extensions menu has no text, the link is there. I have tried clearing cookies, rebooting the server etc but its staying the same. (I'm using the latest firefox)

 

Just solved this one by copying an extension.dat file from another package and editing it

 

edit: both problems now solved ;D

Link to comment
  • 1 month later...

Just log into unRAID, and run:

wget -O /tmp/unweb.tgz http://www.tcpatools.com/bubba/unraidweb-0.1.04-i386-bubba.tgz ;  installpkg /tmp/unweb.tgz

 

I'm running 4.4.2 and trying to install this but I get "package is corrupt /failed 'gzip -L /tmp/unweb.tgz".  Can someone point me in the right direction?

Link to comment

Just log into unRAID, and run:

wget -O /tmp/unweb.tgz http://www.tcpatools.com/bubba/unraidweb-0.1.04-i386-bubba.tgz ;  installpkg /tmp/unweb.tgz

 

I'm running 4.4.2 and trying to install this but I get "package is corrupt /failed 'gzip -L /tmp/unweb.tgz".  Can someone point me in the right direction?

Can you ping

http://www.tcpatools.com

from your telnet prompt?

 

If not, do you have a DNS Server and Gateway defined in your unRAID settings page? Perhaps you are unable to use "wget" to get the file and as a result, the un-zip fails on the error result.

Link to comment

 

I'm running 4.4.2 and trying to install this but I get "package is corrupt /failed 'gzip -L /tmp/unweb.tgz".  Can someone point me in the right direction?

Can you ping

http://www.tcpatools.com

from your telnet prompt?

 

If not, do you have a DNS Server and Gateway defined in your unRAID settings page? Perhaps you are unable to use "wget" to get the file and as a result, the un-zip fails on the error result.

Actually Ping is working now... Telnet and ran "wget -O /tmp/unweb.tgz http://www.tcpatools.com/bubba/unraidweb-0.1.04-i386-bubba.tgz ;  installpkg /tmp/unweb.tgz" worked fine, not sure why it wasn't running from the console.  On to learning and exploring  linux and unRaid  Thanks for your help.
Link to comment

 

I'm running 4.4.2 and trying to install this but I get "package is corrupt /failed 'gzip -L /tmp/unweb.tgz".  Can someone point me in the right direction?

Can you ping

http://www.tcpatools.com

from your telnet prompt?

 

If not, do you have a DNS Server and Gateway defined in your unRAID settings page? Perhaps you are unable to use "wget" to get the file and as a result, the un-zip fails on the error result.

Ping not working I have the DNS server and the Gateway defined automatically on the unRaid settings page.

 

Downloads the file from your computer and put it on your usb stick (/tmp/unweb.tgz http://www.tcpatools.com/bubba/unraidweb-0.1.04-i386-bubba.tgz)

 

just change the command to "installpkg /boot/whateverfolderyouhaveitin"

 

IE: create a tmp file on your USB, put the unraidweb file in it, boot up unraid and type:

 

"installpkg /boot/tmp/unraidweb-0.1.04-i386-bubba.tgz"

Link to comment
  • 1 month later...

Hello Bubba, (& Stokes, as this will resolve your problem)

 

there seems to be a small error that results in big consequences when trying to setup the personnal interface.

 

According to /boot/custom/lighttpd/setup/index.html

 

it is trying to append to the following file:

 

/boot/config/lighttpd/lighttpd.conf.include

 

This should actually be:

 

/boot/custom/lighttpd/lighttpd.conf.include

 

The results is that the file does not get created/appended because in most cases that folder does not exist and therefore the personnal web server does not work.

 

In the meantime for the people having this problem, you can simply do the following:

 

mkdir /boot/config/lighttpd

 

Then follow the setup and save the configuration (http://tower:89/setup'>http://tower:89/setup). In most instances for one reason or another, when you try to restart the webserver you might get INTERNAL ERROR 500. That's ok, just do the following:

 

mv /boot/config/lighttpd/lighttpd.conf.include /boot/custom/lighttpd/

 

That's it, reboot your whole server and install bubba's package again, you should be good to go by going to http://tower:[theportuconfigured]

 

 

PS: BATFINK - Use Firefox, IE doesn't seem to work in saving the configuration.

 

Thank you!  Works perfect. 

 

And thanks very much Bubba for creating it!

Link to comment

Here's the set of commands I use in the unMENU .conf page for unRAID-web to install it.  There are fixes needed in three files.

One you described.  The other two have to do with the unMENU extension.

 

SCRIPT_DIRECTORY=/boot/unmenu

# since we need to fix things in three files, un-gzip/tar the files, edit them, then re-tar/gzip.

cd /boot/packages

mkdir -p /tmp/unmenuTMP

( cd /tmp/unmenuTMP ; gzip -dc | tar-1.13 xf - ) <unraidweb-0.1.04-i386-bubba.tgz

# edit the index.php file to deal with not having current directory in PATH

sed -i "s~cmd .= ' \" . \$a->add_on . \"~cmd .= ' .\/\" . \$a->add_on . \"~" /tmp/unmenuTMP/boot/custom/lighttpd/extensions/unmenu/index.php

sed -i "s~/boot/unmenu_final~$SCRIPT_DIRECTORY~" /tmp/unmenuTMP/boot/custom/lighttpd/extensions/unmenu/extension.conf

sed -i "s~boot\/config~boot\/custom~" /tmp/unmenuTMP/boot/custom/lighttpd/setup/index.php

( cd /tmp/unmenuTMP ; tar-1.13 cf - * | gzip ) >unraidweb-fixed-0.1.04-i386-bubba.tgz

rm -rf /tmp/unmenuTMP

installpkg unraidweb-fixed-0.1.04-i386-bubba.tgz </dev/null  2>&1

echo "0.1.04" >/var/log/unRAID-web-version

 

Link to comment

Sorry if this has been asked but is there a way to keep unraid-web (lighttpd) installed permanently even after reboots?  Can someone tell me how to do this?

 

Thanks

 

Would it be just adding this to my go script?

 

installpkg /boot/custom/unweb.tgz

 

As long as unweb.tgz was copied to /boot/custom/ ?

Link to comment
  • 4 weeks later...

Hi,

 

  I installed unweb with no problems and look forward to playing with it more.  I have already been using unmenu and love it.  How do I access my user shares through the http  interface so I can setup my PCH to use HTTP versus SMB.

 

Thanks,

Sean

 

On the left side click on Ajaxplorer. The default user/pass is admin

Link to comment

Thats very cool but that wont work for serving files to a media streamer like the PCH

 

The URL never updates...

 

so in my case I have a user share movies and under there is a index.html

 

what is the properly formed URL to browse that file.

 

http://leroi:89/Movies/index.html  does not work?

 

I am guessing I need to edit some configuration file to get the web server to allow browsing of my shares? Any suggestions?

Link to comment

Thats very cool but that wont work for serving files to a media streamer like the PCH

 

The URL never updates...

 

so in my case I have a user share movies and under there is a index.html

 

what is the properly formed URL to browse that file.

 

http://leroi:89/Movies/index.html   does not work?

 

I am guessing I need to edit some configuration file to get the web server to allow browsing of my shares? Any suggestions?

 

I don't believe what you are asking for is possible with unraidweb stock. maybe if you edit the httpd.conf file to point to /mnt/user for the personal webserver.

Link to comment

Thats very cool but that wont work for serving files to a media streamer like the PCH

 

The URL never updates...

 

so in my case I have a user share movies and under there is a index.html

 

what is the properly formed URL to browse that file.

 

http://leroi:89/Movies/index.html   does not work?

 

I am guessing I need to edit some configuration file to get the web server to allow browsing of my shares? Any suggestions?

 

You can add a new port for lighttpd to listen to, and make your user shares to be the document-root for that port.

Unraidweb has provided you with the file  /boot/custom/lighttpd/lighttpd.conf.include  for your custom setting.

(From windows you'll see that file in  \\yourserver\flash\custom\lighttpd\ )

Let's say we'll use port 8088 for that.  Just put the following lines in that file:

dir-listing.activate       = "enable"
$SERVER["socket"] == "0.0.0.0:8088" {
   server.document-root = "/mnt/user"
   accesslog.filename = "/mnt/user/web-access.log"
   }

Now restart lighttpd. Then point your browser to http://yourserver:8088

That's it.

 

Note: Your changes to  lighttpd.conf.include  will survive surver reboot.

Also note: When editing such Linux files, keep in mind this:

http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F

 

Link to comment
  • 2 weeks later...

I have installed unRAID-Web and all the Extensions seem to operate fine, but when I try to set up the personal web server by specifying a directory (/mnt/disk5/www) and then dropping an index.html file in that directly, and setting a port (82, 83, 84, 85) my browser won't connect.

 

What's more, it seems to kill the other extensions when I do that and they are no longer accessible.  I have to reinstall unraid-web. 

 

I'm obviously missing something basic.

Link to comment

I have installed unRAID-Web and all the Extensions seem to operate fine, but when I try to set up the personal web server by specifying a directory (/mnt/disk5/www) and then dropping an index.html file in that directly, and setting a port (82, 83, 84, 85) my browser won't connect.

 

What's more, it seems to kill the other extensions when I do that and they are no longer accessible.  I have to reinstall unraid-web.  

 

I'm obviously missing something basic.

What file used by unRAID-Web's web-server (lighttpd) are you editing to set your personal web-server root directory?

 

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.