Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Newznab Plug-in

Featured Replies

Ok, got it.  I had to remove everything, when I restarted with the above settings I still got the 404.

 

Then I thought "But that's the root...not the www directory where Newznab installs!"

 

http://tower:81/www/install worked.

 

Should I set the webroot to /mnt/cache/AppData/Newznab/www?

  • Replies 523
  • Views 105.9k
  • Created
  • Last Reply
  • Author

Yes... Somehow overlooked this. Guess I'll have to figure out better wording for this then...

When I set the http server to .../www/ I get the 404 from all the URLs.  This is really confusing.

  • Author

When set to www you will get a 404 from all of the links...but /install should work, as well as root (tower:81)

 

I have a share on my cache drive named "server", in the web server settings my webroot is set as /mnt/cache/server/www/

 

In the newznab plug-in my server-root is set as /mnt/cache/server/

 

So all files get installed to /server/ which puts the www directory at /server/www/

 

I then have added the lighttpd rewrite rules to lighttpd.cfg located in /boot/config/plugins/simpleFeatures/

Those errors are just a "catch all", the errors are actually coming from the plug-in settings page and will happen for all of the settings pages. They can be ignored.

 

I'll try a completely fresh install, I swear I haven't had these issues at all and I've made about 100 web roots to test, lol.

 

simpleFeatures should be creating a cfg in that location. Try running this:

 

chmod 777 /boot/config/plugins/simpleFeatures
touch /boot/config/plugins/simpleFeatures/simpleFeatures.cfg
chmod 777 /boot/config/plugins/simpleFeatures/simpleFeatures.cfg

 

Then try to set the web server up again.

 

Out of interest, are you using the plug-in simpleFeatures.web.server.1.0.5-noarch-1.plg?

 

Yeah, that's the version.

 

Ran the commands, tried starting the web server again. This time simpleFeatures.cfg was created, but empty.

  • Author

Seems to be an issue with the web.server plug-in, although i'm not quite sure what...  It was as easy as installing and running for me.

 

What version unraid are you using?

 

can you post the output of

ls -l /boot/config/plugins/
ls -l /boot/config/plugins/simpleFeatures/

Seems to be an issue with the web.server plug-in, although i'm not quite sure what...  It was as easy as installing and running for me.

 

What version unraid are you using?

 

can you post the output of

ls -l /boot/config/plugins/
ls -l /boot/config/plugins/simpleFeatures/

 

This could very well be my own doing.. Not the most experienced at this. unRAID version 5RC3

 

root@Tower:~# ls -l /boot/config/plugins/

total 480

drwxrwxrwx 2 root root 16384 2012-12-12 22:50 couchpotato_v2/

-rwxrwxrwx 1 root root 29609 2012-12-12 22:50 couchpotato_v2_unplugged.plg*

-rwxrwxrwx 1 root root 28952 2012-10-02 13:45 couchpotato_v2_unplugged.plg.old*

drwxrwxrwx 2 root root 16384 2012-10-02 14:03 htpcmanager/

-rwxrwxrwx 1 root root 26489 2012-10-02 13:58 htpcmanager_unplugged.plg*

drwxrwxrwx 2 root root 16384 2012-07-12 20:06 images/

drwxrwxrwx 2 root root 16384 2012-12-12 23:08 mysql/

-rwxrwxrwx 1 root root 10865 2012-12-12 23:00 mysql5_20120805.plg*

drwxrwxrwx 2 root root 16384 2012-12-12 22:59 newznab/

-rwxrwxrwx 1 root root 17552 2012-12-12 22:55 newznab_unplugged.plg*

drwxrwxrwx 2 root root 16384 2012-05-18 10:51 plex.old/

drwxrwxrwx 2 root root 16384 2012-09-04 11:31 plexmediaserver/

drwxrwxrwx 2 root root 16384 2012-12-12 22:49 sabnzbd/

-rwxrwxrwx 1 root root 27399 2012-12-12 22:49 sabnzbd_unplugged.plg*

-rwxrwxrwx 1 root root 24440 2012-10-02 13:46 sabnzbd_unplugged.plg.old*

drwxrwxrwx 2 root root 16384 2012-12-12 22:48 sickbeard/

-rwxrwxrwx 1 root root 26731 2012-12-12 22:48 sickbeard_unplugged.plg*

-rwxrwxrwx 1 root root 26423 2012-10-02 13:44 sickbeard_unplugged.plg.old*

