Need some help to install Spotweb

    • Need some help to install Spotweb

      Hello Forum wizards, I need some help...

      I tried many times to install Spotweb, but everytime I fail.
      My knowhow is to little.

      I installed Spotweb in the directory: /var/www/openmediavault/spotweb
      Installed plugin MySQL, database Spotweb is working.

      When I open the url: server/spotweb in browser, Spotweb is working.

      2 bad thing happen.
      1: I have to do many times Ctrl+F5.
      It is not working properly and for refreshing layout or some thing?
      2: When I try to Openmediavault web interface I get this:

      Source Code

      1. Error #3008:
      2. exception 'OMVException' with message 'Failed to load configuration (Warning 1549: failed to load external entity "/etc/openmediavault/config.xml" (line=0, column=0))' in /usr/share/php/openmediavault/config.inc:423
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/env.inc(22): require_once()
      5. #1 /var/www/openmediavault/index.php(23): require_once('/usr/share/php/...')
      6. #2 {main}


      When I do: /init.d/apache2 restart in Putty, Openmediavault web interface is working again.

      I tried to make in /etc/apache2/sites-enabled the site openmediavault-spotweb but this is not working.
      (I looked at openmediavault-mysql-management-site) At least I tried :oops: :oops: :oops:

      Info about Spotweb:github.com/spotweb/spotweb/wiki

      I hope that someone will help me, I really like Spotweb.

      Greetings Ben
    • Re: Need some help to install Spotweb

      Does it need to be Spotweb?

      Maybe you´ll be happy with sabnzbd also? There would be a plugin available in the testing repo of OMV-Extras.
      And have a look at this thread: forums.openmediavault.org/viewtopic.php?f=13&t=2038
      OMV stoneburner | HP Microserver | 256GB Samsung 830 SSD for system | 4x 2TB in a RAID5
      OMV erasmus| Odroid XU4 | 5TB Data drive | 500GB Backup drive
    • Re: Need some help to install Spotweb

      I've got the solution for you.

      What I did was this:

      I moved the spotweb directory out of the openmediavault directory.
      I put it in /var/www

      Now just alter your apache2 config file, like this:

      Source Code

      1. Alias /spotweb /var/www/spotweb
      2. <Directory /var/www/spotweb/>
      3. RewriteEngine on
      4. RewriteCond %{REQUEST_URI} !api/
      5. RewriteRule ^api/?$ index.php?page=newznabapi [QSA,L]
      6. Options Indexes FollowSymLinks Multiviews
      7. AllowOverride None
      8. Order allow,deny
      9. allow from all
      10. </Directory>
      Display All


      Save this file as spotweb.conf and place it in /etc/apache2/openmediavault-webgui.d
      Restart apache2 and you're done!

      The post was edited 1 time, last by Fietspomp ().

    • Re: Need some help to install Spotweb

      Well, I could enter the site with this method, but the API isn't working!

      This is my new code, but I've entered it in another file, within <VirtualHost _default_:443>

      Source Code

      1. DocumentRoot /var/www/spotweb
      2. DirectoryIndex index.php
      3. Alias /spotweb /var/www/spotweb
      4. <Directory /var/www/spotweb/>
      5. RewriteEngine on
      6. RewriteCond %{REQUEST_URI} !api/
      7. RewriteRule ^api/?$ index.php?page=newznabapi [QSA,L]
      8. Options Indexes FollowSymLinks Multiviews
      9. AllowOverride None
      10. Order allow,deny
      11. allow from all
      12. </Directory>
      Display All


      I hope this works for you!
    • Hi Ben,

      I had the same problems and solved it by putting Fietspomp's solutions together in the following spotweb.conf file:

      Source Code

      1. Alias /spotweb /var/www/spotweb
      2. <Directory /var/www/spotweb/>
      3. Options FollowSymLinks
      4. <FilesMatch \.php$>
      5. FcgidWrapper /var/www/openmediavault/php-fcgi .php
      6. SetHandler fcgid-script
      7. Options +ExecCGI
      8. </FilesMatch>
      9. RewriteEngine on
      10. RewriteCond %{REQUEST_URI} !api/
      11. RewriteRule ^api/?$ index.php?page=newznabapi [QSA,L]
      12. Options Indexes FollowSymLinks Multiviews
      13. AllowOverride None
      14. Order allow,deny
      15. allow from all
      16. </Directory>
      Display All


      Like Fietspomp said: Save this file as spotweb.conf and place it in /etc/apache2/openmediavault-webgui.d, restart apache2 and you're done!

      Well... not quite because OpenMediaVault web interface still crashes... Anybody any idea why that is?
    • First I am not an expert, so if you see something wrong correct it... :)

      This is how I installed Spotweb and it is working fine.

      1) Login to your OpenMediaVault and make a shared folder (example: www-data)
      When this is done you can log out.

      2) Use Command Line to Install:
      apt-get install php5-gd

      apt-get install php5-curl

      Now go to the shared folder you made
      cd sharedfolder (example: cd www-data)

      Get a clone of Spotweb by typing the following:
      git clone git://github.com/Spotweb/Spotweb.git

      Now login your OpenMediaVault again

      3) Install MySQL plugin and make a database for spotweb.

      4) Install Nginx plugin and make a pool and server.

      Example of my Pool:
      -General-
      Name: spotweb
      Description: Usenet Indexer
      User: "name of a user"
      Group: "shared folder" (example: www-data)
      Display errors: disable
      HTML errors: enable
      Max execution time (s): 30
      Memory limit (MB): 128
      Max POST size (MB): 8
      Max upload filesize (MB): 2
      -Process manager-
      Max children: 5
      Start servers: 2
      Min spare servers: 1
      Max spare servers: 3
      Max requests: 0
      -Extra options-

      Source Code

      1. ​php_flag[RewriteEngine] = On
      2. php_value[date.timezone] = Europe/Amsterdam


      Example of my Server:
      -General-
      Enable: enable
      Directory: "shared folder" (example: www-data)
      Use root: enable
      Use public directory: disable
      Host type: Port
      Port: "choose a port" (example: 8085)
      Default server: disable
      -SSL-
      Enable SSL: disable
      -PHP-
      Enable PHP: enable
      PHP-FPM pool: spotweb
      Default config: enable
      -Options-
      Use index: disable
      index.html: disable
      index.php: enable
      Autoindex: disable
      Don't serve .htaccess: disable
      Enable log: enable
      Header buffer size: 32k
      -Extra options-

      Source Code

      1. if ($uri !~ "api/"){
      2. rewrite api/?$ /index.php?page=newznabapi last;
      3. }
      4. index index.php;


      5) Now go to Spotweb by typing the following in your Browser and configure Spotweb
      http://ipofyouropenmediavault:port (example: 192.168.1.100:8085)

      When this is done, Spotweb should be working.

      6) When this is all set we can retrieve the spots from the server, this takes a while!
      Use Command Line to go to the Spotweb folder you made by typing the following:
      cd sharedfolder/Spotweb (example: cd www-data/Spotweb)
      Use Command to retrieve spots:
      ​php retrieve.php

      Be patient.

      7) When it is done you can make in OpenMediaVault a scheduled job to retrieve spots automatically.
      Add a new scheduled Job, use this as the command:
      php /sharedfolder/Spotweb/retrieve.php /dev/null (example: php /www-data/Spotweb/retrieve.php /dev/null)
      (My setting, every 6 hours)
      Add an other scheduled Job to update the database, use this as the command:
      php /sharedfolder/Spotweb/upgrade-db.php (example: php /www-data/Spotweb/upgrade-db.php)
      (My setting, daily)

      I hope this can help a little.... :)