Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 04-12-2014, 12:11 PM   #871
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by dannyb78 View Post
thanks vlad, I havent found the faqs page. enabling url rewriting I got a 404 error downloading ebooks on all pc and devices. I'll check my apache configuration to fix this.

Code:
Not Found

The requested URL /download/5488/Fuga+Impossibile+-+George+R.R.+Martin.pdf was not found on this server.
Can you tell me what web server is hosting COPS ? a Nas with Apache ? A Synology with DSM5 ? Nginx ?
vlad59 is offline   Reply With Quote
Old 04-12-2014, 01:56 PM   #872
dannyb78
Junior Member
dannyb78 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2014
Device: Kobo Aura HD
I'm running cops in a freenas 9.2.1.3 jail, with apache 2.2
mod_rewrite is installed and module is loaded
dannyb78 is offline   Reply With Quote
Old 04-12-2014, 02:45 PM   #873
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by dannyb78 View Post
I'm running cops in a freenas 9.2.1.3 jail, with apache 2.2
mod_rewrite is installed and module is loaded
Strange the .htaccess supplied with COPS should handle it fine :

Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^download/(\d*)/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&db=$2&type=epub [L]
RewriteRule ^download/(\d*)/(\d*)/.*\.(.*)$ fetch.php?data=$1&db=$2&type=$3 [L]
RewriteRule ^download/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&type=epub [L]
RewriteRule ^download/(\d*)/.*\.(.*)$ fetch.php?data=$1&type=$2 [L]
</IfModule>
Is cops installed in directory (mydomain.com/cops/index.php) or with a subdomain (cops.mydomain.com/index.php) ?
vlad59 is offline   Reply With Quote
Old 04-12-2014, 04:03 PM   #874
dannyb78
Junior Member
dannyb78 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2014
Device: Kobo Aura HD
The jail is dedicated to cops, I installed it into the root and changed the port to 8080 (this will make me able to forward the port from my router, port 80 is already in use)

I'm accessing it using the Local ip http:\\192.168.1.103:8080\index.php

PS the .htaccess is exactly the same.

Last edited by dannyb78; 04-12-2014 at 05:40 PM.
dannyb78 is offline   Reply With Quote
Old 04-13-2014, 01:06 AM   #875
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
That's really strange, do you have access to Apache logs I guess it could help.
vlad59 is offline   Reply With Quote
Old 04-13-2014, 03:43 AM   #876
dannyb78
Junior Member
dannyb78 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2014
Device: Kobo Aura HD
First of all I moved all my books and tested it with a very small library and folders tree. Same problem occurs.
I also forwarded the port on my router to test the access via hostname and fully qualified dns name. no good news too.

Here's a bit of my log, tell me how can I send the wole file to you, if needed.

I'm really appreciating your help

Code:
[Sat Apr 12 23:32:41 2014] [notice] Graceful restart requested, doing restart

[Sat Apr 12 23:32:41 2014] [notice] Digest: generating secret for digest authentication ...

[Sat Apr 12 23:32:41 2014] [notice] Digest: done

[Sat Apr 12 23:32:42 2014] [notice] Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2 configured -- resuming normal operation
s
[Sat Apr 12 23:42:56 2014] [error] [client 2.231.176.110] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://xxx:8080/index.php?page=3&id=179

[Sat Apr 12 23:43:34 2014] [error] [client 2.231.176.110] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://xxx/index.php?page=3&id=179

[Sat Apr 12 23:45:41 2014] [error] [client 2.231.176.110] File does not exist: /usr/local/www/apache22/data/cops/cops

[Sat Apr 12 23:45:48 2014] [error] [client 2.231.176.110] File does not exist: /usr/local/www/apache22/data/cops/download

[Sat Apr 12 23:48:16 2014] [error] [client 2.231.176.110] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://xxx:8080/index.php?page=3&id=867

