Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COPS on Synology DSM 6 #267

Closed
5 of 6 tasks
TylonHH opened this issue Apr 28, 2016 · 5 comments
Closed
5 of 6 tasks

COPS on Synology DSM 6 #267

TylonHH opened this issue Apr 28, 2016 · 5 comments

Comments

@TylonHH
Copy link

TylonHH commented Apr 28, 2016

Hi,

I'm trying to set up COPS on my Synlogy with DSM 6

I followed the Howto Synology without success.

  • installed COPS via synocommunity
  • created an sheard Folder "cops" with all user access read/write (just to get sure)
  • copied the metadata.db to that cops folder and some folders with ebooks inside
  • installed/enabled Web Station with PHP 5.6 and Apache HTTP Server 2.2 (enabled Cache, error and specific open_basedir :/volume1/cops/. Q: is it right with that starting : ?
  • I edited with SSH the /volume1/@appstore/cops/share/cops/config_local.php to that
<?php
    if (!isset($config))
        $config = array();

    /*
     * The directory containing calibre's metadata.db file, with sub-directories
     * containing all the formats.
     * BEWARE : it has to end with a /
     */
    $config['calibre_directory'] = '/volume1/cops/';

    /*
     * Catalog's title
     */
    $config['cops_title_default'] = "COPS";

    /*
     * use URL rewriting for downloading of ebook in HTML catalog
     * See README for more information
     *  1 : enable
     *  0 : disable
     */
    $config['cops_use_url_rewriting'] = "1";
  • when I open the Link http://192.168.178.58/cops/ from the package center COPS it shows me No input file specified.

So what else did I wrong?

@TylonHH
Copy link
Author

TylonHH commented Apr 28, 2016

OK one step further:
I changed the basedir to /tmp:/var/services/tmp:/var/services/web:/var/services/homes:/volume1/calibre/
and now the checkconfig says everthing is ok.

But when I open the normal cops page it's just grey blank and empty

@TylonHH
Copy link
Author

TylonHH commented Apr 28, 2016

Noob: wrong db.

please close issue

@plotti
Copy link

plotti commented Nov 23, 2017

I have the same problem what do you mean with wrong db?

@TylonHH
Copy link
Author

TylonHH commented Nov 26, 2017

Puuuh, good question.
As I remember I defined the wrong database. Check your settings and also your phpmyadmin.

@rtax56
Copy link

rtax56 commented Feb 8, 2020

Hi Guys, it is now 2020 and i have been catched with ->this database error<- thing in COPS, i have tried out several things but at the end i'm lucky to get COPS up and running, my metadata.db could not be read by COPY, because it was in the same directory , where all my ebooks where hosted.
i have created an extra dir /library wihtin this path --> /volume1/calibre/library ...
i have copied the ->metadata.db<- to the dir -> /library <- now the problem was solved for me!

i edited the dataset config_local.php in /var/services/web/cops of my DS

....
if (!isset($config))
$config = array();

/*
 * The directory containing calibre's metadata.db file, with sub-directories
 * containing all the formats.
 * BEWARE : it has to end with a /
 */
$config['calibre_directory'] = '/volume1/calibre/library/';

/*
 * Catalog's title
 */
$config['cops_title_default'] = "COPS";

/*
 * use URL rewriting for downloading of ebook in HTML catalog
 * See README for more information
 *  1 : enable
 *  0 : disable
 */
$config['cops_use_url_rewriting'] = "1";

..
in the config of WEB Staion PHP Opnen Basedir it looks like this:
/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/volume1/calibre/library

that was my effort off trial and error after 7days :)

thanks and

mercy bien a sublucas pour cet logiciel 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants