01-04-2013, 07:25 AM | #196 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Hi,
I think I need to change this line in base.php: Code:
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'metadata.db'); The files of OPDS server are in the following folder: C:\Program Files\Calibre2\Calibre Server And the metadata.db is in the folder: Z:\ServerFolders\Ebook |
01-04-2013, 07:52 AM | #197 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
You need to change $config['calibre_directory'] (in the config local file) to
Z:\ServerFolders\Ebook |
Advert | |
|
01-04-2013, 08:58 AM | #198 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Hi,
I tried this: Code:
$config['calibre_directory'] = 'Z:/ServerFolders/Ebook/'; Last edited by theducks; 01-04-2013 at 10:24 AM. Reason: oops |
01-04-2013, 09:21 AM | #199 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Just as a test try to copy Z:\ServerFolders\Ebook into your webdirectory and :
self::$db = new PDO('sqlite:'. './Ebook/metadata.db'); I really don't know much with Windows's webservers so if anybody can help you it would be best |
01-04-2013, 09:37 AM | #200 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
I tried:
config_local.php: Code:
$config['calibre_directory'] = './'; Code:
self::$db = new PDO('sqlite:'. './Ebook/metadata.db'); Always the same error.... |
Advert | |
|
01-04-2013, 09:41 AM | #201 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
same result with:
Code:
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'Ebook/metadata.db'); |
01-04-2013, 10:08 AM | #202 |
Grand Sorcerer
Posts: 12,124
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Is Z a networked drive? What account is the server running under? Does it have access to the networked drive?
|
01-04-2013, 10:24 AM | #203 |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
01-04-2013, 11:19 AM | #204 | |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Quote:
Code:
Z:/ServerFolders/Ebook But for the OPDS server, it's more difficult... |
|
01-04-2013, 11:22 AM | #205 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
|
01-04-2013, 01:11 PM | #206 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
Last information:
if I put the "Ebook" folder (containing metadat.db) in the calibre directory (C:\Program Files\Calibre2), that's working. But I want to put my ebooks in the "Z:/ServerFoders/Ebook" folder I don't understand why isn't possible |
01-04-2013, 03:04 PM | #207 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Maybe you'll have to adapt open_dir in your php configuration ... But again I'm no windows specialist
|
01-04-2013, 03:33 PM | #208 |
Grand Sorcerer
Posts: 12,124
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
What I'm trying to learn is HOW exactly does COPS run? Is it running from a Windows Service (ie something like IIS or Apache) or is it running from a program that you launch in your desktop?
If running as a Windows Service it is more than likely that the mapping of a drive to "Z" is NOT in effect. |
01-04-2013, 03:48 PM | #209 |
Guru
Posts: 716
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
I (in collaboration with a friend of mine) found out that COPS on Windows (7) and a WAMP server will only work if the calibre directory is in the path of the COPS installation.
2 examples: (1) (set path in config_local.php) COPS: C:/wamp/www/cops Calibre: C:/wamp/www/cops/calibre or (2) (set path in config_local.php) COPS: Z:/ebooks/cops Calibre: Z:/ebooks/cops/calibre will work, while COPS: c:/wamp/www/cops Calibre: z:/ebooks/calibre will NOT (under Linux this is not a problem) To make the second example work under Windows (7) with an Apache server you need to create an alias, otherwise apache cannot find COPS in the z:/ebooks/cops directory. |
01-05-2013, 04:24 PM | #210 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: Kindle - Nexus 7
|
cannot access OPDS from device
I also seem to be having trouble with the device I'm using [Nexus 7 - 32GB Android 4.2.1 - rooted] with my Synology Diskstation DS-209+. I've followed all the directions from this link https://github.com/seblucas/cops/wiki/Howto---Synology including using the same DIRs noted and copy/pasted the changed lines in the config_local.php file. I've tried 2 readers, namely Moon Reader+ as well as FBReader, and even using an FBReader plugin called "FBReaderJ-plugin-local-opds-scanner" to scan my local network as well as writing in the path manually to 192.168.45/Calibre/. Both apps are unable to locate the OPDS catalog, but in a web browser on my Nexus or my PC, the catalog appears normally. Why shouldn't either reader be unble to find the catalog? Thanks for your help!
|
Tags |
calibre opds, dns, kobo aura, synology |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |