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:


    Code
    Error #3008:
    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
    Stack trace:
    #0 /usr/share/php/openmediavault/env.inc(22): require_once()
    #1 /var/www/openmediavault/index.php(23): require_once('/usr/share/php/...')
    #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:https://github.com/spotweb/spotweb/wiki


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


    Greetings Ben

  • 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:



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

  • 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>



    I hope this works for you!

  • Hello Fietspomp,


    First, thanks for all your help.


    I have done a clean install of omv and triend to install spotweb (git clone).


    But there is something going wrong, so I will try to do it allover again this weekend.


    Thanks and greetings,
    Ben

  • Hello Fietspomp,


    I tried it over again but when I go to the website of spotweb it want to download instead of opening the php file.


    Don't know what to do...


    Greetings Ben

  • Hi Ben,


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



    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?

  • @ NoLimit,


    Thanks for your help, really appreciate it.


    I now use OMV 1.0 with Nginx pluggin, here's SpotWeb fairly easy to install.


    Again thanks...

  • 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-

    Code
    php_flag[RewriteEngine] = On
    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-

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


    5) Now go to Spotweb by typing the following in your Browser and configure Spotweb
    http://ipofyouropenmediavault:port (example: http://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.... :)

  • For me the API works fine.


    I use Sonarr and Couch Potato (plugins from jhmiller) in combination with spotweb.


    To test the API:
    http://ipofyouropenmediavault:port/api?t=c (example: 192.168.1.100:8085/api?t=c)


    greetings

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!