[Sun Apr 13 09:26:59 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=3&id=1
dannyb78 is offline   Reply With Quote
Old 04-13-2014, 03:47 AM   #877
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
After reading your log, it would seem URL rewriting is not enabled. could you change your .htaccess to make it look like that :
Code:
RewriteEngine on
RewriteRule ^download/(\d*)/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&db=$2&type=epub [L]
RewriteRule ^download/(\d*)/(\d*)/.*\.(.*)$ fetch.php?data=$1&db=$2&type=$3 [L]
RewriteRule ^download/(\d*)/.*\.kepub\.epub$ fetch.php?data=$1&type=epub [L]
RewriteRule ^download/(\d*)/.*\.(.*)$ fetch.php?data=$1&type=$2 [L]
So loosing the IfModule tag.

It should trigger an error if URL rewriting is not really enabled.

You can also try to drop all the "^" before "download" it shouldn't matter in your case but who knows.
vlad59 is offline   Reply With Quote
Old 04-13-2014, 12:47 PM   #878
dannyb78
Junior Member
dannyb78 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2014
Device: Kobo Aura HD
this is the log without IfModule tag and without the leading ^
download with rewriting still wont work

NEW httpd-error.log entries
Spoiler:
[Sun Apr 13 10:15:56 2014] [notice] Graceful restart requested, doing restart

[Sun Apr 13 10:15:57 2014] [notice] Digest: generating secret for digest authentication ...

[Sun Apr 13 10:15:57 2014] [notice] Digest: done

[Sun Apr 13 10:15:58 2014] [notice] Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2 configured -- resuming normal operations

[Sun Apr 13 10:16:09 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=3&id=172

[Sun Apr 13 10:17:34 2014] [notice] Graceful restart requested, doing restart

[Sun Apr 13 10:17:34 2014] [notice] Digest: generating secret for digest authentication ...

[Sun Apr 13 10:17:34 2014] [notice] Digest: done

[Sun Apr 13 10:17:35 2014] [notice] Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2 configured -- resuming normal operations

[Sun Apr 13 10:17:42 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=21&id=48

[Sun Apr 13 10:17:45 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=21&id=48

[Sun Apr 13 10:17:48 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=21&id=48

[Sun Apr 13 10:17:51 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=21&id=48

[Sun Apr 13 10:17:53 2014] [error] [client 192.168.1.129] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://192.168.1.103:8080/index.php?page=21&id=48

[Sun Apr 13 10:18:54 2014] [notice] Graceful restart requested, doing restart

[Sun Apr 13 10:18:54 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Apr 13 10:18:54 2014] [notice] Digest: done

[Sun Apr 13 10:18:55 2014] [notice] Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2 configured -- resuming normal operations

[Sun Apr 13 16:14:38 2014] [error] [client 151.19.210.164] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://XXX:8080/index.php?page=3&id=764

[Sun Apr 13 16:14:40 2014] [error] [client 151.19.210.164] File does not exist: /usr/local/www/apache22/data/cops/download, referer: http://XXX:8080/index.php?page=3&id=764


phpinfo() in cops folder
Spoiler:

PHP Logo
PHP Version 5.4.26


System FreeBSD cops 9.1-RELEASE FreeBSD 9.2-RELEASE-p3 #0 r262572+38751c8: Thu Mar 20 21:13:02 PDT 2014 root@build.ixsystems.com:/tank/home/...ys/FREENAS.amd64 amd64
Build Date Apr 3 2014 18:21:06
Configure Command './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--disable-cli' '--disable-cgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.1'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/etc
Loaded Configuration File (none)
Scan this dir for additional .ini files /usr/local/etc/php
Additional .ini files parsed /usr/local/etc/php/extensions.ini
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,NTS
PHP Extension Build API20100525,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, phar
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

PHP Credits

Configuration

apache2handler

Apache Version Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2
Apache API Version 20051115
Server Administrator xxxxxx@gmail.com
Hostname:Port xxx:8080
User/Group www(80)/80
Max Requests Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server No
Server Root /usr/local
Loaded Modules core prefork http_core mod_so mod_authn_file mod_authn_dbm mod_authn_anon mod_authn_default mod_authn_alias mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner mod_authz_default mod_auth_basic mod_auth_digest mod_file_cache mod_cache mod_disk_cache mod_dumpio mod_reqtimeout mod_include mod_filter mod_charset_lite mod_deflate mod_log_config mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_usertrack mod_unique_id mod_setenvif mod_version mod_ssl mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imagemap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment

Variable Value
UNIQUE_ID U0rAvsCoAWcAATTkamwAAAAF
HTTP_HOST 192.168.1.103:8080
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
HTTP_ACCEPT_ENCODING gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_COOKIE email=xxxxxx%40gmail.com; html_tag_filter=1; toolbar=1; use_fancyapps=1
PATH /sbin:/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2
SERVER_NAME 192.168.1.103
SERVER_ADDR 192.168.1.103
SERVER_PORT 8080
REMOTE_ADDR 192.168.1.129
DOCUMENT_ROOT /usr/local/www/apache22/data/cops
SERVER_ADMIN xxx@gmail.com
SCRIPT_FILENAME /usr/local/www/apache22/data/cops/phpinfo.php
REMOTE_PORT 50496
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpinfo.php
SCRIPT_NAME /phpinfo.php

HTTP Headers Information

HTTP Request Headers
HTTP Request GET /phpinfo.php HTTP/1.1
Host 192.168.1.103:8080
Connection keep-alive
Cache-Control max-age=0
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Accept-Encoding gzip,deflate,sdch
Accept-Language it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
Cookie email=xxx%40gmail.com; html_tag_filter=1; toolbar=1; use_fancyapps=1
HTTP Response Headers
X-Powered-By PHP/5.4.26

Core

PHP Version 5.4.26

Directive Local Value Master Value
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
enable_post_data_reading On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting no value no value
exit_on_timeout Off Off
expose_php On On
extension_dir /usr/local/lib/php/20100525 /usr/local/lib/php/20100525
file_uploads On On
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/share/pear .:/usr/local/share/pear
log_errors Off Off
log_errors_max_len 1024 1024
mail.add_x_header Off Off
mail.force_extra_parameters no value no value
mail.log no value no value
max_execution_time 30 30
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time -1 -1
max_input_vars 1000 1000
memory_limit 128M 128M
open_basedir no value no value
output_buffering 0 0
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
report_memleaks On On
report_zend_debug On On
request_order no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 17 17
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
zend.detect_unicode On On
zend.enable_gc On On
zend.multibyte Off Off
zend.script_encoding no value no value

ctype

ctype functions enabled

date


Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/www/apache22/data/cops/phpinfo.php on line 2
date/time support enabled
"Olson" Timezone Database Version 2013.9
Timezone Database internal
Default timezone UTC

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.8.0
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

ereg

Regex Library Bundled library enabled

filter

Input Validation and Filtering enabled
Revision $Id: ad78b4a085153b8c7f4d6db5dc69df40e969c343 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

gd

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.5.3
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 8
PNG Support enabled
libPNG Version 1.5.18
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled

Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0

hash

hash support enabled
Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support enabled
iconv implementation libiconv
iconv library version 1.14

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

json

json support enabled
json version 1.2.1

libxml

libXML support active
libXML Compiled Version 2.8.0
libXML Loaded Version 20800
libXML streams enabled

mhash

MHASH support Enabled
MHASH API Version Emulated Support

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
Compression not supported
SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 31536000
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd,example,debug_trace,auth_plugin_mysql_nati ve_password,auth_plugin_mysql_clear_password
API Extensions no value

mysqlnd statistics
bytes_sent 0
bytes_received 0
packets_sent 0
packets_received 0
protocol_overhead_in 0
protocol_overhead_out 0
bytes_received_ok_packet 0
bytes_received_eof_packet 0
bytes_received_rset_header_packet 0
bytes_received_rset_field_meta_packet 0
bytes_received_rset_row_packet 0
bytes_received_prepare_response_packet 0
bytes_received_change_user_packet 0
packets_sent_command 0
packets_received_ok 0
packets_received_eof 0
packets_received_rset_header 0
packets_received_rset_field_meta 0
packets_received_rset_row 0
packets_received_prepare_response 0
packets_received_change_user 0
result_set_queries 0
non_result_set_queries 0
no_index_used 0
bad_index_used 0
slow_queries 0
buffered_sets 0
unbuffered_sets 0
ps_buffered_sets 0
ps_unbuffered_sets 0
flushed_normal_sets 0
flushed_ps_sets 0
ps_prepared_never_executed 0
ps_prepared_once_executed 0
rows_fetched_from_server_normal 0
rows_fetched_from_server_ps 0
rows_buffered_from_client_normal 0
rows_buffered_from_client_ps 0
rows_fetched_from_client_normal_buffered 0
rows_fetched_from_client_normal_unbuffered 0
rows_fetched_from_client_ps_buffered 0
rows_fetched_from_client_ps_unbuffered 0
rows_fetched_from_client_ps_cursor 0
rows_affected_normal 0
rows_affected_ps 0
rows_skipped_normal 0
rows_skipped_ps 0
copy_on_write_saved 0
copy_on_write_performed 0
command_buffer_too_small 0
connect_success 0
connect_failure 0
connection_reused 0
reconnect 0
pconnect_success 0
active_connections 0
active_persistent_connections 0
explicit_close 0
implicit_close 0
disconnect_close 0
in_middle_of_command_close 0
explicit_free_result 0
implicit_free_result 0
explicit_stmt_close 0
implicit_stmt_close 0
mem_emalloc_count 0
mem_emalloc_amount 0
mem_ecalloc_count 0
mem_ecalloc_amount 0
mem_erealloc_count 0
mem_erealloc_amount 0
mem_efree_count 0
mem_efree_amount 0
mem_malloc_count 0
mem_malloc_amount 0
mem_calloc_count 0
mem_calloc_amount 0
mem_realloc_count 0
mem_realloc_amount 0
mem_free_count 0
mem_free_amount 0
mem_estrndup_count 0
mem_strndup_count 0
mem_estndup_count 0
mem_strdup_count 0
proto_text_fetched_null 0
proto_text_fetched_bit 0
proto_text_fetched_tinyint 0
proto_text_fetched_short 0
proto_text_fetched_int24 0
proto_text_fetched_int 0
proto_text_fetched_bigint 0
proto_text_fetched_decimal 0
proto_text_fetched_float 0
proto_text_fetched_double 0
proto_text_fetched_date 0
proto_text_fetched_year 0
proto_text_fetched_time 0
proto_text_fetched_datetime 0
proto_text_fetched_timestamp 0
proto_text_fetched_string 0
proto_text_fetched_blob 0
proto_text_fetched_enum 0
proto_text_fetched_set 0
proto_text_fetched_geometry 0
proto_text_fetched_other 0
proto_binary_fetched_null 0
proto_binary_fetched_bit 0
proto_binary_fetched_tinyint 0
proto_binary_fetched_short 0
proto_binary_fetched_int24 0
proto_binary_fetched_int 0
proto_binary_fetched_bigint 0
proto_binary_fetched_decimal 0
proto_binary_fetched_float 0
proto_binary_fetched_double 0
proto_binary_fetched_date 0
proto_binary_fetched_year 0
proto_binary_fetched_time 0
proto_binary_fetched_datetime 0
proto_binary_fetched_timestamp 0
proto_binary_fetched_string 0
proto_binary_fetched_blob 0
proto_binary_fetched_enum 0
proto_binary_fetched_set 0
proto_binary_fetched_geometry 0
proto_binary_fetched_other 0
init_command_executed_count 0
init_command_failed_count 0
com_quit 0
com_init_db 0
com_query 0
com_field_list 0
com_create_db 0
com_drop_db 0
com_refresh 0
com_shutdown 0
com_statistics 0
com_process_info 0
com_connect 0
com_process_kill 0
com_debug 0
com_ping 0
com_time 0
com_delayed_insert 0
com_change_user 0
com_binlog_dump 0
com_table_dump 0
com_connect_out 0
com_register_slave 0
com_stmt_prepare 0
com_stmt_execute 0
com_stmt_send_long_data 0
com_stmt_close 0
com_stmt_reset 0
com_stmt_set_option 0
com_stmt_fetch 0
com_deamon 0
bytes_received_real_data_normal 0
bytes_received_real_data_ps 0

example statistics
stat1 0
stat2 0

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 8.34 2013-12-15

Directive Local Value Master Value
pcre.backtrack_limit 1000000 1000000
pcre.recursion_limit 100000 100000

PDO

PDO support enabled
PDO drivers sqlite

pdo_sqlite

PDO Driver for SQLite 3.x enabled
SQLite Library 3.8.4.1

Phar

Phar: PHP Archive support enabled
Phar EXT version 2.0.1
Phar API version 1.1.1
SVN revision $Id: ec823514107160b7e6fabc519594012657a2db91 $
Phar-based phar archives enabled
Tar-based phar archives enabled
ZIP-based phar archives enabled
gzip compression disabled (install ext/zlib)
bzip2 compression disabled (install pecl/bz2)
OpenSSL support disabled (install ext/openssl)

Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.

Directive Local Value Master Value
phar.cache_list no value no value
phar.readonly On On
phar.require_hash On On

posix

Revision $Id: 1dfa9997ed76804e53c91e0ce862f3707617b6ed $

Reflection

Reflection enabled
Version $Id: f6367cdb4e3f392af4a6d441a6641de87c2e50c4 $

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary

Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 32 32
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path no value no value
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_trans_sid 0 0

SimpleXML

Simplexml support enabled
Revision $Id: b9966ddccead3e8bb7666aae9de01fe3d687b21a $
Schema support enabled

SPL

SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support enabled
SQLite3 module version 0.7
SQLite Library 3.8.4.1

Directive Local Value Master Value
sqlite3.extension_dir no value no value

standard

Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
from no value no value
url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value

tokenizer

Tokenizer Support enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.8.0

xmlreader

XMLReader enabled

xmlwriter

XMLWriter enabled

Additional Modules

Module Name

Environment

Variable Value
JDIR /mnt/storage/jails
JAILNAME cops
ARCH amd64
CACHEDIR /mnt/storage/jails/.warden-files-cache
FREEBSD_MAJOR 9
DJANGO_SETTINGS_MODULE freenasUI.settings
PATH /sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /usr/local/lib
PBI_APPDIR /var/pbi
PWD /
JMETADIR /mnt/storage/jails/.cops.meta
WTMP /mnt/storage/jails
NIC re0
WARDENVER 1.3
HOME /
UNAME_m amd64
UNAME_r 9.1-RELEASE
REALARCH amd64
ATMP /tmp/.wans
RC_PID 20

PHP Variables

Variable Value
_REQUEST["email"] xxxxxx@gmail.com
_REQUEST["html_tag_filter"] 1
_REQUEST["toolbar"] 1
_REQUEST["use_fancyapps"] 1
_COOKIE["email"] xxx@gmail.com
_COOKIE["html_tag_filter"] 1
_COOKIE["toolbar"] 1
_COOKIE["use_fancyapps"] 1
_SERVER["UNIQUE_ID"] U0rAvsCoAWcAATTkamwAAAAF
_SERVER["HTTP_HOST"] 192.168.1.103:8080
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_CACHE_CONTROL"] max-age=0
_SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate,sdch
_SERVER["HTTP_ACCEPT_LANGUAGE"] it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
_SERVER["HTTP_COOKIE"] email=xxxxxx%40gmail.com; html_tag_filter=1; toolbar=1; use_fancyapps=1
_SERVER["PATH"] /sbin:/bin:/usr/sbin:/usr/bin
_SERVER["SERVER_SIGNATURE"] no value
_SERVER["SERVER_SOFTWARE"] Apache/2.2.27 (FreeBSD) PHP/5.4.26 mod_ssl/2.2.27 OpenSSL/0.9.8y DAV/2
_SERVER["SERVER_NAME"] 192.168.1.103
_SERVER["SERVER_ADDR"] 192.168.1.103
_SERVER["SERVER_PORT"] 8080
_SERVER["REMOTE_ADDR"] 192.168.1.129
_SERVER["DOCUMENT_ROOT"] /usr/local/www/apache22/data/cops
_SERVER["SERVER_ADMIN"] xxxxxx@gmail.com
_SERVER["SCRIPT_FILENAME"] /usr/local/www/apache22/data/cops/phpinfo.php
_SERVER["REMOTE_PORT"] 50496
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] /phpinfo.php
_SERVER["PHP_SELF"] /phpinfo.php
_SERVER["REQUEST_TIME_FLOAT"] 1397407934.053
_SERVER["REQUEST_TIME"] 1397407934
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["JDIR"] /mnt/storage/jails
_ENV["JAILNAME"] cops
_ENV["ARCH"] amd64
_ENV["CACHEDIR"] /mnt/storage/jails/.warden-files-cache
_ENV["FREEBSD_MAJOR"] 9
_ENV["DJANGO_SETTINGS_MODULE"] freenasUI.settings
_ENV["PATH"] /sbin:/bin:/usr/sbin:/usr/bin
_ENV["LD_LIBRARY_PATH"] /usr/local/lib
_ENV["PBI_APPDIR"] /var/pbi
_ENV["PWD"] /
_ENV["JMETADIR"] /mnt/storage/jails/.cops.meta
_ENV["WTMP"] /mnt/storage/jails
_ENV["NIC"] re0
_ENV["WARDENVER"] 1.3
_ENV["HOME"] /
_ENV["UNAME_m"] amd64
_ENV["UNAME_r"] 9.1-RELEASE
_ENV["REALARCH"] amd64
_ENV["ATMP"] /tmp/.wans
_ENV["RC_PID"] 20

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.


Last edited by dannyb78; 04-13-2014 at 02:10 PM.
dannyb78 is offline   Reply With Quote
Old 04-14-2014, 05:12 AM   #879
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
I'm starting to think that the .htaccess is not even read ....

That's really strange.

I'll try to google for it but I have no other clue for you for now
vlad59 is offline   Reply With Quote
Old 04-14-2014, 09:09 AM   #880
dannyb78
Junior Member
dannyb78 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2014
Device: Kobo Aura HD
I'm pretty sure you are thinking right. I enabled the auth in .htaccess but I can still access the site without log in.
I'm googling it looking for a solution. unlikely I'm not a BSD or apache expert.

EDIT

I've got it! my httpd.conf was prevent .htaccess to override rules.
now all is working right. thank you!

Last edited by dannyb78; 04-14-2014 at 09:27 AM.
dannyb78 is offline   Reply With Quote
Old 04-14-2014, 09:48 AM   #881
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by dannyb78 View Post
I've got it! my httpd.conf was prevent .htaccess to override rules.
now all is working right. thank you!
Great ! I like happy endings
vlad59 is offline   Reply With Quote
Old 04-19-2014, 08:53 AM   #882
arineko
Junior Member
arineko began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2014
Device: Kindle
I apologize for the late feedback, but only today I have been able to go back to the problem.
Quote:
Originally Posted by vlad59 View Post
@arineko

Which version of DSM are you running ? DSM5 causes a lot of regression in PHP (check the end of the FAQ).

I have DSM4.3 on a DS213. I have already installed COPS as described in the FAQ, and it works with the two libraries. I wanted to try the package, for ease of update.
Quote:
Originally Posted by vlad59 View Post
@arineko
So config_local.php should be in the directory where COPS is installed (the one with index.php and feed.php)
I have discovered today that I have two folders with config_local.php. One was under /volume1/@appstore/cops/share/cops/, the other in /volume1/web/cops/; I was modifying the first (and the "wrong" one)
Quote:
Originally Posted by vlad59 View Post
@arineko
English is not my main language so if you have some idea about explaining it better I'm all ears.
English is a foreign language for me, too
My problems started because I went looking for the config_local.php file and found the wrong one. Just including in the FAQ that the file will be in the /volume1/web/cops folder (or something the the same lines), would help others to avoid the same mistake
Thank you again
Arineko
arineko is offline   Reply With Quote
Old 04-23-2014, 11:48 AM   #883
Anak
Fanatic
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
I've got Calibre Cops up and running. I can browse the library, read the book summary, etc. But books can't be downloaded to my Kobo Glo.

I got this error message:
Code:
Not Found
The requested URL /i-data/58b8342e/COPS/fetch.php was not found on this server.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.80 PHP/5.4.12 mod_wsgi/2.4 Python/2.6.2 Server at 192.168.2.4 Port 80.
Note: the fetch.php file is present at the mentioned location (In the 'root' of COPS).

In the config_local.php:
Code:
$config['cops_use_url_rewriting'] = "1";
Rewriting is set to "1" as this is necessary for Kobo devices.

Edit/Update:
Changing 'url rewriting' to its default:
Code:
$config['cops_use_url_rewriting'] = "0";
Then all selected books are downloaded to the root directory of the connected ereader (Kobo Glo) but all have the .php extension:
Code:
fetch.php
fetch1.php
fetch2.php
etc.
Note: only tested epub files.

Guess something goes wrong with the renaming of the downloaded files including the proper file extension.

Additonal info/note: Calibre COPS works properly with a standard web browser (tested with Firefox). The selected book is downloaded and renamed correctly.

NAS: ZyXEL NSA325v2
COPS: COPS 0.9.1RC1

Last edited by Anak; 04-24-2014 at 07:38 AM.
Anak is offline   Reply With Quote
Old 04-23-2014, 05:30 PM   #884
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@Anak

I do not have a Kobo myself, but maybe this could help.

Have you set in config_local.php:
Code:
    /*
     * Rename .epub to .kepub.epub if downloaded from a Kobo eReader
     * The ebook will then be recognized a Kepub so with chaptered paging, statistics, ...
     * You have to enable URL rewriting if you want to enable kepup.epub download
     * 1 : Yes (enable)
     * 0 : No
     */
    $config['cops_provide_kepub'] = "0";
to "1"? (and then enabled URL rewriting?)
mariosipad is offline   Reply With Quote
Old 04-24-2014, 09:08 AM   #885
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@arineko

Thanks for reporting back

@Anak

Did you check setting URL rewriting ($config['cops_use_url_rewriting'] = "1" with a normal browser (Firefox, Chrome, ...) ?

Are you able to download any epub file ?

If not then URL rewriting is maybe not enabled on the Apache installed on your NAS.

If it works then it really should be working with your Kobo.
vlad59 is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:01 PM.


MobileRead.com is a privately owned, operated and funded community.