seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

COPS Blank Page #427

Closed itchygrub closed 5 years ago

itchygrub commented 5 years ago

Synology DS218play Apache 2.4 Php 7.2 Configured as per instruction Blank page Run check shows blank page

marioscube commented 5 years ago

Did you download and install cops 1.1.2 (release) or did you install the latest code with git or zip file?

Did you test your php install?

itchygrub commented 5 years ago

Download from bit. No what script for install

marioscube commented 5 years ago

Install cops version 1.1.2 with this link:

https://github.com/seblucas/cops/releases/tag/1.1.2

then try again.

itchygrub commented 5 years ago

The checkconfig works. Using Marian 7.2.13 Correct path for calibre db Says missing Jason mbstring Normalized Into libxml GD

marioscube commented 5 years ago

PHP 7.2 should be supported in cops.

Can you check if the missing php modules are installed on your Synology?

itchygrub commented 5 years ago

File ./volume1/calibremetadata.db not found ( /volume1/calibre/) in open_basedir [lost all other settings] though All modules loaded

marioscube commented 5 years ago

Use absolute path in config_local.php.

Do not use ./vol.... unless the calibre database is “inside” the cops directory.

itchygrub commented 5 years ago

Cops is in webroot

itchygrub commented 5 years ago

Does that mean /calibre

itchygrub commented 5 years ago

Is this installed as a package or is install in the web directory. The metadata file is in calibre directory. Was created in Windows version of calibre. Directory was deleted recreated. Apache / php7 uninstalled installed Instqlled into web/cops112 openbase_dir and .ini file read ./calibre/ Modules loaded ok Missing database file

marioscube commented 5 years ago

You are almost successful.

Read the part on open_basedir in https://github.com/seblucas/cops/wiki/Howto---Synology

Add to setings open_basedir /volume1/web/cops212/calibre

itchygrub commented 5 years ago

Check if Calibre database file exists and is readable File ./volume1/calibre/metadata.db not found, Please check

do i move my calibre directory under the cops directory as it is in the root of volume1 /volume1/calibre/ http users has read all traverse folders/execute files etc

from my phpinfo open_basedir /volume1/web/cops112:/etc.defaults:/etc:/usr/syno/synoman:/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/volume1/calibre/ /etc.defaults:/etc:/usr/syno/synoman:/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/volume1/calibre/

marioscube commented 5 years ago

For testing:

itchygrub commented 5 years ago

It seems to work. But now I cant access that from my PC. As a had a network share for Calibre.

marioscube commented 5 years ago

Point network share in Synology settings to /volume1/web/cops112/calibre

seblucas commented 5 years ago

@itchygrub Do you still have a problem with COPS / network share ?