drwxrwxrwx 2 root root 16384 2012-12-12 23:52 simpleFeatures/

drwxrwxrwx 2 root root 16384 2012-12-12 23:51 simpleFeatures.old/

-rwxrwxrwx 1 root root 20919 2012-12-12 23:00 simpleFeatures.web.server-1.0.5-noarch-1.plg*

 

 

root@Tower:~# ls -l /boot/config/plugins/simpleFeatures/

root@Tower:~# ls -l /boot/config/plugins/simpleFeatures/

total 20288

-rwxrwxrwx 1 root root      514 2012-12-12 23:04 lighttpd.cfg*

-rwxrwxrwx 1 root root    70526 2012-12-12 23:51 php.ini*

-rwxrwxrwx 1 root root        0 2012-12-12 23:44 simpleFeatures.cfg*

-rwxrwxrwx 1 root root 20646493 2012-09-27 23:30 simpleFeatures.web.server-1.0.5-i486-1.tgz*

-rwxrwxrwx 1 root root    5005 2012-09-27 23:41 simpleFeatures.web.server.png*

 

 

I am still stuck on Not Configured. You asked that I post my lighttpd.cfg.

I get the 404 when I try to access http://tower:81 intall.

Thanks

 

# User customizations

# Add your own settings here. These won't get overwritten upon reboot

#

url.rewrite-once = (

"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "/tmp/checkconfig",

  "^/(admin|install).*$" => "/tmp/checkconfig",

  "^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=&",

  "^/([^/\.]+)/?$" => "index.php?page=",

  "^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=&id=&",

  "^/([^/\.]+)/([^/]+)/?$" => "index.php?page=&id=",

  "^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=&id=&subpage=" )

 

Try using mine, its the same but it fixed it for another user.

 

lighttpd.cfg

 

It finally seem to be working. I used the .cfg you posted. I changed the path in the websever

and it works.

 

No Worky:

Newznab: /mnt/cache/newznab

Webserver: /mnt/cache/newznab

 

Worky: /mnt/cache/newznab/

          /mnt/cache/newznab/www

 

Thank you for your help.

  • Author

I don't have the trailing slash on my newznab config, I do on my web server config. Not sure if that affects it or not though.

 

How did you add the text to the lighttpd.cfg the first time'?

 

Inimical, your permissions look good. Upon further inspection it looks like simplefeatures saves the settings to a different location and then moves them to /boot/config/plugins/simpleFeatures/, although at what time I'm not sure.

 

post the output of

 

cat /var/local/emhttp/simpleFeatures.ini

I don't have the trailing slash on my newznab config, I do on my web server config. Not sure if that affects it or not though.

 

How did you add the text to the lighttpd.cfg the first time'?

 

Inimical, your permissions look good. Upon further inspection it looks like simplefeatures saves the settings to a different location and then moves them to /boot/config/plugins/simpleFeatures/, although at what time I'm not sure.

 

post the output of

 

cat /var/local/emhttp/simpleFeatures.ini

 

root@Tower:/tmp# cat /var/local/emhttp/simpleFeatures.ini                      [lighttpd]

service="0"

path="/tmp/web"

port="81"

phpError="On"

error="0"

access="0"

root@Tower:/tmp#

Preflight Checklist Warning.

 

Checking PHP's memory_limit:

Your PHP installation's memory_limit setting is low, please consider increasing it >= 256MB

 

I have 8gigs of ram so I opened php.ini and changed it to..

; Maximum amount of memory a script may consume (128MB)

; http://php.net/memory-limit

memory_limit = 512M

 

I was advised to do this when I had a manual install.

 

 

Also, if it helps:

 

root@Tower:/tmp# ls -l /var/local/emhttp/

total 36

-rw-r--r-- 1 root root    0 2012-12-13 00:13 devs.ini

-rw-r--r-- 1 root root 3304 2012-12-13 00:13 disks.ini

drwxr-xr-x 3 root root    0 2012-05-08 23:24 plugins/

-rw-r--r-- 1 root root 1905 2012-12-13 00:13 sec.ini

-rw-r--r-- 1 root root 2307 2012-12-13 00:13 sec_afp.ini

-rw-r--r-- 1 root root 1466 2012-12-13 00:13 sec_nfs.ini

-rw-r--r-- 1 root root 1595 2012-12-13 00:13 shares.ini

-rw-r--r-- 1 root root  84 2012-12-12 23:00 simpleFeatures.ini

-rw-r--r-- 1 root root  67 2012-12-13 00:13 users.ini

-rw-r--r-- 1 root root 2019 2012-12-13 00:13 var.ini

drwxr-xr-x 2 root root    0 2012-05-08 23:24 webGui/

root@Tower:/tmp#

 

 

  • Author

Ok, another release...

 

Added option to use your own tarball. So you can pull down NN-plus and make a tar ball, place it in /boot/packages.

 

The format MUST be like this:

nnplus.tar.gz

        /nnplus/

                    /www/

                    /db/

 

So basically whatever the name of the tarball is (nnplus in this case) the root directory of the tarball must be named the same thing, then everything else inside of that.

 

Not the best solution but it is a workable solution for those that have donated. I'll add a check to allow you to use a .zip as well.

 

In the new field on the settings page simply write the name of the file -minus- the .tar.gz, so in this examples case, write nnplus. The plug-in will then search for nnplus.tar* in /boot/packages.

 

Grab it here

  • Author

root@Tower:/tmp# cat /var/local/emhttp/simpleFeatures.ini                      [lighttpd]

service="0"

path="/tmp/web"

port="81"

phpError="On"

error="0"

access="0"

root@Tower:/tmp#

 

Ok, so its writing the settings.

 

So when you change it to enabled and click "Apply" it goes back to disabled?

root@Tower:/tmp# cat /var/local/emhttp/simpleFeatures.ini                      [lighttpd]

service="0"

path="/tmp/web"

port="81"

phpError="On"

error="0"

access="0"

root@Tower:/tmp#

 

Ok, so its writing the settings.

 

So when you change it to enabled and click "Apply" it goes back to disabled?

 

Yeah, it just throws me back to main unRAID settings screen. If no one else reports we can just chalk it off to an isolated incident, I will try reboot\reinstall.

  • Author

That is extremely odd...

 

Yes, try a reboot. IDK how it would help but I'm pretty much baffled as to why its doing that. Maybe ask in the web server thread, located here

 

For now, I gotta go, work in the AM. We'll continue this tomorrow, feel free to PM me if you need to!

Thanks!

  • Author

No problem!

 

Before I leave for the night, went ahead and added zip support.

 

The plug-in will check first for the package name in tar format first, if not found it will search for .zip format. This is to make it easier on windows users.

 

Grab it here

 

I think tomorrow I'll move it to my git repo, makes updating a lot easier!

I hate to say so but I am running into the same issues as Inimical.  When I enable web server, it goes back to disabled and it wont launch so he is not the only one with that issue.

  • Author

Do you have simple features installed? Not 100% sure but it may still be required to have the base installed.

better way would be:

 

web root would be:  /mnt/cache/apps/web/nnplus/www

 

for plus verison do the svn co in /mnt/cache/apps/web

 

it will create the base nnplus dir there and everything below, but lighthttpd will use nnplus' www for its /

 

storage happens above the www dir in the tree

 

Myk

 

I hate to say so but I am running into the same issues as Inimical.  When I enable web server, it goes back to disabled and it wont launch so he is not the only one with that issue.

 

I had the same problem, I think it was all the old simple feature packages in the extra folder from when I installed it way back... I removed everything in there, grabbed the new zip file with all the plg files in it and added them to "/boot/config/plugins"

Well.. thats what I think it was...

 

 

 

Something went nuts with the NNplus.zip file install. It cut my entire packages directory off the flash and put it into the install directory "/mnt/cache/Applications/www" ???

 

 

  • Author

What was the name of the zip? I

it was NNplus.zip

 

 

I think your looking for PLUSPACKAGE.zip>

 

if [[ $PLUSPACKAGE == "" ]]; then

cd /tmp

unzip -d /tmp/ /boot/packages/newznab-0.2.3.zip

cp -Rfu /tmp/newznab*/* $SERVER_ROOT

rm -Rf /tmp/newznab*

else

if [ ! -f /boot/packages/$PLUSPACKAGE.zip ]; then

tar -xf /boot/packages/$PLUSPACKAGE.tar*

cp -Rfu $PLUSPACKAGE/* $SERVER_ROOT

rm -Rf $PLUSPACKAGE

else

unzip /boot/packages/$PLUSPACKAGE.zip

cp -Rfu $PLUSPACKAGE/* $SERVER_ROOT

rm -Rf $PLUSPACKAGE

fi

 

Archived

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.